how to trace the user account lock status (745 Views)
Reply
Super Advisor
rajesh73
Posts: 448
Registered: ‎03-17-2009
Message 1 of 8 (745 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

 

Advisor
Per Christensen_1
Posts: 13
Registered: ‎02-20-2002
Message 2 of 8 (742 Views)

Re: how to trace the user account lock status

Try

 

lastb -R username

 

Cheers,

Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 3 of 8 (721 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
Super Advisor
rajesh73
Posts: 448
Registered: ‎03-17-2009
Message 4 of 8 (715 Views)

Re: how to trace the user account lock status

Hi ,

 

lastb -R cooomand working fine.

 

 

Super Advisor
rajesh73
Posts: 448
Registered: ‎03-17-2009
Message 5 of 8 (714 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
Acclaimed Contributor
Dennis Handly
Posts: 25,272
Registered: ‎03-06-2006
Message 6 of 8 (708 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

Super Advisor
rajesh73
Posts: 448
Registered: ‎03-17-2009
Message 7 of 8 (685 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

Advisor
redhat7012
Posts: 49
Registered: ‎06-29-2012
Message 8 of 8 (683 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.

 

 

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.