Sponsored Content
Operating Systems Solaris Cannot recover root passwd through serial console mode by using CDROM Post 302660463 by cjashu on Friday 22nd of June 2012 01:21:21 PM
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

 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
PIVOT_ROOT(8)						       System Administration						     PIVOT_ROOT(8)

NAME
pivot_root - change the root filesystem SYNOPSIS
pivot_root new_root put_old DESCRIPTION
pivot_root moves the root file system of the current process to the directory put_old and makes new_root the new root file system. Since pivot_root(8) simply calls pivot_root(2), we refer to the man page of the latter for further details. Note that, depending on the implementation of pivot_root, root and cwd of the caller may or may not change. The following is a sequence for invoking pivot_root that works in either case, assuming that pivot_root and chroot are in the current PATH: cd new_root pivot_root . put_old exec chroot . command Note that chroot must be available under the old root and under the new root, because pivot_root may or may not have implicitly changed the root directory of the shell. Note that exec chroot changes the running executable, which is necessary if the old root directory should be unmounted afterwards. Also note that standard input, output, and error may still point to a device on the old root file system, keeping it busy. They can easily be changed when invoking chroot (see below; note the absence of leading slashes to make it work whether pivot_root has changed the shell's root or not). OPTIONS
-V, --version Display version information and exit. -h, --help Display help text and exit. EXAMPLES
Change the root file system to /dev/hda1 from an interactive shell: mount /dev/hda1 /new-root cd /new-root pivot_root . old-root exec chroot . sh <dev/console >dev/console 2>&1 umount /old-root Mount the new root file system over NFS from 10.0.0.1:/my_root and run init: ifconfig lo 127.0.0.1 up # for portmap # configure Ethernet or such portmap # for lockd (implicitly started by mount) mount -o ro 10.0.0.1:/my_root /mnt killall portmap # portmap keeps old root busy cd /mnt pivot_root . old_root exec chroot . sh -c 'umount /old_root; exec /sbin/init' <dev/console >dev/console 2>&1 SEE ALSO
chroot(1), pivot_root(2), mount(8), switch_root(8), umount(8) AVAILABILITY
The pivot_root command is part of the util-linux package and is available from https://www.kernel.org/pub/linux/utils/util-linux/. util-linux August 2011 PIVOT_ROOT(8)
All times are GMT -4. The time now is 11:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy