2.how to list locked account in linux(redhat)?
I can use the command "passwd -S -username" to list a account who were locked .
who knows how to list all locked accounts with one command.
If you are root, try ' passwd -r files -s -a ' this will give you a list of all accounts that are locked. My systems are trusted, so not sure what would work on an untrusted hpux system.