[Pkg-shadow-devel] Bug#583593: passwd: disabling and enabling shadow again breaks NIS

Santiago Vila sanvila at unex.es
Sat May 29 11:14:24 UTC 2010


> As a side effect, this script to enable NIS on a Debian system does no
> longer work:
> 
> if grep -q -v "+::::::" /etc/passwd; then
>   shadowconfig off
>   echo "+::::::" >> /etc/passwd
>   echo "+:::" >> /etc/group
>   shadowconfig on
> fi

Hmm, sorry, the check would be actually like this:

if ! grep -q "+::::::" /etc/passwd; then
  shadowconfig off
  echo "+::::::" >> /etc/passwd
  echo "+:::" >> /etc/group
  shadowconfig on
fi

This is what worked in lenny and no longer works.

Thanks.





More information about the Pkg-shadow-devel mailing list