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 |
Explain FSCK
What is different between crontab and at command?
How will create a rootdg
How would you truncate a log file that is growing too large if you don't have space to compress it or to move it somewhere else? How would you do it?
wts differnce between svm&vxvm?
What are printer daemon
How to check the sleeping process in Solaris.
10 Answers Chase, JPMorgan Chase,
How will you ad new aliases name
What is the difference between dsk and rdsk
I have single NIC card and we have two ports can we configure as IPMP?
How will see the version of the patches
How will you check the disk performance?