1847146 Members
5739 Online
110263 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.
Shameer.V.A
Respected Contributor

Re: Reset Users Password

Hi Anand,
You can use passwd for changing /resetting a user's passord

# passwd anand

It will ask you for the current & then new password.

You can also use sam for doing the same.

Regards,

Shameer
.... See invisible, feel intangible and achieve impossible as everything is possible ....
Anand_30
Regular Advisor

Re: Reset Users Password

Hi All,

Thank you for your assistance.

Can anyone please tell me any book or website where I can get information on HP-UNIX system administration.

It will be of great help.

Thanks,
Anand

Deoncia Grayson_1
Honored Contributor

Re: Reset Users Password

You can find vital information for system administration at:

docs.hp.com
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Paul Sperry
Honored Contributor

Re: Reset Users Password

docs.hp.com is good so is unixguide.net
Shameer.V.A
Respected Contributor

Re: Reset Users Password

Hi Anand,
If you can give me your mail id, I will send you the pdf docs I have.

Regards,

Shameer
.... See invisible, feel intangible and achieve impossible as everything is possible ....
Cem Tugrul
Esteemed Contributor

Re: Reset Users Password

Anand_30
Regular Advisor

Re: Reset Users Password

Shammer,

My email ID is s_anandbalaji@yahoo.com.

Please send me the PDF docs that you have.

Thanks,
Anand
Shameer.V.A
Respected Contributor

Re: Reset Users Password

Hi Anand,
I have sent the docs to your id.

Hope it helps you.

Regards,

Shameer
.... See invisible, feel intangible and achieve impossible as everything is possible ....
Muthukumar_5
Honored Contributor

Re: Reset Users Password

Anand,

You can get or view html or pdf files related on hp-ux system from,

1) http://docs.hp.com/

It is better to start with your system using man pages itself.

Documents based on every operating system is listed in docs.hp.com. Download and use it.

PS> Don't give your mail ID in forums. May be a change to get un-needed mails too.

--
Muthu
Easy to suggest when don't know about the problem!
Cem Tugrul
Esteemed Contributor

Re: Reset Users Password

Anand,
Don't you think submit some points before
closing this thread?
:-))
Our greatest duty in this life is to help others. And please, if you can't
Arunvijai_4
Honored Contributor

Re: Reset Users Password

Hi Anand,

Three resources to gain HP-UX knowledge,

1) ITRC HP-UX Forums
2) docs.hp.com
3) man pages

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"