Red Hat Bugzilla – Bug 244180
path for root's cronjobs is missing the sbin directories
Last modified: 2007-11-30 17:12:07 EST
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?
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.
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.