https://bugzilla.novell.com/show_bug.cgi?id=796242 https://bugzilla.novell.com/show_bug.cgi?id=796242#c0 Summary: pcsc-lite: preinstall scriptlet adds user scard with bad path for nologin shell Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: All OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: nedu@netscape.net QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Firefox/17.0 The rpm preinstall scriptlet for openSUSE 12.2 package pcsc-lite-1.8.3-2.1.3.x86_64 invokes useradd for user scard with the -s option. This option specifies a bad path for the nologin shell. The supplied argument is /bin/nologin. However, the correct path should be either /sbin/nologin or /usr/sbin/nologin. $ rpm -q --scripts pcsc-lite preinstall scriptlet (using /bin/sh): getent group scard >/dev/null || groupadd -r -o scard getent passwd scard >/dev/null || useradd -r -o -g scard -s /bin/nologin -c "Smart Card Reader" -d /var/run/pcscd scard Reproducible: Always Steps to Reproduce: 1. # zypper rm pcsc-lite 2. # userdel scard 3. # zypper in pcsc-lite 4. # pwck Actual Results: (omitting actual output from steps 1-3 above) 4. # pwck Checking `/etc/passwd' User `scard': shell `/bin/nologin' is not executable. (irrelevant lines snipped) Expected Results: (omitting expected output from steps 1-3 above) 4. # pwck Checking `/etc/passwd' (expecting no line flagging user `scard') In the actual results above, the error message from pwck is slightly confusing, in that it seems to be complaining about the attributes of the nologin shell. But it is really complaining about the bad path. $ ls -l /bin/nologin /sbin/nologin ls: cannot access /bin/nologin: No such file or directory lrwxrwxrwx 1 root root 17 Dec 29 09:46 /sbin/nologin -> /usr/sbin/nologin $ rpm -qf /usr/sbin/nologin util-linux-2.21.2-4.5.1.x86_64 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.