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 solaris2.6 1

Status
Not open for further replies.

crystaln

MIS
Aug 29, 2000
9
US
Hi. Lost root password for solaris2.6. How do I get into single user mode without having to type in the password? [sig][/sig]
 
There is a rootkit at called rootkitSunOS.tgz that may help, just go to the site, go to search and type &quot;rootkit&quot; for a list of available rootkits. [sig]<p>Jon Zimmer<br><a href=mailto:b0rg@pcgeek.net>b0rg@pcgeek.net</a><br><a href= Aetea Information Technology</a><br>The software required `Windows 95 or better', so I installed Linux.<br>
[/sig]
 
Shutdown the system first. If u dont have the privilege to shutdown, you may have to power off .(no other go)
Then insert solaris 2.6 O/S cd in to the cdrom drive and boot the system by executing
ok> boot cdrom -s
system will boot into single user mode from the cdrom.You
will get the root prompt without a password.Then mount
the root slice say, /dev/dsk/c0t0d0s0 on a temporary directory on cdrom
#mount /dev/dsk/c0t0d0s0 /a
#cd /a/etc
vi the shadow file and remove the encrypted password field for root entry, save the file and reboot the system
#umount /a
#reboot
You have a null root password now.

Jay
[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top