[Pkg-shadow-devel] Bug#567836: The command 'pwck -s' is unable to handle NIS lines in /etc/passwd in the correct way

Christian Andretzky Christian.Andretzky at ETIT.TU-Chemnitz.DE
Sun Jan 31 17:04:07 UTC 2010


Package: passwd
Version: 1:4.1.1-6
Severity: important

'pwck -s' does its job right without NIS lines in the local passwd file. It works also correct if there is
only one NIS line at the end of the passwd file ( +:::::: for example ).
But if the setup is a bit more complex - for example explicit allow some users and deny all others - then the
order of the NIS lines is important to get this running.
Unfortunately 'pwck -s' also sorts this lines in alphabetical order and the login is no longer possible.

A possible solution should be explicitly to exclude all lines startig with + from sorting and appending this lines exactly
in the discovered order again after the sort process to /etc/passwd.


-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages passwd depends on:
ii  debianutils               2.30           Miscellaneous utilities specific t
ii  libc6                     2.10.2-2       GNU C Library: Shared libraries
ii  libpam-modules            1.0.1-5+lenny1 Pluggable Authentication Modules f
ii  libpam0g                  1.0.1-5+lenny1 Pluggable Authentication Modules l
ii  libselinux1               2.0.89-4       SELinux runtime shared libraries

passwd recommends no packages.

passwd suggests no packages.

-- no debconf information





More information about the Pkg-shadow-devel mailing list