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

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 do the disk cloning on solaris

1 Answers  


Disaster recovery steps if OS corrupted

3 Answers  


How to configure the network card

2 Answers  


How will you rectify the root passwd in solaris

1 Answers  






After creating user account successfully it shows 64 blocks.what for these 64 blocks are used and what information is stored in this blocks?

5 Answers  


How to Switch service group between nodes

3 Answers  


what are the alarms in solaris?

0 Answers  


I have a TCP error how can fix this error?

3 Answers   Thomson Reuters,


How to bring the resource to online and offline

2 Answers  


How will you view the packages?

2 Answers  


Command to find the VCS status

3 Answers  


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)