1819803 Members
3098 Online
109607 Solutions
New Discussion юеВ

Unlock User

 
SOLVED
Go to solution

Unlock User

Hi all,

What command is use to unlock user account.


Thanks in adv.

Pratibha
8 REPLIES 8
SKR_1
Trusted Contributor
Solution

Re: Unlock User

/usr/lbin/modprpw -k username ( to unlock )
/usr/lbin/modprpw -x username ( to reset password )

Or you can use SAM also.

Thanks

SKR
Prashanth Waugh
Esteemed Contributor

Re: Unlock User

Hi Pratibha,

If your system in trusted mode then use
#modprpw - k

Check the manpages for it

Regards
Atulkumar
For success, attitude is equally as important as ability
Prashanth Waugh
Esteemed Contributor

Re: Unlock User

Hi Pratibha,

You can check ur system is in trusted mode or not by using
#cat /etc/passwd | awk -F: '{print $2}'

the output of the above command will be * only.

Regards
Atul
For success, attitude is equally as important as ability
Deepak Kr
Respected Contributor

Re: Unlock User

Easy way is to use SAM.

Also

#usr/lbin/modprpw -k

You need root login for this.
"There is always some scope for improvement"
Prashanth Waugh
Esteemed Contributor

Re: Unlock User


Hi Pratibha,

Your problem is solved or not

Regards
Atulkumar

For success, attitude is equally as important as ability
Sp4admin
Trusted Contributor

Re: Unlock User

You can use "getprpw -r -m lockout userid" to check if the account is locked. You can also do a "getprpw userid" get set was is set for that user. To unlock the account.

#modprpw -k userid

sp,
Yashwant
Valued Contributor

Re: Unlock User

/usr/lbin/getprpw userid ==> to check whether user id is locked

/usr/lbin/modprpw -k userid ==> to unlock userid


check man pages of getprpw and modprpw for more details...

Re: Unlock User

Hi Atul,

My problem has been solved, thanks for support.

Pratibha