Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 May 2019 19:28:03 +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@https.bugs.freebsd.org/bugzilla/>

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

            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@FreeBSD.org
          Reporter: yuri@freebsd.org

When crontab contains
> 10     *       *       *       *         yuri     env DISPLAY=3D:0.0 /usr=
/local/bin/bash /path/to/some/script

this script is run by cron(8) with HOME=3D/var/log

Once the field "who" in crontab is set to some user, cron(8) should also set
the "HOME" environment variable properly.

HOME=3D/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

--=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>