Hi all, I have a ZFS dataset mounted under /usr/local/jenkins. I've made this the home directory of my jenkins user, so that directory has to be owned by jenkins. # cd /usr/local # ls -ld jenkins drwxr-xr-x 20 jenkins jenkins 75 Sep 17 10:48 jenkins After upgrading from 11.1 to 11.2, the directory ended up owned by root: drwxr-xr-x 20 root jenkins 75 Sep 17 10:48 jenkins Only the directory ownership changed -- all the contents were still owned by jenkins. Not a big deal, but I did have a moment of dread when jenkins failed to start after the upgrade. So is this a bug, or is there some policy that everything immediately under /usr/local should be owned by root? M.
On Mon, Sep 17, 2018 at 9:08 AM Marc Branchaud <marcnarc at gmail.com> wrote:> Hi all, > > I have a ZFS dataset mounted under /usr/local/jenkins. I've made this > the home directory of my jenkins user, so that directory has to be owned > by jenkins. > > # cd /usr/local > # ls -ld jenkins > drwxr-xr-x 20 jenkins jenkins 75 Sep 17 10:48 jenkins > > After upgrading from 11.1 to 11.2, the directory ended up owned by root: > > drwxr-xr-x 20 root jenkins 75 Sep 17 10:48 jenkins > > Only the directory ownership changed -- all the contents were still > owned by jenkins. > > Not a big deal, but I did have a moment of dread when jenkins failed to > start after the upgrade. > > So is this a bug, or is there some policy that everything immediately > under /usr/local should be owned by root? > > M. >You probably did a "pkg upgrade" after upgrading your base system, and that's probably what changed the directory's permission. Upgrading the base system shouldn't have an effect. I would ask the Jenkins port maintainer your question. -Alan
Marc Branchaud
2019-Feb-04 15:52 UTC
devel/jenkins upgrade glitch (was: Re: Minor 11.1 -> 11.2 upgrade glitch)
On 2018-09-17 11:07 a.m., Marc Branchaud wrote:> Hi all, > > I have a ZFS dataset mounted under /usr/local/jenkins.? I've made this > the home directory of my jenkins user, so that directory has to be owned > by jenkins. > > ????# cd /usr/local > ????# ls -ld jenkins > ????drwxr-xr-x? 20 jenkins? jenkins? 75 Sep 17 10:48 jenkins > > After upgrading from 11.1 to 11.2, the directory ended up owned by root: > > ????drwxr-xr-x? 20 root? jenkins? 75 Sep 17 10:48 jenkinsSome follow-up info... I have contacted devel/jenkins's maintainer, Li-Wen Hsu, and have opened a new bug: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235356 Li-Wen reports that he can't reproduce the problem in 12.0 or CURRENT, with pkg 1.10.5_5. (I am also using pkg 1.10.5_5, but on 11.2.) A very similar (possibly identical) bug in was fixed in 2014: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193670 The issue was also in devel/jenkins-lts, also fixed in 2014: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194274 M.> Only the directory ownership changed -- all the contents were still > owned by jenkins. > > Not a big deal, but I did have a moment of dread when jenkins failed to > start after the upgrade. > > So is this a bug, or is there some policy that everything immediately > under /usr/local should be owned by root? > > ??????? M.