Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So, I have an interesting problem. The root password on one of our Sun x4500 machines was changed and never communicated. Now, nobody knows what it is. I have physical access to the machine, but no Solaris installation disc. Is there any way to reset the password, this way?

share|improve this question
up vote 2 down vote accepted

Any linux/bsd distribution which can mount your drive filesystem should have the same capability.

A FreeBSD liveCD would likely be your best candidate in the absence of the Solaris media. (BSDs support UFS.)

Good luck!

share|improve this answer
Another alternative is the OpenIndiana LiveCD. Since it's an Illumos (Solaris) kernel it also has ZFS/UFS support just like FreeBSD. – notpeter Nov 13 '12 at 16:58

Here is a step-by-step guide to resetting the root password on Solaris 10, it requires you have the Solaris 10 installation disc, and physical access to the machine though.

share|improve this answer
I have physical access to the machine, but no Solaris disc. Know any other way? – Jeremy Privett May 13 '09 at 23:40
Maybe download a Solaris 10 disc and burn it? – WerkkreW May 13 '09 at 23:52

Use the OpenSolaris Live CD:

Boot the Live CD and mount your partition...then clear out the password in the shadow file.

This will work if you're using UFS or ZFS root.

share|improve this answer

The one time I've had to do this without physical or console access, I managed to find a privilege escalation exploit that applied to my OS and patchlevel and got a root shell that way. Might be a long-shot, but otherwise I'd take a look at, since it appears to support ufs.

share|improve this answer
Talk about doing it the hard way! :-) – Brian Knoblauch May 14 '09 at 12:20

You can boot selecting the single user mode in GRUB and then proceding to reset the root password.

share|improve this answer
Not in Solaris - single user mode still requires you to enter the root password before allowing root privileges. – alanc Sep 2 '12 at 15:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.