Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 85879 - Allow root to use 'crontab -u userid' even if cron.allow prohibits it
Summary: Allow root to use 'crontab -u userid' even if cron.allow prohibits it
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: vixie-cron
Version: 1.0
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Jens Petersen
QA Contact: Brock Organ
Depends On:
TreeView+ depends on / blocked
Reported: 2003-03-10 06:47 UTC by Valdis Kletnieks
Modified: 2007-04-18 16:51 UTC (History)
0 users

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Last Closed: 2004-07-02 08:41:22 UTC

Attachments (Terms of Use)
patch to cron misc.c to allow root to use -u flag (deleted)
2003-03-10 06:49 UTC, Valdis Kletnieks
no flags Details | Diff

Description Valdis Kletnieks 2003-03-10 06:47:21 UTC
Description of problem:
If a user isn't listed in cron.allow, but has a crontab entry *anyhow*, you
can't use crontab -u to work with that crontab.  

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Add user to cron.allow, add a crontab, then remove the user from cron.allow
2. crontab -l -u user
3. This fails to work even for root.
Actual results:
% su
# crontab -l -u testuser
You (testuser) are not allowed to use this program (crontab)
See crontab(1) for more information

Expected results:

Additional info:
A possible patch is appended.

Comment 1 Valdis Kletnieks 2003-03-10 06:49:26 UTC
Created attachment 90539 [details]
patch to cron misc.c to allow root to use -u flag

Here's a possible code fix for the enhancement.

Comment 2 Jens Petersen 2003-03-19 06:59:40 UTC
Looks good to me, thanks for the patch, Valdis.

Comment 3 Jens Petersen 2003-03-19 07:58:49 UTC
Patch should be in vixie-cron-3.0.1-75.  Thanks.

Note You need to log in before you can comment on or make changes to this bug.