Computing.Net > Forums > Solaris > root password reset

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 password reset

Reply to Message Icon

Name: poonam
Date: November 16, 2001 at 00:23:10 Pacific
Comment:

i have been given a solaris machine(ultra 5)running solaris version 8. But I dont know the root password and the previous owner of the machine does not remember it. Is there a way to reset the root password



Sponsored Link
Ads by Google

Response Number 1
Name: ritesh
Date: November 16, 2001 at 00:30:15 Pacific
Reply:

follow the steps :

1. ok boot cdrom -s
u will come to the hash prompt. You have to mount the root partition here. so assuming my root partition is at c0t0d0s0
2. mount /dev/dsk/c0t0d0s0 /a
3. cd /a/etc
4. TERM=vt100 ; export TERM -> to set the terminal
5. vi shadow
--> and remove the 13 character encrypted password
5. init 6


0

Response Number 2
Name: Tom
Date: November 18, 2001 at 19:52:22 Pacific
Reply:

Is machine trusted by another? if so get then copy over the passwd and shadow file from that machine to yours and your good to go ex rcp xxx.xxx.xxx.xxx:/etc/passwd xxx.xxx.xxx.xxx /tmp) then copy on your machine from /tmp to /etc and your good to go . If that does not work do a partil install by booting from cd and then passwd stop restart that also works but dangerous and may wipe out all the info so back uo any data that you need first


0

Response Number 3
Name: Ace
Date: November 21, 2001 at 13:59:40 Pacific
Reply:

Boot to Single user mode:

after the boot up stops and you are at the login prompt. Hit- hit the keys "stop" and the letter "a". Then type in:


OK>boot disk -s

now the machine will boot you into a safe-mode so to speak. after you see the hash mark. Type this in:

#passwd root


then it will ask for a new password for root. and a second time to verify.

Wala,
Happy Hacking


-Ace


0

Response Number 4
Name: esti
Date: January 28, 2002 at 12:26:45 Pacific
Reply:

If I don't have the cd at hand, since the OS was preinstalled, is there a way to do it without the CDs?

Thanks in advance.

PS> Ace, I didn't see any hash mark, it went all the way through to the login screen.


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: root password reset

Netra: Reset root password - Mount www.computing.net/answers/solaris/netra-reset-root-password-mount-/3738.html

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

Resetting a lost root password www.computing.net/answers/solaris/resetting-a-lost-root-password-/4534.html