Operating System - HP-UX
1850961 Members
7635 Online
104056 Solutions
New Discussion

lost root password on HP B180

 
James F. Heinz
Advisor

lost root password on HP B180

So I found an old thread which said to login as single user, then type "passwd root" to fix the problem, or to try using vi against the passwd file. Typing passwd root does not work, cannot execute. Typing sam does not work. I changed directory to /etc hoping to see which files are there but "ls" does not work. So I tried to use vi, vi was not found. It is not in /usr/bin or /usr/ucb. Ideas? Thx.
3 REPLIES 3
DCE
Honored Contributor

Re: lost root password on HP B180


Are you in single user mode? If so, issue a mount -a command to mount /usr /opt and the rest of VG00. This should allow you access to the commands you need.
melvyn burnard
Honored Contributor

Re: lost root password on HP B180

Well if you are in single user mode, /usr and others will not be mounted, hence the SAM/vi failures etc.
You need to do mount -a to mount the file systems, then these commands should be available.
I have also moved this thread to a more appropriate forum
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
James F. Heinz
Advisor

Re: lost root password on HP B180

Thanks for the ideas, folks. I fixed the issue by using/sbin/password root to change the password. BTW, I was in single user mode and I did try to mount a couple of FS w/o success. Thanks again.