Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2434
  • Last Modified:

Forgot root password in Solaris 8

We have a Solaris 8 server in the office. Nobody seems to know the password to any account on the OS. If I want to login as root, but don't know the password, what can I do? I am hoping that I don't have to re-install the whole OS! Thanks.
0
yongsing
Asked:
yongsing
  • 3
1 Solution
 
yuzhCommented:
Have a look at the instructions in the following page, remove the password and reset the
password:

http:Q_20782037.html
0
 
yongsingAuthor Commented:
I followed the instruction and booted from the installation disk. It did not enter TERM=... . I just used vi to remove the entire line containing root: . When I rebooted the OS, it still asked me for a password. What have I done wrong?
0
 
yongsingAuthor Commented:
This is what I did:

fsck -y /dev/dsk/c0t0d0s0
mount /dev/dsk/c0t0d0s0 /a
cd /a/etc
chmod u+w shadow
vi shadow
(remove line starting with root:...)
cd /
umount a
init 6

Do I remove entire line starting with root: ?
0
 
yongsingAuthor Commented:
I know what's wrong. I should not delete the whole line. I just need to remove the encrpted string, so what I have left is:

root::

Now I managed to login to the system.
0
 
OtetelisanuCommented:
Example :


With passwd :

root:cGXAMpkZ7tsCA:12440::::::

No passwd :

root::12440::::::
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now