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 you create domains?
what are the two conditions need to be taken before encapsulating the disk under the VxVm control(Veritas volume manager)
how to find bad disk in VERITAS VOLUME MANAGER
How to create NULL files of specific size in solaris ?
What is difference between g G while creating useradd?
What is the nature of VCS?
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
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)
How to check and analyze the logs in /var/adm/messages?
How will you come to know wheather hme 0r eri or to configuring the network card.
Difference between ufs and tar commnad