Re: Determining whether shadow passwords are enabled?

From: Jem Berkes (
Date: 06/01/02

From: Jem Berkes <>
Date: Sat, 01 Jun 2002 15:37:52 GMT

>> > You could check to see if /etc/shadow exists. Unless you're root
>> > though, you won't be able to actually read the file.
>> Isn't there a more elegant way?
> Use the pam libraries and forget everything
> about /etc/passwd and /etc/shadow.

Do all Linux systems use PAM though? When compiling various things for my
slackware system I've noticed that the authentication works differently
than Redhat's distro (which did have PAM).

Jem E. Berkes
Student IEEE (Winnipeg) Windows, Linux & UNIX software