[Pkg-shadow-devel] Bug#317012: Detect chage failure when no shadow passwords are used

Christian Perrier Christian Perrier <bubulle@debian.org>, 317012@bugs.debian.org
Tue, 5 Jul 2005 22:38:33 +0200


root@mykerinos:~# shadowconfig off
Shadow passwords are now off.
root@mykerinos:~# chage tintin
chage=A0: impossible d'ouvrir le fichier des mots de passe cach=E9sroot@m=
ykerinos:~# echo $?
1


So, chage fails with an errorlevel set to 1 when there are no active
shadow passwords. Isn't that enough for adduser to detect the failure
and behave appropriately?

Or do you mean you'd prefer having a dedicated error level?



--=20