[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
Sat May 25 19:28:06 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238120
Bug ID: 238120
Summary: cron(8) doesn't set the HOME environment variable to
users's home directory when command runs under regular
user
Product: Base System
Version: 12.0-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs at FreeBSD.org
Reporter: yuri at freebsd.org
When crontab contains
> 10 * * * * yuri env DISPLAY=:0.0 /usr/local/bin/bash /path/to/some/script
this script is run by cron(8) with HOME=/var/log
Once the field "who" in crontab is set to some user, cron(8) should also set
the "HOME" environment variable properly.
HOME=/var/log looks wrong in any case.
(Not sure if "root" also suffers from this problem.)
FreeBSD nohost 12.0-STABLE FreeBSD 12.0-STABLE r347548 GENERIC amd64
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list