Operating System - HP-UX
1834903 Members
2592 Online
110071 Solutions
New Discussion

Re: Unlocking user accounts

 
SOLVED
Go to solution
Jarnail dhadda
New Member

Unlocking user accounts

A very easy question ( I am new to HPUX) I have an user account which when the user logs in tells tehm that there account is locked how do I unlock this account from the command line.

Thanks

Jal
4 REPLIES 4
Victor BERRIDGE
Honored Contributor
Solution

Re: Unlocking user accounts

Hi JAL,
The easiest since you are new to HPUX is to use SAM, just type sam or sam& if you are using Xwindows...

Now by command line, if its just reactivating a user who has locked himself but knows his passwd:
to see if he is locked...

/usr/lbin/getprpw -r -m lockout

To reactivate:
/usr/lbin/modprpw -k
verify exit status(=0)


All the best
Victor
Fred Ruffet
Honored Contributor

Re: Unlocking user accounts

just use "passwd " with root and set him a new password should be OK.

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Stf
Esteemed Contributor

Re: Unlocking user accounts

Hello,

Log in as root and check user's line in /etc/passwd file to see if there is any locking attribute.

the normal attribute for an user is :
user:[encrypted passwd]:UID:GID:,,,:[home directory]:[shell]

;-)
Suraj_2
Valued Contributor

Re: Unlocking user accounts

Hi

Adding to above valuables

To lock the account
#passwd -l < account name>

This will put the "*" character in passwd field of /etc/passwd.

To unlock the same
#passwd


Rgds
Suraj