Bug 244180 - path for root's cronjobs is missing the sbin directories
Summary: path for root's cronjobs is missing the sbin directories
Alias: None
Product: Fedora
Classification: Fedora
Component: vixie-cron   
(Show other bugs)
Version: 7
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Marcela Mašláňová
QA Contact: Brock Organ
Depends On:
TreeView+ depends on / blocked
Reported: 2007-06-14 12:49 UTC by David Jansen
Modified: 2007-11-30 22:12 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-07-16 15:41:40 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

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

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.

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