Cannot recover root passwd through serial console mode by using CDROM


 
Thread Tools Search this Thread
Operating Systems Solaris Cannot recover root passwd through serial console mode by using CDROM
# 1  
Old 06-22-2012
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 showing following )
root:NP:6445:::::::::
i removed NP and save
#reboot
it asking root passwd again after reboot

help me .. how to solve this issue
# 2  
Old 06-22-2012
Are you sure you are editing right file? vi /etc/shadow should be vi /a/etc/shadow. When it is asking for password did you try just hitting Enter?
This User Gave Thanks to bartus11 For This Post:
# 3  
Old 06-22-2012
Quote:
Originally Posted by coolboys
#cd /a
# vi /etc/shadow ( it showing following )
root:NP:6445:::::::::
i removed NP and save
NP means "no password". That should have given you a hint you were not editing the right file ...
# 4  
Old 06-22-2012
yes, i know NP means no passwd .. i just tried removed .. it asking username and passwd .. i cant login to the machine ....

how to solve this issue .. plz help me
# 5  
Old 06-22-2012
Quote:
Originally Posted by coolboys
how to solve this issue .. plz help me
Did you try bartus11 suggestions ? (editing the correct file and typing the enter key when prompted for a password)
This User Gave Thanks to jlliagre For This Post:
# 6  
Old 06-22-2012
You did not do it right. Here are the correct steps.

Code:
 ok boot cdrom -s
# mount /dev/dsk/c1t0d0s0 /a
# TERM=sun; export TERM
# vi /a/etc/shadow

from your file you said you have root as:
root:NP:6445:::::::::
and you removed NP and left:
root::6445:::::::::

Code:
# vi /a/etc/shadow 
remove NP and 6445 they are associated to each other.
Now you should have: 
root:::::::::::

save and exit the file 
# cd /; umount /a
# init 6

And you are done. When it reboots, enter the root login name hit enter.
You will be logged in and then you can change the root password.

Code:
 # passwd root

# 7  
Old 06-22-2012
@cjashu : Why do you think removing the date of the last root password change would affect the OP issue ?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

HOW TO INSTALL os from cdrom from console?

Hi all, I need to do installation via console , a image is stored in cdrom. The OS is Sun Solaris , Please tell me how to go about it. I just need to know the first command and thereafter. Please advise. Thanks Manali (5 Replies)
Discussion started by: manalisharmabe
5 Replies

2. Solaris

Recover/Reset Sun Java System Server Console password

I am administering a Solaris 10 server that I have root password for but need to get to the system server console. The password has been 'forgotten'. I've tried changing it in /var/opt/mps/serverroot/admin-serv/config/admpw and local.conf with the current hashed password in /etc/shadow for a... (4 Replies)
Discussion started by: jameson
4 Replies

3. Solaris

How to setup a serial console?

i am running solaris 10 in my vmware workstation. How to setup a console for my solaris box. in Vmware i could see a serial port option. can some one help me on how i can setup a console . (0 Replies)
Discussion started by: chidori
0 Replies

4. UNIX for Dummies Questions & Answers

IP Console Vs Serial console.

Hi Gurus, Can some one explain me the difference between a IP console and a serial console. (1 Reply)
Discussion started by: rama krishna
1 Replies

5. Red Hat

How Can i recover Bootable File Through a Cdrom

Hi To All, I Have Unfortunately Deleted my Grub,Initrd,Vmlinuz files. And am adding these files By using Rescue Mode, But it is not properly working. Give Me a Solution. Iam looking forward from any one. Thanks in Advance. (1 Reply)
Discussion started by: Sharath Kumar
1 Replies

6. UNIX for Dummies Questions & Answers

How-to boot server with no CDROM via serial connection to laptop

I have an x86 Sun server, with no CDROM drive and no OS currently loaded on it. I need to install CentOS on it... trying to figure out how to do that. I've heard there are ways to connect to the serial management port, and mount a laptop's CDROM drive as a drive the server will recognize to... (0 Replies)
Discussion started by: Mariognarly
0 Replies

7. Solaris

Can't read floppy and cdrom in single user mode

I am having trouble reading floppy and crom in single user mode. running volcheck doesn't do anything I am using Solaris -10 on Sun blade 150. Has anybody seen this problem .. or do I have to manually mount the cdrom ...and floppy ??? thanks (2 Replies)
Discussion started by: ajnabi
2 Replies

8. HP-UX

serial console hangs

I have a HP Visualize C200 running hpux that I am trying to boot into using a null modem through com1 from my Sun Ultra 10. I get all the way to the login prompt and then it becomes innactive and wont let me access the machine anymore. Any ideas? (2 Replies)
Discussion started by: trajek
2 Replies

9. Solaris

Recover root passwd

Any body pls let me know the procedure to recover ROOT password in Sun Netra 20 Server..I forgot the password. (5 Replies)
Discussion started by: gini
5 Replies

10. AIX

Installing via serial console

I'm stuck - when I boot the machine and hit 5 on the keyboard, all I get is an SP login. Can someone give me some tips on how to get to the install via the serial port? (2 Replies)
Discussion started by: tb0ne
2 Replies
Login or Register to Ask a Question