Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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

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

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.

![]() |
![]() |
![]() |

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