If you have forgotten the root password for a server, how
do you get back in?

Answers were Sorted based on User's Feedback



If you have forgotten the root password for a server, how do you get back in? ..

Answer / praveen

boot cdrom -s
mount /dev/dsk/cotdos0 /a
cd /a/etc
TERM=vt100
export TERM
vi shadow
//remove passwd field after save the file
cd /
umount /a
init 6

Is This Answer Correct ?    10 Yes 0 No

If you have forgotten the root password for a server, how do you get back in? ..

Answer / jsdkar

boot net -s
mount /dev/dsk/cotdos0 /a
cd /a/etc
TERM=vt100
export TERM
vi shadow
//remove passwd field after save the file
cd /
umount /a
sync
init 6

Is This Answer Correct ?    5 Yes 1 No

If you have forgotten the root password for a server, how do you get back in? ..

Answer / manoj kumar

go to ok prompt from there
boot cdrom -s
#mount /dev/dsk/c0t0d0s0 /a
#cd /a
#cd
#vi /etc/shadow

remove the second field which is in encryption form, and
save the file

#umount /a

#boot s

when it boots for single user mode then change the root
password using command
#passwd root

now reboot the system in multiuser mode

Is This Answer Correct ?    2 Yes 0 No

If you have forgotten the root password for a server, how do you get back in? ..

Answer / khaja shaik

Break the password using cd.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Solaris Commands Interview Questions

how can system identify run level at boot time?

5 Answers   Accenture,


How to Create a snapshot mirror

2 Answers  


How can we take the failback in Veritas Cluster Server.

1 Answers   ITC Infotech,


Were will be the configuration for metadevice

1 Answers  


How to unconfigure llt and gab

1 Answers  






What are the differences between the command line and graphical user interface?

0 Answers  


please post few interview questions ? or any url related to solaris

0 Answers  


how to find NIC card type. is there any command to display the card type when it not plumbed.

4 Answers   Thomson Reuters,


How far VCS supports?

1 Answers  


What command can be used in running a background process?

2 Answers  


how to hide file

6 Answers  


How to check the patch level in solaris

4 Answers   IBM,


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)