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 you create domains?

1 Answers   IBM,


what are the two conditions need to be taken before encapsulating the disk under the VxVm control(Veritas volume manager)

3 Answers   Systel,


how to find bad disk in VERITAS VOLUME MANAGER

12 Answers   HP,


How to create NULL files of specific size in solaris ?

9 Answers   IBM,


What is difference between g G while creating useradd?

1 Answers  






What is the nature of VCS?

2 Answers  


if /etc/system file file got deleted how you will regenerate from ok prompt ? in solaris and if and /etc/inittab file got deleted how you will regenerate from ok prompt and if both files got deleted how you will regenerate from ok prompt

3 Answers   Wipro,


What r the daemons for DNS , Veritas, Apache,NFS Server & Client 4How can u configure two DHCP and Two DNS servers r there and u have 100's of users then 1st system takes which DHCP server and which DNS sever 5 what is the use of NIS how can u configure 6 what is the use RAID and which is the best(Solaris) 7 in RAID 5 and RAID 0+1 which u will preffer (Veritas)

3 Answers   HCL, IBM, Tech Mahindra,


please post the step by step commands to take a back of directories or files in a CDROM\DVDROM\TAPE(DDS)

5 Answers  


How to check and analyze the logs in /var/adm/messages?

2 Answers  


How will you come to know wheather hme 0r eri or to configuring the network card.

3 Answers  


Difference between ufs and tar commnad

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