Operating System - HP-UX
1823384 Members
2566 Online
109654 Solutions
New Discussion юеВ

Re: Command used to enable a user whose user id is locked?

 
ROCK_10
Advisor

Command used to enable a user whose user id is locked?

Hi All,

I need a command which is used to enable a user whose user id is locked .
4 REPLIES 4
Ivan Krastev
Honored Contributor

Re: Command used to enable a user whose user id is locked?

Viswanadhan
Regular Advisor

Re: Command used to enable a user whose user id is locked?

Hi,

Try with following command.
# /usr/lbin/modprpw -k username

Regards,
Viswanadhan.
ROCK_10
Advisor

Re: Command used to enable a user whose user id is locked?

Thanks,
But my system is not trusted system. So is it any other way..?
Ivan Krastev
Honored Contributor

Re: Command used to enable a user whose user id is locked?

Check and enable it with passwd:

-s name Display some password attributes associated with the specified name. Superuser privilege and non-trusted mode is required if the files repository is specified. For nisplus, there are no restrictions.

The format of the display will be:

name status mm/dd/yy min max warn

or, if password aging information is not present

name status

where status PS=passworded; LK=locked; and NP=no password.


-d Allow user to login without a password by deleting it. In untrusted mode this unlocks/activates the user account if found locked/deactivated.



see man passwd.

regards,
ivan