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 to use the command "top" in solaris 10

3 Answers   IBM,


How can you recover the backup of NIC card if it is corrupted?

1 Answers   Thomson Reuters,


What is nslookup

2 Answers  


how to configure ethernet card.

4 Answers  


How to modify network card speed

2 Answers  






If the /var file system is full then what you will do.

2 Answers   HP, ITC Infotech,


There are two nic cards on a sun server. I need to connect one nic to pupic ip and another nic to DMZ. Could you tell me how to configure step by step?

0 Answers   Infosys,


How will you take ufsdump and ufsrestore in a sing command line?

2 Answers  


If you have multiple ethernet interfaces, how do you keep it from routing between them?

3 Answers  


Explain rc script and run level

1 Answers  


How to stop one node cluster exclusively

1 Answers  


how we can create user in solaris?

6 Answers   Tech Mahindra,


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)