http://qa.mandrakesoft.com/show_bug.cgi?id=2637
------- Additional Comments From [EMAIL PROTECTED] 2003-03-14 17:20 -------
[EMAIL PROTECTED] cron.daily]# echo root >/etc/cron.allow
[EMAIL PROTECTED] cron.daily]# crontab -u mail -r
You (mail) are not allowed to use this program (crontab)
See crontab(1) for more information
[EMAIL PROTECTED] cron.daily]# rm /etc/cron.allow
rm: remove regular file `/etc/cron.allow'? y
[EMAIL PROTECTED] cron.daily]# crontab -u mail -r
[EMAIL PROTECTED] cron.daily]# id
uid=0(root) gid=0(root) groups=0(root)
[EMAIL PROTECTED] cron.daily]# urpmf /etc/cron.allow
[EMAIL PROTECTED] cron.daily]# rpm -q vixie-cron
vixie-cron-3.0.1-55mdk
[EMAIL PROTECTED] cron.daily]# echo $SECURE_LEVEL
3
You can see from the above that if I create cron.allow, then yes, the command
doesn't work. But you can also see from the urpmf command that /etc/cron.allow
is not included in the vixie-cron package by default, or any package for that
matter. So you must have created it. I also ran msec (via cron.hourly and
cron.daily) prior to doing this test, and neither command created
/etc/cron.allow, so I can only assume that you created the file.
This isn't a bug in vixie-cron or mailman. This is a bug you created because
you created a file and neglected to add "mail" to the file.
Suggested fix: echo mail >>/etc/cron.allow
That should resolve it for you. Everyone else who uses stock packages and
doesn't create a cron.allow file will have no problems. Those who do create the
cron.allow file will have to, obviously, resolve this on their own. There is
only so much hand-holding we can do. =)
cron is doing the right thing. root is in cron.allow so if that file is
present, disallow everyone but the users in it, in your case root. If the
cron.allow file doesn't exist, there are no restrictions to cron.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
------- Reminder: -------
assigned_to: [EMAIL PROTECTED]
status: RESOLVED
creation_date:
description:
Reason is the line
crontab -u mail -r
in the postuninstall scriptlet, and the user mail is'nt in
/etc/cron.allow. This results in:
You (mail) are not allowed to use this program (crontab)
See crontab(1) for more information
This may be a cron bug.
jh