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: [email protected]
Reporter: [email protected]
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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"