Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3777 - dcron ships with incorrect mode for /usr/bin/crontab
Summary: dcron ships with incorrect mode for /usr/bin/crontab
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Thilo Bangert (RETIRED) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-15 23:17 UTC by Jon Nelson (RETIRED)
Modified: 2003-02-04 19:42 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 Jon Nelson (RETIRED) 2002-06-15 23:17:55 UTC
dcron ships with modes that don't allow anyone but 'root' or people in group
'cron' to *run* crontab ('other' mode is blank).

crontab is meant to be run by all normal users, as the manpage states.
        install -o root -g cron -m 4750 crontab ${D}/usr/bin

The mode should be 4755.
Comment 1 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2002-06-17 09:06:38 UTC
hhm, it's on purpose that only root and cron group members can access     
/usr/bin/crontab     
  
see the section about cron in the install instructions as well as 
http://lists.gentoo.org/pipermail/gentoo-announce/2002-April/000151.html    
  
IIRC drobbins started this with the dcron ebuild, and when i rewrote      
the cron stuff i made this the default behavior for all crons...  
  
if this behavior should be revised, then we better take this to gentoo-core or     
ven -dev  
  
or we may want to change the crontab man page... 
 
regards  
Thilo  
Comment 2 Jon Nelson (RETIRED) 2002-06-20 23:35:09 UTC
I'm not sure which way I feel. I guess I feel it should be up to the admin to
change the mode, as nearly all other distros ship with crontab usable by the
general populace.
Comment 3 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2002-06-21 02:34:21 UTC
 bangert@kniffel bangert $ id bangert  
uid=500(bangert) gid=100(users)  
groups=100(users),10(wheel),16(cron),18(audio),20(dialout),80(cdrw)  
  
thats because i want to be able to su to root, access cron, have access to  
audio, be able to dialout and use my cdwriter...  
  
if you think this needs changed, then take it to gentoo-core - i was merely  
implementing what i thought was gentoo policy.  
  
i am sure one can argue that the cron group stuff is only of little use...  
  
and i will change the cron's to whatever is agreed upon...  
 
personally i like the idea, that Gentoo does stuff differently then other 
distro - but in this case the effect is minimal. 
 
Comment 4 Jon Nelson (RETIRED) 2002-06-21 07:53:09 UTC
I can accept that!
Good enough for me.
If it annoys me again, I'll just take it to -devel and let the populace decide,
but I'm good for now!