Recover root passwd


 
Thread Tools Search this Thread
Operating Systems Solaris Recover root passwd
# 1  
Old 11-25-2006
Recover root passwd

Any body pls let me know the procedure to recover ROOT password in Sun Netra 20 Server..I forgot the password.
# 2  
Old 11-25-2006
boot the mashine with a cd/dvd or via net to single user, mount the internal disk and replace the password with a known value in /etc/shadow for user root.
# 3  
Old 11-25-2006
Quote:
Originally Posted by DukeNuke2
boot the mashine with a cd/dvd or via net to single user, mount the internal disk and replace the password with a known value in /etc/shadow for user root.
Or just blank out the password and then set a new one when the system has booted and you logged in without a root password.
Tornado
# 4  
Old 11-26-2006
Quote:
Originally Posted by Tornado
Or just blank out the password and then set a new one when the system has booted and you logged in without a root password.
that was my first thought... but when the mashine is public a root password is better for secutity reasons Smilie
# 5  
Old 11-27-2006
you can't recover a forgotten password, if you cannot logon you have to bring system down to the ok prompt(using stop-a) or if you are still logged on, init 0

then

ok boot cdrom -s

once system comes up, run format command to list your disks

0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cfb3801b,0
1. c1t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cfb3f8f1,0

ctrl+d

mount /dev/dsk/c0t1d0s0 /mnt

vi /mnt/etc/shadow

root:qR8FoxgqZibJg:13428:7:84:::: ### example

remove everything between the 1st and 2nd ':' like so

root::13428:7:84::::

umount /mnt

sync;sync;sync; reboot
# 6  
Old 11-29-2006
Thanks a lot
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

SVM recover root

Hi,, i have a solaris 10 machine , that let the root password expire.. I am trying to recover from failsafe mode. In the old days it was rater simple , boot to cdrom , mount the root disk, /a cd /a and wipe out root pw string.. Now i have to try and do it remotely , from failsafe and this... (2 Replies)
Discussion started by: goya
2 Replies

2. Red Hat

How to recover the root password?

Hello forum members, Please help me to recover the root password. i can login with the user in redhat linux but i forget root password. so pleas help me to recover. advance thanks siva. (2 Replies)
Discussion started by: workforsiva
2 Replies

3. Solaris

Recover root password

How can I recover root password :wall: 1) I am running Solaris 10 (X86) through VMware for practicing. 2) I was practicing root password recovery and deleted the password in /etc/shadow file. 3) Neither cant login the to the CLI nor Console 4) Selected the Soalris X86 failsafe in... (4 Replies)
Discussion started by: vijaykrishna
4 Replies

4. Solaris

Recover root account

Hi everyone! I've got a problem caused by another who did: - He create an user and grant the group (1) to this - The problem appears as "Permission deined when reboot the Server Dec 21 09:13:09 payment dtlogin: open_pam_conf: Owner of /etc/pam.conf is not root Dec 21... (4 Replies)
Discussion started by: trantuananh24hg
4 Replies

5. Solaris

Cannot recover root passwd through serial console mode by using CDROM

hi i cant recovery root passwd through serial console mode by using CDROM.. i tried following step but no luck in ok prompt : ok boot cdrom -s it comes single user mode i check format cmd it showing disk c1t0d0 c1t2d0 then #mount /dev/dsk/c1t0d0s0 /a #cd /a # vi /etc/shadow ( it... (13 Replies)
Discussion started by: coolboys
13 Replies

6. AIX

How to recover root password in AIX ?

Dears, We have Oracle Database installed on AIX Version 5.3 and we have to take action urgently but must by root user but unfortunately we lost password. How to recover root password? Please, be noted that I am Oracle DBA and do not have experience in dealing with AIX Systems. Please, advise... (3 Replies)
Discussion started by: mohammedmostafa
3 Replies

7. Solaris

Need to recover 'root' password

Dear All, I have lost my data backup server's root password, just have a normal login username and password ..but i need to get back my root passwd....any1 can help me out plz :confused: (7 Replies)
Discussion started by: abir
7 Replies

8. Solaris

How to recover root password

How to recover root password in solaris, I forgot root password. thanks in advance (2 Replies)
Discussion started by: durgaprasadr13
2 Replies

9. UNIX for Dummies Questions & Answers

Root Recover Issues

Trying to recover a root password on a Sun V580. Problem is I can not get it to recognize the STOP A to get to an OK prompt. Using USB keyboard and mouse. Any ideas???? (1 Reply)
Discussion started by: calamine
1 Replies

10. Solaris

Recover root password

I need to recover root password on a test server (E 10k) running solaris 9. Can someone please tell me how to do this? (1 Reply)
Discussion started by: nitinkgoud
1 Replies
Login or Register to Ask a Question