System Administration
Showing results for 
Search instead for 
Do you mean 

how to trace the user account lock status

Highlighted
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

Re: how to trace the user account lock status

Try

 

lastb -R username

 

Cheers,

Exalted Contributor 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
Super Advisor

Re: how to trace the user account lock status

Hi ,

 

lastb -R cooomand working fine.

 

 

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
Acclaimed Contributor 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

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

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.