[users@httpd] how to male a cron entry from apache server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 






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.


Thanks and regards
-Arun

***********************  FSS-Private   ***********************
"DISCLAIMER: This message is proprietary to Flextronics Software
Systems Limited (FSS) and is intended solely for the use of the
individual to whom it is addressed. It may contain  privileged or
confidential information and should not be circulated or used for
any purpose other than for what it is intended. If you have received
this message in  error, please notify the originator immediately.
If you are not the intended recipient, you are notified that you are
strictly  prohibited  from  using, copying, altering, or disclosing
the contents of this message.  FSS  accepts no  responsibility  for
loss or damage arising from the use of  the information transmitted
by this email including damage from virus."


---------------------------------------------------------------------
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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux