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

Nicolas François nicolas.francois at centraliens.net
Sat Mar 20 22:10:54 UTC 2010

tags 567836 pending

On Sun, Jan 31, 2010 at 06:04:07PM +0100, Christian Andretzky wrote:
> '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.

I changed pwck (and grpck) in order to stop sorting at the first line which
begins with a '+'.

Best Regards,

More information about the Pkg-shadow-devel mailing list