Bug#317012: (forw) Bug#317012: [Pkg-shadow-devel] Processed: Bug#316089: chage fails if plain passwd in use

Marc Haber mh+debian-packages@zugschlus.de
Wed, 6 Jul 2005 16:14:30 +0200


On Wed, Jul 06, 2005 at 04:39:30PM +0300, Alexander Gattin wrote:
>    you just should check whether /etc/shadow exists,
>    and if no, chage will surely fail, because pwd ageing
>    information is contained in shadow only, not in 
> passwd.
> 
>    This also means that you should not worry about pwd
>    ageing when adding a user on non-shadow system ;)

Lookg for /etc/shadow seems like a bad hack. Isn't there some more
elegant way to find out whether shadow is in place or not?

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835