Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jul 2016 15:32:38 +0000
From:      bugzilla-noreply@freebsd.org
To:        pkg@FreeBSD.org
Subject:   [Bug 211141] ports-mgmt/pkg: pkg+pw: Doesn't run pwd_mkdb, maybe other problems
Message-ID:  <bug-211141-32340-nJJN9oC4Wn@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-211141-32340@https.bugs.freebsd.org/bugzilla/>
References:  <bug-211141-32340@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=3D211141

--- Comment #3 from Matthew Seaman <matthew@FreeBSD.org> ---
I can't reproduce this on 11.0-STABLE, admittedly with a different package
(trousers-0.3.13) that creates a new userid

Could you try checking the debug output? eg. by running:

   pkg -d -d -d -d install sane-backend

That should pretty much trace every step pkg does, including the call to pw=
(8).
Towards the end you should see something like this (different user and group
obviously):

{{{
DBG(3)[21154]> Scripts: executing
--- BEGIN ---
set -- trousers-0.3.13
if [ -n "${PKG_ROOTDIR}" ] && [ "${PKG_ROOTDIR}" !=3D "/" ]; then
  PW=3D"/usr/sbin/pw -R ${PKG_ROOTDIR}"
else
  PW=3D/usr/sbin/pw
fi
echo "=3D=3D=3D> Creating groups."
if ! ${PW} groupshow _tss >/dev/null 2>&1; then
  echo "Creating group '_tss' with gid '601'."
  ${PW} groupadd _tss -g 601
else
  echo "Using existing group '_tss'."
fi
echo "=3D=3D=3D> Creating users"
if ! ${PW} usershow _tss >/dev/null 2>&1; then
  echo "Creating user '_tss' with uid '601'."
  ${PW} useradd _tss -u 601 -g 601 -L daemon -c "TrouSerS user" -d /var/emp=
ty
-s /usr/sbin/nologin
else
  echo "Using existing user '_tss'."
fi
Scripts: --- END ---
}}}

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-211141-32340-nJJN9oC4Wn>