12-27-2004 03:17 PM
I changed my HP9000 system to trusted system.
I chose the option: "Require Login Upon Boot to Single-User State".
After a long time, I forget the root password.
I reboot the system to single-user mode. It asks me to login: ask for username: root. And then password for root.
I forget the root password. How can I login user root and change it ??????
Thanks a lot!
Solved! Go to Solution.
12-27-2004 03:44 PM
restart your machine.
If you have a console ctrl-b, login and then use the rs command.
Power switch only if no user can soft boot the machine.
Interupt at the console at the 10 second prompt
You will now boot single user mode.
You may need to use the fill path of the mount command.
null it out and save it.
Set the root password and remember it this time.
Owner of ISN Corporation
12-27-2004 03:44 PM
these are notes that I have used;
boot into single user mode
# mount -a
# /usr/lbin/tsconvert -r
this untrusts the system
do # passwd root
this will allow you to change the password without the old one
# /usr/lbin/tsconvert -rto put the system trusted.
you can also remove the passowrd entry when in single user mode
# tcb/files/auth with a trusted system but any editing of the passwd files is not recommended.
when done # init 3
12-27-2004 05:14 PM
But in fact when I changed my system to trusted system, I also chose the option: "Require Login Upon Boot to Single-User State"
So When I boot to single-user mode as following:
INIT: Overriding default level with level 's'
Please enter your login name: root
Because I do not have root password. I can not enter Single-Usermode.
I have no chance to execute any command here.
Thanks and Regards
12-27-2004 05:21 PM
can you boot into multiuser mode?
if so when fully up issue
this should take you into single user mode,
then change the system from trusted to untrusted as detailed before.
if this doesn't work then try removing the password entry as steven has explaine
cp /tcb/files/auth/r/root root.bck
remove characters in u_pwd=xxxxxxxx:\
remove the x's
not sure if this will help as noty had the issue myself.
12-27-2004 06:18 PM
there are 2 ways of doing it. I have used one of them successfully.
1) Load fresh OS on a new disk, import the vg00 here, mount the root filesystem and remove the root password as indicated by SEP.
I used this method and recovered the system.
2) Another way is try through recovery CD, boot from recovery CD and mount the root filesystem and remove the root passwd.
I first attempted this method and had some problem in my CD. So I took the route of fresh OS on a different disk.
I don't know if there are other ways to recover this. Maybe, somebody else here might provide you a easier, better solution.
12-27-2004 06:33 PM
Why don't you take OS backup tape before making trusting system (you tried make_tape_recovery many times before).
I also recommend you use recovery method to recover this system
first reboot the machine using init 6 / reboot command. <--- reboot.
wait for "press any key ro interrupt autoboot" screen & press any key <--- single user mode.
passwd root <--- change password command
type new password.