[Sussex] List of Users

Lee W sxlug-list at unassemble.co.uk
Fri May 13 19:20:06 UTC 2005


Hey All,

Does anyone know of a way of getting a list of all the users on a system 
though PAM.

I know that I could just list the /etc/passwd file but I'm trying to 
write something that is more generic and will also work for NIS or LDAP 
(etc) lookups.  I suppose it is probably unlikely to be there as it is 
probably a security risk.

I need to globally update the password aging settings (which I can do 
though chage/passwd) on existing accounts.

Regards

Lee




More information about the Sussex mailing list