Subject: bin/32515: useradd and the pkginstall framework
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <ykomatsu@akaumigame.org>
List: netbsd-bugs
Date: 01/13/2006 11:05:00
>Number: 32515
>Category: bin
>Synopsis: useradd and the pkginstall framework
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 13 11:05:00 +0000 2006
>Originator: Yoshito Komatsu <ykomatsu@akaumigame.org>
>Release: NetBSD 3.99.15
>Organization:
>Environment:
System: NetBSD sv9.ln.akaumigame.org 3.99.15 NetBSD 3.99.15 (GENERIC) #0: Wed Jan 11 06:28:31 UTC 2006 builds@works.netbsd.org:/home/builds/ab/HEAD/amd64/200601110000Z-obj/home/builds/ab/HEAD/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
The pkginstall framework add users and change the user's shell
to /sbin/nologin in default.
The codes checking for valid shell are added to useradd
and /sbin/nologin is not included in /etc/shells.
This causes errors when a package that uses PKG_USERS is installed.
http://cvsweb.netbsd.org/bsdweb.cgi/src/usr.sbin/user/user.c.diff?r1=1.98&r2=1.99
sv9: {86} make install
===> *** No /usr/pkgsrc/distfiles/pkg-vulnerabilities file found,
===> *** skipping vulnerability checks. To fix, install
===> *** the pkgsrc/security/audit-packages package and run
===> *** '/usr/pkg/sbin/download-vulnerability-list'.
===> Installing for bacula-1.38.3nb1
Creating group: bacula
Creating user: bacula-dir
useradd: Can't add user `bacula-dir': shell `/sbin/nologin' is not valid
Creating user: bacula-sd
useradd: Can't add user `bacula-sd': shell `/sbin/nologin' is not valid
===========================================================================
The following users need to be created for bacula-1.38.3nb1:
bacula-dir: bacula, ,
bacula-sd: bacula, ,
===========================================================================
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/sysutils/bacula
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/sysutils/bacula
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/sysutils/bacula
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/sysutils/bacula
sv9: {87}
>How-To-Repeat:
Please make and install a package that uses PKG_USERS.
(e.g. sysutils/bacula)
>Fix:
...