You can use the getent command $ getent passwd That will return all local users as well as users from NIS or LDAP if nsswitch.conf is configured for those. Jamie On Fri, 13 May 2005, Lee W wrote: > 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. > > Thanks in advance > > Regards > > Lee > _______________________________________________ > CentOS mailing list > CentOS@xxxxxxxxxx > http://lists.centos.org/mailman/listinfo/centos >