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
# 8  
Old 06-22-2012
@ jlliagre When you say date, what are you referring to?

---------- Post updated at 06:32 PM ---------- Previous update was at 06:26 PM ----------

@jlliagre I believe you are referring to 6445 as the date? I faced this same issue before and by experimenting with it I figure out the problem of the root password not being recovered. First when I was studying...all what I read was to remove the entire root entry. I did this and I had a nightmare. Finally I figured I had to remove only the encrypted portion of the root password. I did that and left 6445. Rebooted the OS and it came to login prompt. Logged in with root and hit entered. Password was still required. I went into the file again and deleted 6445 leaving root:::::::::::::: and it did work.
So I learned the had way after having a headache. Go ahead you can try it yourself and see what happens.
# 9  
Old 06-22-2012
I'm afraid that doesn't make sense. I certainly can login without providing a password with an empty password field and 6445 as the last login date, i.e. with:
Code:
root::6445:::::::::

in /etc/shadow.

Note that 6445 is the default last login date on Solaris and represent Aug 25 1987, an early Solaris 2.0 beta release.
# 10  
Old 06-22-2012
@jlliagre Well if thats the case then you should try it and let me know the out come because I tried it and it never worked. So what do you think is the problem? By the way lets see if coolboys fix the problem with my solution.
# 11  
Old 06-22-2012
I don't recall the O/P mentioning the version of Solaris. In my old SunOS notes I notice that I had to issue the pwconv command after manually editing /etc/passwd or /etc/shadow, and before issuing passwd root.

Hope this helps.

Ps. If you have to edit the current active /etc/passwd file use vipw not vi.
# 12  
Old 06-22-2012
Quote:
Originally Posted by cjashu
you should try it
As I wrote, I already did and it worked as expected.

One possible cause for the OP problem (and possibly an explanation for your experiment) would be a corrupted /etc/shadow file. An empty line at the beginning of this file is sufficient to prevent logins. See that post.
# 13  
Old 06-23-2012
I've been following this thread and can't add much more technically. The method being suggested should work fine.

From my experience removing the encrypted password from /etc/shadow is all that is required to clear a password.

Coolboys do take special note of jilliagre's post regarding a blank line at the start of /etc/password or /etc/shadow causing this problem. DOUBLE CHECK FOR THAT!!

Otherwise, are you absolutely sure that the harddisk root filesystem that you mounted and edited (removing the encrypted password) IS the same one you are booting from???
# 14  
Old 06-26-2012
Thanks, Bartus11,jlliagre...
problem resolved ....

i tried vi /a/etc/shadow (it showing encrpt passwd) and removed


i set new root passwd after reboot ..
problem resolved ....

thank you very much bartus11,jlliagre and cjashu

---------- Post updated at 12:26 AM ---------- Previous update was at 12:24 AM ----------

thanks very much

---------- Post updated at 12:27 AM ---------- Previous update was at 12:26 AM ----------

thank you very much
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