1753329 Members
5006 Online
108792 Solutions
New Discussion юеВ

Re: Reset Users Password

 
SOLVED
Go to solution
Anand_30
Regular Advisor

Reset Users Password

Hi,

I have the Root access to a HP-UX server. I am not a system admin but I have been assigned the task of reseting a user's password.

Can anyone please tell me how do i accomplish that.

Thanks,
Anand
20 REPLIES 20
DCE
Honored Contributor
Solution

Re: Reset Users Password

Anand


If is not a trusted system

type

passwd userID

and change the password

If it s trusted system

type /usr/lbin/modprpw -k userID

to reset a current password (account locked)

or
if you want to just change the password

passwd usrID


Or, you can use sam to modify/change passwords
Deoncia Grayson_1
Honored Contributor

Re: Reset Users Password

passwd

or
sam -> users account -> highight user id -> actions -> modify passwd
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Jeff_Traigle
Honored Contributor

Re: Reset Users Password

Or, if it's a Trusted system, and you want to reset the password to a random string, use:

/usr/lbin/usermod -x userid

Saves you having to be creative to think up a password for them. :)
--
Jeff Traigle
Jeff_Traigle
Honored Contributor

Re: Reset Users Password

Sorry, temporary brain failure... the command is "/usr/lbin/modprpw -x userid".

BTW... the other advantage to using /usr/lbin/modprpw -x is that it expires the password immediately so the user is forced to change it when they login.
--
Jeff Traigle
Sivakumar TS
Honored Contributor

Re: Reset Users Password


Dear Anand,

#passwd is to set/change the password of a user.

But If you dont want to SET the user password you may force the user to CHANGE the password during next login, TRY

#passwd -f

With Regards,

Siva.
Nothing is Impossible !
dipesh_2
Regular Advisor

Re: Reset Users Password

Hi Ananand

passwd or you can change password throgh Sam

sam -> users account -> highight user id -> actions -> modify passwd
change password.
Muthukumar_5
Honored Contributor

Re: Reset Users Password

Simply use passwd

It will ask for new passwd and confirm passwd. That is it.


Example:

# passwd muthu
Changing password for muthu
New password:
Re-enter new password:
Passwd successfully changed

--
Muthu
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: Reset Users Password

Hi Anand,

If this is not a Trusted system, you can do it in two ways,

1) # passwd

2) # sam --> Accounts for Users and Groups -->Users

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Senthil Prabu.S_1
Trusted Contributor

Re: Reset Users Password

Hi,
passwd

or
sam -> users account ->user id -> actions -> modify passwd


HTH,
Prabu.S
One man's "magic" is another man's engineering. "Supernatural" is a null word.