Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lost Root Password on HP-UX10.20

Status
Not open for further replies.

crystaln

MIS
Aug 29, 2000
9
US
Hello. The old SA left taking the root password with him and now noone knows it. I have tried the crack program to try to crack the password, but it did not work. Any suggestions would be greatly appreciated.

Thanks in Advance
 
I assume you can't log in??? The system comes up but there is no access?
Don't know if you are on a server, workstation, web console, console, ???

You must boot to single user mode:
/sbin/shutdown -y 0 should do it for a 10.x

or you can completely power down and upon re-boot press any key, press
 
Go to the console, reboot your HP-UX box to single user mode, then change root password. That's it.

1. shutdown -r -y 0 (or simply reboot) ;shutdown and reboot
2. Intercept AUTOBOOT by pressing space bar
3. bo pri isl ; I assume you are booting primary boot path
4. hpux -is ; simple user mode
5. passwd root ; change root password

And you have your root password changed. So never let any stranger approach your console. ;)
 
This might be a stupid question, but don't you have to log in as root in the first place to run [tt]shutdown[/tt] or [tt]reboot[/tt]?
 
Andy,

<grin> Yes, you're right. Thanks for correcting me. So step 1 should be hardboot your machine instead of &quot;shutdown -r -y 0&quot;.
 
Thanks for the input. It is a server, running an oracle database. Don't really want to just hard boot it. I started snooping around under a user name and noticed a .rhosts file. called the SA for that box and got in. I should have looked for that first.
 
Yay! Security hole to the rescue! Now that you've got the root password changed, you are going to remove that .rhosts file, aren't you? And make sure /etc/hosts.equiv doesn't have any entries?

Glad you're back in, and sorry for getting all paranoid...
 
Yeah, removed those as soon as I got in. Thanks for the input!! [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top