[Bug 211141] ports-mgmt/pkg: pkg+pw: Doesn't run pwd_mkdb, maybe other problems
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Jul 18 15:32:39 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211141
--- Comment #3 from Matthew Seaman <matthew at 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}" != "/" ]; then
PW="/usr/sbin/pw -R ${PKG_ROOTDIR}"
else
PW=/usr/sbin/pw
fi
echo "===> 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 "===> 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/empty
-s /usr/sbin/nologin
else
echo "Using existing user '_tss'."
fi
Scripts: --- END ---
}}}
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
More information about the freebsd-pkg
mailing list