11.0-U4 Cron path mismatch

Status
Not open for further replies.

nelem

Dabbler
Joined
Sep 28, 2017
Messages
10
From the cron log it says the command being run is:

Oct 4 14:03:00 freenas /usr/sbin/cron[9518]: (root) CMD (PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin" echo $PATH)

and the subject of the cron email is: Cron <root@freenas> PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin" echo $PATH

whereas the actual path echo'd is

/etc:/bin:/sbin:/usr/bin:/usr/sbin

/etc in the PATH is new to me. I know I can workaround this but I'm curious as to what is going on.
 

nelem

Dabbler
Joined
Sep 28, 2017
Messages
10
Create a Task (cron job) for root using the UI. The command is: echo $PATH
 
Status
Not open for further replies.
Top