Discussion Locked

Reonfiguring unknown "root" password

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Is there a way to delete the current root password and reenter it ? The problem being that the Solaris 2.6 system comes up automatically as a different user with no permissions to run "sys-unconfig.
Other than a full reload I am looking for suggestions.

3 replies

by skip_202

The standard fix for this is to boot your system from the Solaris CD and mount the root filesystem:

Bring your system to the eeprom prompt using Stop-A. At the "ok" prompt enter the following:

ok boot cdrom -s
ok mount /dev/dsk/c0t10s0 /a
okvi /a/etc/passwd
ok halt

This solution requires that you have physical access to the console and CDROM drive and that your root partition is located in c0t10s0. You can confirm the root partition if the system is running by checking in /etc/mnttab.

Cheers,

This discussion is closed to new replies.