Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jun 2019 12:48:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 238120] cron(8) doesn't set the HOME environment variable to users's home directory when command runs under regular user
Message-ID:  <bug-238120-227-FOnHU4qDOd@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-238120-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-238120-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238120

--- Comment #4 from WHR <msl0000023508@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@x ~]$ cat /tmp/cron-env-test=20
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@x ~]$ uname -a
FreeBSD x 12.0-STABLE FreeBSD 12.0-STABLE r349024 GENERIC  amd64

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238120-227-FOnHU4qDOd>