Operating System - HP-UX
1751718 Members
5409 Online
108781 Solutions
New Discussion

how to trace the user account lock status

 
rajesh73
Super Advisor

how to trace the user account lock status

how to trace the user account lock status

 

normaly we found the getprpw command, but i want to know user account locked from which user machine.

 

pls share the command

 

7 REPLIES 7

Re: how to trace the user account lock status

Try

 

lastb -R username

 

Cheers,

Steven E. Protter
Exalted Contributor

Re: how to trace the user account lock status

passwd -sa

Not sure how it works on systems converted to shadow with pwconv command. Will get back to you when my vpar gets the ip address its been waiting for 3 days to receive.

Regards,
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
rajesh73
Super Advisor

Re: how to trace the user account lock status

Hi ,

 

lastb -R cooomand working fine.

 

 

rajesh73
Super Advisor

Re: how to trace the user account lock status


NON TRUSTED SYSTEM

$/usr/local/bin/sudo /usr/bin/passwd -sa rajesh
Usage:
passwd [name]
passwd -r files [-F files] [name]
passwd -r files [-e [shell]] [-gh] [name]
passwd -r files -s [-a]
passwd -r files -s [name]
passwd -r files [-d|-l] [-f] [-n min] [-w warn] [-x max] name
passwd -r nis [-e [shell]] [-gh] [name]
passwd -r nisplus [-e [shell]] [-gh] [-D domain] [name]
passwd -r nisplus -s [-a]
passwd -r nisplus -s [-D domain] [name]
passwd -r nisplus [-l] [-f] [-n min] [-w warn] [-x max] [-D domain] [name]
passwd -r dce [-e [shell]] [-gh] [name]
$


pls help me . for trsuted system we have the command lastb -R command
Dennis Handly
Acclaimed Contributor

Re: how to trace the user account lock status

>/usr/bin/passwd -sa rajesh

 

from the Usage, you need to use:

/usr/bin/passwd -r files -s rajesh

rajesh73
Super Advisor

Re: how to trace the user account lock status

$/usr/bin/passwd -r files -s rajesh

rajesh ps

 

what is the meaning of PS

redhat7012
Advisor

Re: how to trace the user account lock status

PS means PASSWORD SET for that user.

 

LK means Password got LOCKED for that user

 

NP means NO PASSWORD set for that user.