On Mon, Sep 12, 2005 at 06:59:45PM +0530, Arun Naik wrote: > > > > > Hi, > I am running a script which will make a crontab entry in the name of root. > Problem is apache server runs as user apache. The crontab path is > /var/spool/cron/username (here root). The directory cron has rwx permission > to only root. ( permission is drwx - - - - - - ). So the user apache can't > access the crontab file of root ( /var/spool/cron/root). I don't want to > change the permission of the /var/spool/cron file. Is there any way out so > that apache user can write the cron entry in that path. > > Secondly even if apache is able to access that path, it is not able to > write in the cron file. As the file ( /var/spool/cron/root ) has read/write > permission to only the user root. ( The exact permission is -rw- - - - - - > - ). Can I write to this file from apache. I understand sudo is one option > of doing it. > sudo is your friend :) --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx