If you have forgotten the root password for a server, how
do you get back in?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
how can system identify run level at boot time?
How to Create a snapshot mirror
How can we take the failback in Veritas Cluster Server.
Were will be the configuration for metadevice
How to unconfigure llt and gab
What are the differences between the command line and graphical user interface?
please post few interview questions ? or any url related to solaris
how to find NIC card type. is there any command to display the card type when it not plumbed.
How far VCS supports?
What command can be used in running a background process?
how to hide file
How to check the patch level in solaris