Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 215361

Summary: /var/spool/cron dir ownership/rights error
Product: Gentoo Linux Reporter: Imre Péntek <pentek.imre>
Component: [OLD] Core systemAssignee: Cron Team <cron-bugs+disabled>
Status: RESOLVED CANTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Imre Péntek 2008-03-29 19:43:40 UTC
By this time, crontab isn't usable as a regular user:

imi@boborjan ~ $ crontab -e
cannot chdir(/var/spool/cron), bailing out.
/var/spool/cron: Permission denied
imi@boborjan ~ $ ls -lad /var/spool/cron/
drwxr-x--- 4 root cron 4096 jan 25 14.15 /var/spool/cron/
imi@boborjan ~ $ ls -lad /var/spool/
drwxr-xr-x 5 root root 4096 jan 26 18.11 /var/spool/
imi@boborjan ~ $ ls -lad /var/
drwxr-xr-x 13 root root 4096 jan 26 18.23 /var/
imi@boborjan ~ $ ls -lad /
drwxr-xr-x 20 root root 4096 jan 26 20.52 /
imi@boborjan ~ $ 

Reproducible: Always
Comment 1 Arthur Hagen 2008-03-30 12:53:54 UTC
Users who are to use cron have to be added to the cron group.  This is by design.
Comment 2 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2008-03-31 06:21:45 UTC
please refer to the cron guide:
http://www.gentoo.org/doc/en/cron-guide.xml

please make sure that you also state which cron you are using.
if you still think this is a problem, then reopen. thanks.
Comment 3 Matus UHLAR - fantomas 2009-03-03 18:20:40 UTC
With vixie-cron the requirement for cron group is superflous, since is supports /etc/cron.allow and /etc/cron.deny files.