Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking for user password in AIX

Status
Not open for further replies.

jatho

Technical User
Apr 19, 2004
1
DK
I need a script for checking if a user has a password defined in AIX - or rather that there is NO users without a password. Can anyone help ?
 
Something along the lines of:

Code:
awk -F: '$2 == "NP" || $2 == "" {print $1}' /etc/shadow

...should do the trick? You will probably have to change it to search for whatever values AIX uses to signify "no password".

Annihilannic.
 
Why stop there? If you run utilities such as Crack you can produce a report on who has blank passwords, and who has crackable passwords.

It definietly impresses the auditors!

Columb Healy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top