Computing.Net > Forums > Solaris > Root Password

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

Reply to Message Icon

Name: Raza
Date: December 4, 2001 at 15:35:27 Pacific
Comment:

I have sucssesfullyinstalled Solaris 8 for intel. In installation I gave root password, but in starting up it wont take that password, is there any way to create new root password or use the old one.

Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: Jo
Date: December 5, 2001 at 09:33:38 Pacific
Reply:

I've had this problem with 2.8 as well, usually when installing the core bundle. For some reason, it just won't set the root password.

In order to get in at this point, you'll have to boot to cdrom and edit the /etc/shadow file by hand to allow root to log in. If I remember correctly, these are the steps:
1) At the ok prompt, "boot -s cdrom"
2) Mount the root partition at mount-point "/a" ("mount /dev/dsk/c0t0d0s0 /a")
3) "cd /a/etc"
4) "vi shadow"
5) Delete the "NP" in the second field of the entry for root.
6) Reboot (preferably to single-user mode), log in as root (with no password) and run the "passwd" command to set the root password.

I haven't done this for a while, so some of the steps may need a little tweaking (like the mount command). Good luck!


0

Response Number 2
Name: yejide olawoye
Date: December 5, 2001 at 23:59:07 Pacific
Reply:

The first solution is okay but this is for sparc system, for intel :
insert your software cd in the cdrom
(2) power on the system
(3)While the system boots watch out for the point where you can boot into single user it usually comes on after the displaying the devices type b -s
this boot into the cd.
(3)mount /dev/dsk/c0t0d0s0 /a
(4)cd /a/etc
(5) vi shadow
The password column to be changed to NP .
With this save are restart the the system.


0

Response Number 3
Name: Jo
Date: December 6, 2001 at 09:24:24 Pacific
Reply:

Sorry, silly me. :) I work on SPARC. Thanks for the correction.


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

Lost root password and unable to mount! www.computing.net/answers/solaris/lost-root-password-and-unable-to-mount/81.html

Can't change root password www.computing.net/answers/solaris/cant-change-root-password/3162.html

forgot root password on ultra 5 www.computing.net/answers/solaris/forgot-root-password-on-ultra-5-/2359.html