Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Oct 2016 13:31:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 213742] /etc/crontab $PATH modification
Message-ID:  <bug-213742-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213742

            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@FreeBSD.org
          Reporter: ben.rubson@gmail.com

Hello,

crontab(5) :
Several environment variables are set up automatically by the cron(8) daemo=
n.=20
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 own=
er.

/etc/crontab :
PATH=3D/etc:/bin:/sbin:/usr/bin:/usr/sbin

I then think that /etc/crontab should set :
PATH=3D/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/77f8fc2dc8a4b898c69e145ecb5c0e72a=
ab05968)

It would be more coherent, and also more convenient, without being more ris=
ky.

Thank you very much !

Ben

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-213742-8>