Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82521 - Cron permissions are inconsistent
Summary: Cron permissions are inconsistent
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Cron Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-18 20:23 UTC by Kaiting Chen
Modified: 2007-07-12 14:32 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 Kaiting Chen 2005-02-18 20:23:42 UTC
/etc/cron.d /etc/cron.{hourly,monthly,daily,weekly} /var/spool/cron /var/spool/cron/lastlog /var/spool/cron/crontab and the binaries /usr/bin/cron... /usr/sbin/cron... all have different permissions. I realize that some of those differences make sense, but some don't. For instance, /var/spool/cron/lastlog should have cron group. /etc/cron.d should be 750. The files in /etc/cron.{hourly,...} should be 750. We should eclass this and clean it up.

Reproducible: Always
Steps to Reproduce:
Comment 1 SpanKY gentoo-dev 2005-02-25 06:16:52 UTC
we already have a cron eclass
Comment 2 Kaiting Chen 2005-02-25 11:58:23 UTC
Good call. By the way, are any of the devs interested in merging /var/spool/cron/crontabs and /etc/cron.d for vixie-cron? I just thought it was kind of awkward to have two different directories basically serve the same purpose. If anyone is, I have a modified vixie-cron-gentoo patch.
Comment 3 Ciaran McCreesh 2005-02-25 12:56:33 UTC
We can't change persmissions of existing files in /etc (that's a portage setting).  Are you using any of the permission-related FEATURES?
Comment 4 Kaiting Chen 2005-02-25 13:03:06 UTC
What kind of permission-related FEATURES are there in portage? Other than suidctl and sfperms.
Comment 5 Janne Pikkarainen 2005-02-28 03:03:12 UTC
vixie-cron manpage also says:

---
CAVEATS
       In  this  version  of cron, /etc/crontab must not be readable or writable by any user other than root.  In other words, it should be mode 0600.
---

But portage seems to install it as 0644.
Comment 6 Aaron Walker (RETIRED) gentoo-dev 2005-02-28 03:18:02 UTC
> In  this  version  of cron, /etc/crontab must not be readable or writable by any user other than root.  In other words, it should be mode 0600.

Well I was hoping this was another perms bug caused by the new cron.eclass transition (not the eclass but the ebuild), but it looks like the vixie ebuild has always installed it 0644 either explicitly or implicitly (its the default mode for doins).
Comment 7 Aaron Walker (RETIRED) gentoo-dev 2005-02-28 03:21:38 UTC
Also just noticed that the perms of /etc/crontab probably don't matter since we also install the crontab (albeit the wrong one, I also just noticed) into /usr/share/doc/${PF}.
Comment 8 Kaiting Chen 2005-03-01 13:17:19 UTC
Yep. The installed one works, but I think the right one is being put into the doc.
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-07-12 14:32:34 UTC
For remaining permissions issues, see Bug 182998. This is dead, cron eclass in place, closing.