[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 09:21:02 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238120
--- Comment #2 from Yuri Victorovich <yuri at freebsd.org> ---
On 12.0-STABLE r347548 GENERIC amd64
Add this line to /etc/crontab:
> * * * * * yuri /home/yuri/cron-env-test.sh
/home/yuri/cron-env-test.sh contains:
> #!/bin/sh
> echo "`date`: "$HOME >> /tmp/cron-env-test.txt
It printed into /tmp/cron-env-test.txt:
> Fri Jun 21 02:18:00 PDT 2019: /var/log
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list