[Bug 213742] /etc/crontab $PATH modification
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Oct 24 13:31:08 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213742
Bug ID: 213742
Summary: /etc/crontab $PATH modification
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: bin
Assignee: freebsd-bugs at FreeBSD.org
Reporter: ben.rubson at gmail.com
Hello,
crontab(5) :
Several environment variables are set up automatically by the cron(8) daemon.
SHELL is set to /bin/sh, PATH is set to
/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin,
and LOGNAME and HOME are set from the /etc/passwd line of the crontab's owner.
/etc/crontab :
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
I then think that /etc/crontab should set :
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
(I also think that /etc is no more needed in $PATH since this commit :
https://github.com/freebsd/freebsd/commit/77f8fc2dc8a4b898c69e145ecb5c0e72aab05968)
It would be more coherent, and also more convenient, without being more risky.
Thank you very much !
Ben
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list