View previous topic :: View next topic |
Author |
Message |
Vermyndax Apprentice
Joined: 13 Dec 2003 Posts: 208
|
Posted: Mon Oct 25, 2004 1:01 pm Post subject: weird cron permissions problem |
|
|
Last night I added some users to the cron group so users can edit/use crontab. This works fine.
This morning I go to set up some cron jobs as root... surprise! Permission denied!?
Code: |
raven-linux bin # crontab -l
You (root) are not allowed to use this program (crontab)
See crontab(1) for more information
|
Here's the permissions on crontab:
Code: |
raven-linux bin # ls -la cron*
-rwsr-x--- 1 root cron 26128 Oct 23 11:25 crontab
|
...and I have verified that root is in the proper groups. Any ideas what gives? |
|
Back to top |
|
|
GordSki Guru
Joined: 18 Oct 2004 Posts: 329
|
Posted: Mon Oct 25, 2004 1:12 pm Post subject: |
|
|
Try creating a file called "/etc/cron.allow" and add the following line:
G.
ps. can add other users to allow them crontab access too. Make sure the file is world readable tho |
|
Back to top |
|
|
Vermyndax Apprentice
Joined: 13 Dec 2003 Posts: 208
|
Posted: Mon Oct 25, 2004 2:27 pm Post subject: har har har |
|
|
Silly mistake of mine. That worked. I had created a cron.allow to set up the ability for users to make cron jobs and neglected to allow root. Whoops.
Thanks! |
|
Back to top |
|
|
|