php programe execution fxns.. and at command

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
devork
Forum Contributor
Posts: 213
Joined: Fri Aug 08, 2003 6:44 am
Location: p(h) developer's network

php programe execution fxns.. and at command

Post 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
evilMind
Forum Contributor
Posts: 145
Joined: Fri Sep 19, 2003 10:09 am
Location: Earth

running 'at' using php

Post 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).
User avatar
devork
Forum Contributor
Posts: 213
Joined: Fri Aug 08, 2003 6:44 am
Location: p(h) developer's network

Post by devork »

yah problem is solved and it was
user authentication of apache as user suid:guid
Post Reply