Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#18190 - wrong permissions in /usr/bin/crontab

Attached to Project: Arch Linux
Opened by Andreas Baumann (andreas_baumann) - Saturday, 06 February 2010, 10:58 GMT
Last edited by Paul Mattal (paul) - Saturday, 06 February 2010, 23:03 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Paul Mattal (paul)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: Should be executable by all users, should most likely not belong to group 'users'

Additional info:
* package version(s): dcron 4.4-1
* config and/or log files etc.


Steps to reproduce:

[vdr@europa5 ~]$ crontab -l
-bash: /usr/bin/crontab: Permission denied
[vdr@europa5 ~]$ ls -al /usr/bin/crontab
-rwsr-x--- 1 root users 9948 Jan 19 04:20 /usr/bin/crontab
[vdr@europa5 ~]$ id
uid=1005(vdr) gid=1005(vdr) groups=1005(vdr)

workaround:
chmod uga+x /usr/bin/crontab

This task depends upon

Closed by  Paul Mattal (paul)
Saturday, 06 February 2010, 23:03 GMT
Reason for closing:  Not a bug
Comment by Jim Pryor (Profjim) - Saturday, 06 February 2010, 13:17 GMT
This is correct as it is. See the crontab manpage, and the README that comes with the source tarball, and search for "group", for an explanation.
Comment by Jim Pryor (Profjim) - Saturday, 06 February 2010, 16:00 GMT
Just noticed the `id` in the report. Is your user not part of the group 'users'?

The architecture of crontab requires that it belong to SOME group, and have permissions 4750. And only users belonging to the relevant group can use it. The default is to use group "wheel", but in the Arch install we're more relaxed and say "users". You can make a "cron" group instead if you want. But whichever group you choose, only users belonging to that group (and root) will be able to use crontab.
Comment by Andreas Baumann (andreas_baumann) - Saturday, 06 February 2010, 17:15 GMT
Thanks for the clarification. Consider it as closed from my side of view.

Loading...