Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139091 - vixie-cron crontab should be executable by all
Summary: vixie-cron crontab should be executable by all
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Lowest enhancement (vote)
Assignee: Cron Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-03 15:54 UTC by Fredrik Tolf
Modified: 2008-10-06 14:02 UTC (History)
0 users

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 Fredrik Tolf 2006-07-03 15:54:32 UTC
I disagree with Gentoo's current policy of making /usr/bin/crontab only executable by the `cron' group. Access control to crontab is already provided by /etc/cron.{allow,deny}. I see no reason to impose an extra system, and it is troublesome when sharing a network with other Linux distributions.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-07-03 23:23:09 UTC
Shrug... http://www.gentoo.org/doc/en/faq.xml#crontab
Comment 2 Fredrik Tolf 2006-07-04 05:41:53 UTC
I'm not sure what you are trying to say with that link. As ought to be obvious from what I wrote, I am perfectly aware that one currently has to add users to the cron group, and that it is that behavior which I have reported as a bug -- not that it would somehow not be working.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-07-04 05:45:03 UTC
Yes, so - it works perfectly fine and isn't confusing like hell - unlike cron.{allow,deny} which changes it's behaviour depending on whether the other file exists or not. I don't see the bug, sorry.
Comment 4 Fredrik Tolf 2006-07-04 06:03:22 UTC
The problem is fourfold:
1. It is not the standard behavior. Every other Linux distro and Unix system in the world uses /etc/cron.{allow,deny}. Therefore, it is confusing.
2. It is also nonstandard in that way that by default (or by deleting /etc/cron.allow), users are always allowed to use cron. In Gentoo, there's no way to get that behavior (and it is therefore less functional). Users chmodding /usr/bin/crontab will also see that behavior revoked the next time vixie-cron gets emerged, unlike cfgpro files.
3. When using multiple systems in one network, one has to make special provisions for the Gentoo machines.
4. /etc/cron.{allow,deny} still remain as ways for access control. It is quite ugly to impose two access control systems simultaneously.

For that matter, I fail to understand what would be confusing with /etc/cron.{allow,deny}. The behavior is clearly described in the manpage.

Why not make this selectable by way of a USE flag? Alternatively, patch crontab such that a notation like "@group" can be used in /etc/cron.{allow,deny}, and ship the default configuration with a cron.allow file which contains "@cron".
Comment 5 SpanKY gentoo-dev 2006-07-04 13:38:32 UTC
you're assuming that every cron utilizes /etc/cron.{allow,deny} which couldnt be further from the truth ... every cron implementation does it their own way but many dont have any such control mechanism

also, there is nothing stopping you from changing the permissions on your crontab binary and when you do, portage wont reset the permissions

if you want to make a case for setting the default *vixie-cron* crontab for being executable by all, go for it ... but trying to change all the crons in portage is not going to happen ever
Comment 6 Fredrik Tolf 2006-07-04 20:02:02 UTC
Indeed, fair enough -- it is vixie-cron that I wish to change.

I'm left wondering about the other thing you wrote, though:
> also, there is nothing stopping you from changing the permissions on your
> crontab binary and when you do, portage wont reset the permissions
Not so in my experience:
# ls -l /usr/bin/crontab 
-rwsr-xr-x 1 root cron 31600 2006-06-04 21:22 /usr/bin/crontab
# emerge -1va vixie-cron
[...]
# ls -l /usr/bin/crontab 
-rws--x--- 1 root cron 31600 2006-07-05 03:50 /usr/bin/crontab

Of course, this includes any emerge -Duva world.
Comment 7 SpanKY gentoo-dev 2006-07-04 21:04:42 UTC
yeah, i'll research that bit and follow up with portage team
Comment 8 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2008-06-26 10:10:41 UTC
any news?

looks a bit like this bug turned into a supposed portage bug... perhaps it can be transformed into such then...
Comment 9 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2008-10-06 14:02:10 UTC
closing due to no activity for more than two years. if the problem persists, please open a new bug report.

your participation is apreciated. thank you.
kind regards
Thilo