1836458 Members
2680 Online
110101 Solutions
New Discussion

/etcpasswd

 
SOLVED
Go to solution
Din_1
Frequent Advisor

/etcpasswd

How do i find the locked accounts in /etc/passwd file in a non trusted system?

HP UX B.11.11 9000/800

Thanks in advance
Din
4 REPLIES 4
Ramesh S
Esteemed Contributor

Re: /etcpasswd

OldSchool
Honored Contributor
Solution

Re: /etcpasswd

non-trusted? as root, run "passwd -s -a"

anything with status LK is locked. man passwd for more info
Tim Nelson
Honored Contributor

Re: /etcpasswd

Also on non-trusted, if the password field (second field) has an "*" in it then it is disabled.

Din_1
Frequent Advisor

Re: /etcpasswd

Thank you very much old school and Tim. passwd -s -a command really worked for me. This is what the command i was searching for. Thank you once again.

Regards,
Din