http://qa.mandrakesoft.com/show_bug.cgi?id=2637





------- Additional Comments From [EMAIL PROTECTED]  2003-03-14 11:27 -------
Sorry, but read this:

[EMAIL PROTECTED]:/root>/usr/bin/crontab -u mail -r
You (mail) are not allowed to use this program (/usr/bin/crontab)
See crontab(1) for more information
[EMAIL PROTECTED]:/root>id
uid=0(root) gid=0(root) groups=0(root)
[EMAIL PROTECTED]:/root>rpm -qf /usr/bin/crontab
vixie-cron-3.0.1-55mdk
[EMAIL PROTECTED]:/root>cat /etc/cron.allow
root
[EMAIL PROTECTED]:/root>cat /etc/cron.deny 
cat: /etc/cron.deny: No such file or directory

/var/log/messages said: 
Mar 14 11:13:45 test crontab[26491]: (root) AUTH (crontab command not allowed) 

Do you use vixie-cron-3.0.1-55mdk??
In the source of vixie-cron file crontab.c line 108:
        if (!allowed(User)) {
                fprintf(stderr,
User is mail here, and in misc.c line 429:
        static int      init = FALSE;
        static FILE     *allow, *deny;

        if (!init) {
                init = TRUE;
#if defined(ALLOW_FILE) && defined(DENY_FILE)
                allow = fopen(ALLOW_FILE, "r");
                deny = fopen(DENY_FILE, "r");
                Debug(DMISC, ("allow/deny enabled, %d/%d\n", !!allow, !!deny))
#else
                allow = NULL;
                deny = NULL;
#endif
        }

        if (allow)
                return (in_file(username, allow));

So, allow !=NULL and mail isn't in the file -> return FALSE

Seems to me as crontab bug


jh



------- 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

Reply via email to