Computing.Net > Forums > Unix > root passwd LOST

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.

root passwd LOST

Reply to Message Icon

Name: Nish
Date: December 23, 2002 at 21:12:38 Pacific
OS: Solaris
CPU/Ram: 256
Comment:

All,
In order to recoverthe root passwd in my SUN Box I followed the below mentioned procedure as adviced in the forum.

By STOP+A and
#boot cdrom -s --> OK
# cd /tmp --> OK
# mkdir /tmp/root --> Failed.Directory
already present.
root partition is c0t0d0s0
#mount /dev/dsk/c0t0d0s0 /tmp/root --------> /dev/dsk/c0t0d0s0 is already mounted, /tmp/root is busy, or the available number of mount points has been exceeded.
# csh
# setenv TERM vt100

No shadow file in /tmp/root/etc directory.

Appreciate your Help to recover the system.

Greetings for the Seasons to ALL !!




Sponsored Link
Ads by Google

Response Number 1
Name: hj
Date: December 26, 2002 at 11:52:00 Pacific
Reply:

Its been awhile since I did this but I think these are the steps.

stop a

boot cdrom -s

mount -f hsfs /dev/dsk/c0t0d0s0 /a or /mnt, both are just temporary mount points.

TERM=vt100; export TERM

cd to whichever mount point you mounted too (ex. cd /mnt/etc)

don't forget to put the mount point in front of /etc because if not you'll just cd to /etc the system dir. cd /mnt/etc or /a/etc and vi shadown file, delete encrypted password, unmount cd and then reboot, when system comes back up, it will be blank. Hope this helps.


0
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 Unix Forum Home


Sponsored links

Ads by Google


Results for: root passwd LOST

I lost root passwd for Solaris www.computing.net/answers/unix/i-lost-root-passwd-for-solaris/1647.html

root passwd www.computing.net/answers/unix/root-passwd/3167.html

Trace root passwd change logs www.computing.net/answers/unix/trace-root-passwd-change-logs/6849.html