how to recover root passwd ?

Answers were Sorted based on User's Feedback



how to recover root passwd ?..

Answer / anshumali rajput

1-Boot the server with the help of solaris os cd
ok>boot cdrom -s
2-Mount the root file
#mount /dev/dsk/<Physical name e.g. c0t0d0s0> /a
3-Go inside in this directory
#cd a
4-Edit the shadow file
#vi /etc/shadow
......
loginID:passwd
remove the passwd field which is the second field in this
file.
5-remount the filesystem
#cd /
#umount a
#reboot
Remove the os cd and boot the machine normally.login with
root account and press enter this time it will not ask any
password.

Is This Answer Correct ?    14 Yes 2 No

how to recover root passwd ?..

Answer / nagendra kumar

(Use keyboard abort sequence--Press Stop A keys to stop the
system)
ok boot net -s
# mount /dev/dsk/c0t3d0s0 /a
# cd /a/etc
# TERM=vt100
# export TERM
# vi shadow
(Remove root's encrypted password string)
# cd /
# umount /a
# init 6

Is This Answer Correct ?    8 Yes 2 No

how to recover root passwd ?..

Answer / raja.chinna

login as a single usermode
init 0
boot net -s
#mount /dev/dsk/c0t0d0s0 /a
#cd /a
#vi /etc/shadow
in /etc/shadow file delete root password
#exit
reboot

Is This Answer Correct ?    6 Yes 2 No

how to recover root passwd ?..

Answer / c. p. bansal

it is the answer for x86 platform
go to the failsafe mode at the time of booting the machine
type
#vi /a/etc/shadow
the output is as
root:kONKdumJynD/o:14398::::::
the encrypted type words are passord for root use x to
delete these words after deleting these words cameout to the
command line and reboot the system by using 'reboot' command
now boot the system you can enter in the system without
passing the root password (this is the very correct and
practical answer)
now with the help of terminal you can recreate a new
password for root with the help of 'passwd' command

Is This Answer Correct ?    5 Yes 1 No

how to recover root passwd ?..

Answer / sam

1-Boot the server with the help of solaris os cd
ok>boot cdrom -s
2-Mount the root file
#mount /dev/dsk/<Physical name e.g. c0t0d0s0> /a
3-Go inside in this directory
#cd a
4-Edit the shadow file
#vi /etc/shadow
......
loginID:passwd
remove the passwd field which is the second field in this
file.
5-remount the filesystem
#cd /
#umount a
#reboot
Remove the os cd and boot the machine normally.login with
root account and press enter this time it will not ask any
password.

Is This Answer Correct ?    4 Yes 1 No

how to recover root passwd ?..

Answer / saran

login as the single user mode ,
edit the etc/shadow file and delete the root password

Is This Answer Correct ?    5 Yes 3 No

how to recover root passwd ?..

Answer / ashish

login a singa usermode it will login without password then
change the root password
use this command
#passwd root

Is This Answer Correct ?    4 Yes 3 No

how to recover root passwd ?..

Answer / deepak pant

first restart the system & select
fail safe mode then run level 1

mounting a
# cd /a/etc
# TERM=vt100
# export TERM
# vi shadow
Remove root's encrypted password
# cd /
# umount /a
# init 6

Is This Answer Correct ?    2 Yes 2 No

how to recover root passwd ?..

Answer / vaibhav

IN SOLARIS 10 TERE IS NO NEEDE OF MOUNT MANUALY


1 INSERT CD GOTO SINGLE USER MOOD .
2 IT WILL ASK YOU TO MOUNT POINT OPTION .
3 GIVE vi /a/etc/shadow and vi /a/etc/passwd and delet
password and save it .
4 give init 6

Is This Answer Correct ?    1 Yes 3 No

how to recover root passwd ?..

Answer / lochan

boot thru cd
boot -s cd

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More Solaris Commands Interview Questions

Difference between probe-scsi-all and probe-scsi

1 Answers  


How will you grow a disk space whitout disturbs

2 Answers  


My solaris system has 16GB RAM and swap. /tmp is associated to swap. We use vmstat command to get used system memory. We observe that once we fill up /tmp, it reflects in vmstat command. My intention is only to get overall used memory in RAM. 1. Can you let me know the if there is a solaris command to just get used memory in RAM? 2. How is /tmp filling up associated to "free memory" in vmstat command?

2 Answers  


How to change the mirror status from 0:1 to 0:5 and how?

1 Answers  


What are the daemons will run when the system is booting?

2 Answers   EDS,






I have a "telnet" error then what you will do?

4 Answers   Thomson Reuters,


May I know the difference between the RAID and Volume Manager?

7 Answers   ITC Infotech,


How to rename the old root disk. In this example, rootdisk is being renamed as rootold.

1 Answers  


What is UMASK

2 Answers  


Which file maintain the kernel

2 Answers  


what is cluster.

5 Answers  


How to check the sleeping process in Solaris.

10 Answers   Chase, JPMorgan Chase,


Categories
  • Solaris Commands Interview Questions Solaris Commands (360)
  • Solaris Threads Interview Questions Solaris Threads (9)
  • Solaris IPC Interview Questions Solaris IPC (30)
  • Solaris Socket Programming Interview Questions Solaris Socket Programming (3)
  • Solaris System Calls Interview Questions Solaris System Calls (25)
  • Solaris General Interview Questions Solaris General (170)
  • Solaris AllOther Interview Questions Solaris AllOther (297)