Operating System - HP-UX
1835846 Members
2619 Online
110085 Solutions
New Discussion

Cannot check, acc locked or not

 
vinuhcl
Advisor

Cannot check, acc locked or not

hi all,

i used to use command /usr/lbin/getprpw to check whether the account is locked or not. however in some server i got feed back that System is not trusted. Any idea?
3 REPLIES 3
Mel Burslan
Honored Contributor

Re: Cannot check, acc locked or not

can't you just read plain English ? getprpw command questions the trusted user database. if your server is not trusted, how in the world you expect it to read files which are not there to begin with.
________________________________
UNIX because I majored in cryptology...

Re: Cannot check, acc locked or not

the instructions say "don't use a hammer". I have a hammer. how can I use a hammer?

sorry - couldn't resist that... anyway on a non-trusted system, to identify users with locked accounts run:

passwd -sa

any account which is locked will show LK in the 2nd field.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Viktor Balogh
Honored Contributor

Re: Cannot check, acc locked or not

if you don't know what a trusted system is then here is some hint:

http://www.docs.hp.com/en/B2355-90121/B2355-90121.pdf
****
Unix operates with beer.