Operating System - HP-UX
1827197 Members
2530 Online
109716 Solutions
New Discussion

Re: Password Aging status

 
sujeet joshi
Frequent Advisor

Password Aging status

Hi,

Is there a way in UNIX to display the following info-

Minimum password length
10 characters

Invalid Logon Attempts
7 invalid logons

Password expiration period
90 days

Lockout Period
Until Admin resets

Password History
7 Previous Passwords

Thanks

Sujeet
4 REPLIES 4
Peter Godron
Honored Contributor

Re: Password Aging status

Sujeet,
you have only awarded points to 9 of 95 answers !
If you read the /etc/default/security on a trusted system, you will get that info.

Just a case of something like:
while read record
do
if [ "$record" = "MIN_PASSWORD_LENGTH" ]
then
echo "Minimum Password length"
echo `echo $record | awk -F'=' '{print $2}'` fi
done < /etc/default/security
Bill Hassell
Honored Contributor

Re: Password Aging status

The items you want are scattered into several places such as /etc/default/security and the /tcb system-wide settings. Most of the plicy information is available from SAM but the attached script will show your system-wide security policies.


Bill Hassell, sysadmin
Reshma Malusare
Trusted Contributor

Re: Password Aging status

Hi Sujeet,
/etc/default/security file will solve your perpose.please have a look on following document.It will help you.

http://docs.hp.com/en/B2355-60105/security.4.html

Thanks & Regards
Reshma
Tim Nelson
Honored Contributor

Re: Password Aging status

/usr/lbin/getprpw -m username

The above can get the info for each username. Not all users might be configured to use the defaults.

man getprpw for descriptions.