Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
weird cron permissions problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Vermyndax
Apprentice
Apprentice


Joined: 13 Dec 2003
Posts: 208

PostPosted: Mon Oct 25, 2004 1:01 pm    Post subject: weird cron permissions problem Reply with quote

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
View user's profile Send private message
GordSki
Guru
Guru


Joined: 18 Oct 2004
Posts: 329

PostPosted: Mon Oct 25, 2004 1:12 pm    Post subject: Reply with quote

Try creating a file called "/etc/cron.allow" and add the following line:

Code:
root


G.

ps. can add other users to allow them crontab access too. Make sure the file is world readable tho ;)
Back to top
View user's profile Send private message
Vermyndax
Apprentice
Apprentice


Joined: 13 Dec 2003
Posts: 208

PostPosted: Mon Oct 25, 2004 2:27 pm    Post subject: har har har Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum