jump to navigation

Reset the Solaris root password June 13, 2008

Posted by claudio in Uncategorized.
Tags: , ,
trackback

Forgetting the root password (or being replaced without you knowing it). Pretty silly when it happens, but it does happen. Follow this steps if you need to reset the root password of a Solaris system.

Use the dvd or the “software cd 1 of 2″ to boot in single user mode:

From ok prompt:

ok boot cdrom -s

When the system is booted:

# mount /dev/dsk/c0t0d0s0 /a (mount -F ufs -rw /dev/dsk/c0t0d0s0 /a if problems)
# cd /a/etc
# TERM=sun
# export TERM
# vi shadow

=> delete passwd entry (13 chars) in the line for the root account (between the :: )
=> save and exit:
:wq!

Then:

# cd /
# umount /a
# init 6

After reboot – log in as root with no password, open up a terminal, type passwd, and create a new passwd.

About these ads

Comments»

No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 88 other followers

%d bloggers like this: