Operating System - HP-UX
1752616 Members
4442 Online
108788 Solutions
New Discussion

Re: how to check status of an user account

 
SOLVED
Go to solution
fizan
Super Advisor

how to check status of an user account

what is the cmd to check the status of the user account whether its locked ?
8 REPLIES 8
Taifur
Respected Contributor
Solution

Re: how to check status of an user account

Hi Fizan

The following example reports all abnormal status for all local accounts.

#/usr/sbin/userstat -a
joe nullpw
mary admlock maxtries=5

Check below link in details as follows,

https://internal.support.hpe.com/hpesc/public/home
If helps, pls assign point.

Rgds//
Taifur

Suraj K Sankari
Honored Contributor

Re: how to check status of an user account

Hi,

Check a user's password status
#passwd -s user1

Check the status of all users
#passwd -sa

If you are looking for user's information then use the below command
#finger user1

Suraj
Ganesan R
Honored Contributor

Re: how to check status of an user account

Hi,

#passwd -s

If this returns the staus as LK means it is locked. Other possiblities are,

PS=Passworded
NP=no password
Best wishes,

Ganesh.
Hakki Aydin Ucar
Honored Contributor

Re: how to check status of an user account

To show the password attributes for all the /etc/passwd account entries,
use the â a and â s options. Thus who is locked or PS (PS means normal pwd account)

passwd -as

OR for release HP UX 11iv3


userstat
Vishu
Trusted Contributor

Re: how to check status of an user account

Hi fizan,

If the server is not trusted, then following command will help.

passwd -s
LK shows the account is locked.

If it is trusted, then
/usr/lbin/getprpw
and check for lockout parmater. it should not contain any 1 digit in its value. those all should be 0s.
sabinkarvijay
Frequent Advisor

Re: how to check status of an user account

Hi,

use below command:

#/usr/lbin/getprpw -l

getprpw is for getting present password status of the user , if you would like to modfify any of the parameter in getprpw use below command:

#/usr/lbin/modprpw -m

Regards,
Vijay.

Scott Lindstrom_2
Regular Advisor

Re: how to check status of an user account

Taifur -

I dont find /usr/sbin/userstat on any of our 11.23 machines. Do you know how it gets installed?

Scott
James R. Ferguson
Acclaimed Contributor

Re: how to check status of an user account

Hi:

> Scott: I dont find /usr/sbin/userstat on any of our 11.23 machines.

It's documented in the December 2007 11.23 manpages but not in the original September 2004 ones. This leads me to believe that your installations were made with early OE media and have not been updated to the more/most current versions.

Regards!

...JRF...