Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13583 - Crontab not setup with correct permissions
Summary: Crontab not setup with correct permissions
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Gentoo Linux FAQ (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: John Davis (zhen) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-09 11:34 UTC by Ethan Bonick
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ethan Bonick 2003-01-09 11:34:52 UTC
Cron: vcron may affect all crons
When adding a cron-.allow in /etc a nornal user can't use cron because the
permissions are 
-rws------    1 root     cron        21276 Jan  3 10:29 /usr/bin/crontab

the permissions should be 
-rwsr-xr-x    1 root     cron        21276 Jan  3 10:29 /usr/bin/crontab

This allows all users specified in /etc/cron.allow or /etc/crond.deny to be able
to use or not use crontab.
Comment 1 Ethan Bonick 2003-01-09 13:29:55 UTC
sorry default permissions are 
-rwsr-x---    1 root     cron        21276 Jan  3 10:29 /usr/bin/crontab

Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-01-09 15:29:29 UTC
docs-team please add a FAQ

to add crontabs, the user has to be in the group crontab
Comment 3 Ethan Bonick 2003-01-09 15:52:55 UTC
Should the documentation reflect that somewere as the man pages says otherwise 
and there is no crontab group. With the permissions set as they are shouldn't 
they be part of the cron group?
Comment 4 Ethan Bonick 2003-01-09 16:02:46 UTC
I just added my user to cron group but I couldn't edit a crontab as a regular
user. permissions
-rwsr-x---    1 root     cron        21276 Jan  7 00:08 /usr/bin/crontab

I am using a /etc/cron.allow file. But as soon as I doa  chmod og+rx on
/usr/bin/cron it works.

-rwsr-xr-x    1 root     cron        21276 Jan  7 00:08 /usr/bin/crontab
Comment 5 John Davis (zhen) (RETIRED) gentoo-dev 2003-01-13 10:21:55 UTC
How does this fix the issue though?
If the user is supposed to be in the crontab group, the other bit should not 
need to be set. Crontab might as well not have a group if that is the case..

As for the cron.allow file, that seems to not be working too.

Comment 6 Ethan Bonick 2003-01-13 13:49:13 UTC
I looked at permission on my working redhat system and that is how they have it
set up. It seems as if the cron group is not set up correctly on gentoo if its
not working. I got mine working by changing the "other" bits and then adding to
cron.allow.
Comment 7 John Davis (zhen) (RETIRED) gentoo-dev 2003-01-13 14:37:47 UTC
Well, i am using vcron and it works fine for me.
My user is in the cron group, and these are the perms on my crontab:

-rwsr-x---    1 root     cron        25120 Dec 16 00:24 /usr/bin/crontab

Another developer did this and he came out with positive results. I am going to
close this as invalid if there are no further questions.

//zhen
Comment 8 Martin Holzer (RETIRED) gentoo-dev 2003-01-15 13:57:18 UTC
same here
sys-apps/vcron-3.0.1-r1 
vcron is working perfect

John: please add a short FAQ about to add the user to the group cron, if he 
want's to use crontabs
Comment 9 John Davis (zhen) (RETIRED) gentoo-dev 2003-01-15 21:51:54 UTC
Done.