in reply to Problem with Permission

What are you using to send the SMS?  Presumably, whatever service you're using requires root permissions...  Try

$ su -l user -c "strace -f /usr/bin/perl /path/to/script/script.cgi"

to see whichever file access under the hood is returning with "EACCES (Permission denied)".

Replies are listed 'Best First'.
Re^2: Problem with Permission
by roc (Sexton) on Apr 23, 2010 at 10:59 UTC

    hi thx for ur reply..i used the command...i got the following...... open("/dev/ttyACM0", O_RDWR|O_NOCTTY|O_NONBLOCK|O_LARGEFILE) = -1 EACCES (Permission denied)

      ...presumably the device that interfaces to the modem.  What's its group and the permissions? Maybe you can arrange for user to be in the appropriate group that would have write access?