Computing.Net > Forums > Solaris > Lost root password and unable to mount!

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Lost root password and unable to mount!

Reply to Message Icon

Name: Simon Rice
Date: February 13, 2001 at 04:37:00 Pacific
Comment:

Hi,

As usual, a solitary Sun box has reared its ugly head, and the only person who knew the root password left aeons ago... So, I tried following the usual process of booting from the Solaris 5.5.1 CD-ROM (as we don't know of any other user accounts) into single user mode and then mounting the root device to change the passwd file. Strangley, however, none of the usual commands seem to be working, such as "vi", "df" and, more importantly "mount"! Any ideas about what I can do to enable these commands?

Also, as I'm only really a DBA who dabbles in Sys Admin, please use layman's terms!

Thanks for your help,

Simon Rice



Sponsored Link
Ads by Google

Response Number 1
Name: oliver
Date: February 15, 2001 at 13:13:48 Pacific
Reply:

there is nothing you need to do to enable these commands. The CD you're booting from is read-only so they shouldn't get corrupt unless the CD itself is damaged.
If you can get to a root prompt, the following should be all you need:
# TERM=vt100
# export TERM
# mount /dev/dsk/c0t0d0s0 /a
# cd /a/etc
# vi ./shadow
edit out the 13 character hashed password for root
# reboot


0

Response Number 2
Name: umesh
Date: February 26, 2001 at 13:37:06 Pacific
Reply:

I will give all needful steps to have no password for root. Pl. follow the same.
1: Insert Solaris CD in cd drive and from ok prompt run command: boot cdrom -s
2:This will take you single user mode
# fsck /dev/rdsk/c0t0d0s0.
Answer y to clear all.
3:mount /dev/dsk/c0t0d0s0 /a
4:cd /a/etc
5:TERM=sun
6:export TERM
7:vi /a/etc/shadow
remove apssword form password field of root. and save file with wq!
8: cd /
9:unmount /a
10: init 6
You will be prompted for password for root.

That's it.

If still have problem mail me your problem at ukrami1@hotmail.com

Umesh, Edison, NJ.



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: Lost root password and unable to mount!

Unable to mount root during installation www.computing.net/answers/solaris/unable-to-mount-root-during-installation/2282.html

Unable to mount floppy drive - Solaris 8 www.computing.net/answers/solaris/unable-to-mount-floppy-drive-solaris-8/171.html

Lost Root pwd and cannot boot from CD www.computing.net/answers/solaris/lost-root-pwd-and-cannot-boot-from-cd/1790.html