Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
i forgot the root password for solaris 8 on ultra 5 systems. When restarted an waring is raised[ unable to repair /var filesystem]
Type ctrl+d to proceed for normal startup
[or type root password for maintaince]i tried to recall possible options for the password but failed.
how do i login with this warning message with out knowing the root password
thanks in advance experts

1. Note the root partition (e.g. /dev/sd0a or /dev/dsk/c0t3d0s0)
2. Hit STOP-A or L1-A (or, on an ASCII terminal or emulator, send a
) to halt the operating system, if it's running.
3. Boot single-user from CD-ROM (boot cdrom -s) or network
install/jumpstart server (boot net -s) (NB: if it asks you for a prom
password, see below.)
4. Mount the root partition (e.g. /dev/dsk/c0t3d0s0) on "/a". "/a" is
an empty mount point that exists at this stage of the installation
procedure. (mount /dev/dsk/c0t3d0s0 /a)
5. Set your terminal type so you can use a full-screen editor, e.g. vi.
(you can skip this step if you know how to use "ex" or "vi" from open
mode). If you're on a sun console, type "TERM=sun; export TERM"; if
you're using an ascii terminal (or terminal emulator on a PC) for your
console, set TERM to the terminal type (e.g. TERM=vt100; export TERM).
6. Edit the passwd file (/a/etc/passwd for SunOS 4.x, /a/etc/passwd.adjunct
for SunOS 4.x with shadow passwords/C2 security), /a/etc/shadow for
Solaris 2.x and remove the encrypted password entry for root
7. cd to /; Type "umount /a"
8. reboot as normal in single-user mode ("boot -s"). The root account will
not have a password. Give it a new one using the passwd command.

the above procedure works fine for plain UFS (no DiskSuite, no Veritas FS).
I've lost root's password on a 220R and have RAID 1 with DiskSuite for / /usr and swap.
What device and how should I mount it to clear root's entry in /etc/shadow ? Please help.
thanks !

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

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