Jan 2, 2006 #1 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 ?
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 ?
Jan 2, 2006 #2 Annihilannic MIS Jun 22, 2000 6,317 AU 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. Upvote 0 Downvote
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.
Jan 3, 2006 #3 mrn MIS Apr 27, 2001 3,993 GB Take a look at the chkpwd command. Mike "A foolproof method for sculpting an elephant: first, get a huge block of marble, then you chip away everything that doesn't look like an elephant." http://www.airport-parking-site.co.uk/ Upvote 0 Downvote
Take a look at the chkpwd command. Mike "A foolproof method for sculpting an elephant: first, get a huge block of marble, then you chip away everything that doesn't look like an elephant." http://www.airport-parking-site.co.uk/
Jan 3, 2006 #4 columb IS-IT--Management Feb 5, 2004 1,231 EU 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 Upvote 0 Downvote
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