Operating System - HP-UX
1833777 Members
2148 Online
110063 Solutions
New Discussion

Re: How to change UNIX password

 
Vinod Tandon
Occasional Advisor

How to change UNIX password

I'm on HP UX 11.11.
I've never used sys admin utility on this machine. SAM is not working.
I'm sure there must be some other utility that previous system administrator used. Can anybody give me some clue? I'm working on a DEV environment and i've root access.
Thanks in advance.
5 REPLIES 5
Patrick Wallek
Honored Contributor

Re: How to change UNIX password

Have a look at the 'passwd' command.

# man passwd

# passwd
A. Clay Stephenson
Acclaimed Contributor

Re: How to change UNIX password

How about the passwd command? Man passwd for details. I would never give someone the root password who has to ask your question. This is a disaster waiting to happen.

When I said man passwd that means enter "man passwd" from the shell to display the online documentation.
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: How to change UNIX password

Hi Vinod:

To change 'root' login as 'root' and do:

# passwd

You will be prompted to verify your entry. Up to 8-characters are significant on untrusted systems. See the manpages for 'passwd' for more information. I would strongly advise you to have a second 'root' session open when you do this and verify that your change works before you logoff all sessions.

To change a non-root account password, you do (as root):

# passwd account_name

Regards!

...JRF...
DCE
Honored Contributor

Re: How to change UNIX password



The only utility I am aware of is SAM.

However, you can change a password with the passwd command

passwd by itself will change the password for the current ID

passwd when run as root, will allow you to change a specific users password

SAM should work - look at the samlog and the syslog to diagnose why it is not working...........
Vinod Tandon
Occasional Advisor

Re: How to change UNIX password

Thank you guys for taking time to respond to my question.

I was aware of passwd command. I think we have some other utility (other than sam) on this 11.11 UNIX that is used for sys admin purposes.

Anyway, i'll find that out. For now i've change the password using passwd command.

Thank you all.