Operating System - HP-UX
1830503 Members
2744 Online
110006 Solutions
New Discussion

which command is used to enable a user in hp-ux ?

 
ROCK_10
Advisor

which command is used to enable a user in hp-ux ?

Hi All ,

I am looking for a command which will used to enable a user whose user id is locked .

Many Thanks ,
Rahul
11 REPLIES 11
Luk Vandenbussche
Honored Contributor

Re: which command is used to enable a user in hp-ux ?

You can do this via the SAM user interface
ROCK_10
Advisor

Re: which command is used to enable a user in hp-ux ?

Thanks for your support ,but i want solution in command line.Please help me out
Viswanadhan
Regular Advisor

Re: which command is used to enable a user in hp-ux ?

Hi Rahul

Try following command

# /usr/lbin/modprpw -k username

Regards,
Viswanadhan.
Oviwan
Honored Contributor

Re: which command is used to enable a user in hp-ux ?

Hey

Untrusted system:
passwd -d username

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

trusted system:
/usr/lbin/modprpw -k useraccount

Regards
ROCK_10
Advisor

Re: which command is used to enable a user in hp-ux ?

passwd: illegal option -- d
Usage: passwd [ -F file ] [ name ]
passwd [ -f ] [ -n min ] [ -x max ] [ -w warn ] name
Steven E. Protter
Exalted Contributor

Re: which command is used to enable a user in hp-ux ?

Shalom

man passwd

trusted
man modprpw

The explanation and examples there are quite adequate.

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
ROCK_10
Advisor

Re: which command is used to enable a user in hp-ux ?

But my system is not trusted system.
Ivan Krastev
Honored Contributor

Re: which command is used to enable a user in hp-ux ?

What is your OS version ?
'passwd' is not for trusted systems.

regards,
ivan
ROCK_10
Advisor

Re: which command is used to enable a user in hp-ux ?

OS is 10.20
B.10.20 A 9000/712 2012902162
Ivan Krastev
Honored Contributor

Re: which command is used to enable a user in hp-ux ?

Try to chage password expiration date on that user:

passwd -x 100 username


regards,
ivan
A. Clay Stephenson
Acclaimed Contributor

Re: which command is used to enable a user in hp-ux ?

If an account is locked in an untrusted system then this means that the password hash has been replaced with '*' (actually any password hash that is non null and not exactly 13 characters long is an invalid password hash but '*' is used by convention and by the standard commands to lock the account). You simply need to assign a new password to unlock it.
If it ain't broke, I can fix that.