how to trace the user account lock status (371 Views)
Reply
Super Advisor
rajesh73
Posts: 431
Registered: ‎03-17-2009
Message 1 of 8 (371 Views)

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

 

Please use plain text.
Advisor
Per Christensen_1
Posts: 13
Registered: ‎02-20-2002
Message 2 of 8 (368 Views)

Re: how to trace the user account lock status

Try

 

lastb -R username

 

Cheers,

Please use plain text.
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 3 of 8 (347 Views)

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
Please use plain text.
Super Advisor
rajesh73
Posts: 431
Registered: ‎03-17-2009
Message 4 of 8 (341 Views)

Re: how to trace the user account lock status

Hi ,

 

lastb -R cooomand working fine.

 

 

Please use plain text.
Super Advisor
rajesh73
Posts: 431
Registered: ‎03-17-2009
Message 5 of 8 (340 Views)

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
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,703
Registered: ‎03-06-2006
Message 6 of 8 (334 Views)

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

Please use plain text.
Super Advisor
rajesh73
Posts: 431
Registered: ‎03-17-2009
Message 7 of 8 (311 Views)

Re: how to trace the user account lock status

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

rajesh ps

 

what is the meaning of PS

Please use plain text.
Advisor
redhat7012
Posts: 49
Registered: ‎06-29-2012
Message 8 of 8 (309 Views)

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.

 

 

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation