[Bug 238120] cron(8) doesn't set the HOME environment variable to users's home directory when command runs under regular user

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jun 21 12:48:03 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238120

--- Comment #4 from WHR <msl0000023508 at gmail.com> ---
(In reply to Yuri Victorovich from comment #2)

The line I added in /etc/crontab is:

*       *       *       *       *       WHR     /home/WHR/cron-env-test.sh

cron-env-test.sh file is exactly same.

The result is:

[WHR at x ~]$ cat /tmp/cron-env-test 
Fri Jun 21 20:41:00 CST 2019: /usr/home/WHR
Fri Jun 21 20:42:00 CST 2019: /usr/home/WHR
Fri Jun 21 20:43:00 CST 2019: /usr/home/WHR
Fri Jun 21 20:44:00 CST 2019: /usr/home/WHR
Fri Jun 21 20:45:00 CST 2019: /usr/home/WHR
Fri Jun 21 20:46:00 CST 2019: /usr/home/WHR
[WHR at x ~]$ uname -a
FreeBSD x 12.0-STABLE FreeBSD 12.0-STABLE r349024 GENERIC  amd64

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


More information about the freebsd-bugs mailing list