Page 1 of 1

php programe execution fxns.. and at command

Posted: Fri Sep 19, 2003 7:02 am
by devork
Hi !
I have been tryin to run linux "at" command by differenct php *exec* functions but no luck
doing this

># at -f comm_file 23:23

run this command through php front end

exec("at -f comm_file 23:23 ")
and with other fxns

does any 1 have idea how to solve this problem

running 'at' using php

Posted: Fri Sep 19, 2003 6:28 pm
by evilMind
at is suid so if you are running it as the web server user:group that might be the cause of your headache. Secondly, at checks for /etc/at.deny and /etc/at.allow if the user name is in deny, well you guessed it, it's denied.

Also, an alternative is the command 'batch' (which I believe by default is *not* suid, unlike 'at' which is suid).

Posted: Sat Sep 20, 2003 6:36 am
by devork
yah problem is solved and it was
user authentication of apache as user suid:guid