Bug 244180

Summary: path for root's cronjobs is missing the sbin directories
Product: [Fedora] Fedora Reporter: David Jansen <jansen>
Component: vixie-cronAssignee: Marcela Mašláňová <mmaslano>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: low Docs Contact:
Priority: low    
Version: 7   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-07-16 15:41:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Jansen 2007-06-14 12:49:31 UTC
In earlier fedora (and RHEL) versions, root's cron jobs had
/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin as their path, 
whereas Fedora 7 only has /bin and /usr/bin . Nothing important of course, but
it breaks scripts that don't actually add the full path to the programs they call.

Version-Release number of selected component (if applicable):
vixie-cron-4.1-82.fc7.i386

In case this matters: I was using cron jobs entered through 'crontab -e', jobs
in /etc/cron.* seem to be unaffected due to the PATh setting that happens in
/etc/crontab. As far as I could find out, no cronjobs supplied by Fedora are
affected, since they all reside in /etc/cron.* . So maybe it is not a bug, but
just a change in behaviour that needed to be documented?

Comment 1 Marcela Mašláňová 2007-07-16 13:33:09 UTC
Well, I look at every branch and I didn't find paths set on
/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin. Which version of
cron did you meant? I can add it as a feature, no problem.


Comment 2 Marcela Mašláňová 2007-07-16 15:41:40 UTC
Hm I reconsider my opinion. I'll write a line in manual pages, because I find
out that this setting of paths is for security. The paths are read from system
like _PATH_DEFPATH, which is set on /bin and /usr/bin. Other /sbin paths are not
allowed for non root users. 

Fix of manual will be in rawhide.