Computing.Net > Forums > Solaris > forgot root password on ultra 5

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.

forgot root password on ultra 5

Reply to Message Icon

Name: g.thirumaran
Date: August 30, 2002 at 06:03:35 Pacific
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: techie
Date: August 30, 2002 at 12:17:29 Pacific
Reply:

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.


0

Response Number 2
Name: jorge
Date: September 24, 2002 at 07:27:08 Pacific
Reply:

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 !


0

Sponsored Link
Ads by Google
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 Solaris Forum Home


Sponsored links

Ads by Google


Results for: forgot root password on ultra 5

How to reset root password Ultra5? www.computing.net/answers/solaris/how-to-reset-root-password-ultra5/3864.html

forgot root password in sun solaris 5.8 www.computing.net/answers/solaris/forgot-root-password-in-sun-solaris-58/5120.html

Solaris 8 on Sun Ultra 5 www.computing.net/answers/solaris/solaris-8-on-sun-ultra-5/2495.html