|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
||||
|
||||
|
Recover root passwd - without the CDs: Solaris9/SunOS5.9
How can one recover or change root's passwd without having the installation CD's on Solaris?
Is it even possible?
__________________
Give a person code, and they'll hack for a day; Teach them how to code, and they'll hack forever. Analyze twice; hack once. The world's first existential ITIL question: If a change is released into production without a ticket to track it, was it actually released? About DrGroove: ITIL-Certified IT Process Engineer - Enterprise Application Architect - Freelance IT Journalist - Devshed Moderator - Funk Bassist Extraordinaire |
|
#2
|
||||
|
||||
|
Can't you boot to single-user mode from the hard disk. IIRC, at the boot prompt, you can type something like this:
OK boot /dev/dsk/c0t0d0s0 -s -s tells it to boot in single user mode and /dev/dsk/c0t0d0s0 is assumed to be your boot partition (alter it to match your setup). You may need to mount other partitions manually, depending on where vipw is (assuming that you're using vipw to edit your password). vipw is on /usr/sbin for Linux and I'm assuming that it is somewhere similar on Solaris. You might want to execute cat /etc/fstab to see the list of partitions and how each one should be mounted. After that, u can edit the passwd file with vipw, blank out the password field and then reboot into regular mode. Then log in as root with blank password. Immediately change your root password after logging in. Hope this helps ![]() |
|
#3
|
||||
|
||||
|
I'll give it a shot - thanks!
|
|
#4
|
||||
|
||||
|
OK - root has been recovered... oh, and I got a copy of the Solaris CD 1 for this after all...
Here's how I did it:
Hope this helps someone else out there if they ever run into this situation... ![]() |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Recover root passwd - without the CDs: Solaris9/SunOS5.9 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|