[Bug 796242] New: pcsc-lite: preinstall scriptlet adds user scard with bad path for nologin shell
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.
https://bugzilla.novell.com/show_bug.cgi?id=796242 https://bugzilla.novell.com/show_bug.cgi?id=796242#c1 --- Comment #1 from Ned Ulbricht <nedu@netscape.net> 2013-01-02 12:37:57 UTC --- I just created a feature request related to this bug: https://features.opensuse.org/314730 "useradd -s should accept shell basename" -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=796242 https://bugzilla.novell.com/show_bug.cgi?id=796242#c Jiaying ren <jren@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jren@suse.com AssignedTo|bnc-team-screening@forge.pr |sbrabec@suse.com |ovo.novell.com | -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=796242 https://bugzilla.novell.com/show_bug.cgi?id=796242#c2 Stanislav Brabec <sbrabec@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Stanislav Brabec <sbrabec@suse.com> 2013-01-07 20:07:44 CET --- Fixed for Factory and created request id 147442. Also adding usermod to fix if for people who will upgrade from openSUSE 12.2. SLE11 is not affected, we can remove upgrade protection after 12.3. Not creating online update for older products. The bug has too minor impact. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=796242 https://bugzilla.novell.com/show_bug.cgi?id=796242#c3 --- Comment #3 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-01-07 21:00:10 CET --- This is an autogenerated message for OBS integration: This bug (796242) was mentioned in https://build.opensuse.org/request/show/147442 Factory / pcsc-lite -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=796242 https://bugzilla.novell.com/show_bug.cgi?id=796242#c4 --- Comment #4 from Stanislav Brabec <sbrabec@suse.com> 2013-01-09 16:26:35 CET --- The same problem affects couchdb package as well. Created request id 147781 to server:database. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=796242 https://bugzilla.novell.com/show_bug.cgi?id=796242#c5 --- Comment #5 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-01-19 12:00:09 CET --- This is an autogenerated message for OBS integration: This bug (796242) was mentioned in https://build.opensuse.org/request/show/149199 Factory / couchdb -- 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.
participants (1)
-
bugzilla_noreply@novell.com