1844077 Members
2913 Online
110227 Solutions
New Discussion

Password Aging

 
Sam  Lalonde
Occasional Contributor

Password Aging

I have an HP-UX 11.0 system with hundreds of users. Is there a way for me to check what the password aging is set to for each user? (Without going into SAM and checking every user individually.) Some accounts have password aging on and others do not. I want to know which accounts have it on, AND what it is set to.
3 REPLIES 3
Ken Hubnik_2
Honored Contributor

Re: Password Aging

logins -a
fg_1
Trusted Contributor

Re: Password Aging

logins -x -

This will give you all the information about the user including password aging settings.

Hope this helps.

Gl.

FG.
S.K. Chan
Honored Contributor

Re: Password Aging

OR you can try this quick script that I wrote ..
#!/usr/bin/sh
IFS=:
exec 0while read -r Name Pass
do
AGE=$(echo $Pass|awk -F, '{print $2}')
echo "$Name == $AGE"
done
Test the above against a copy of your password file "passwd.test". If nothing is assigned to $AGE means it does not have the aging string.