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

whenever you are creating a new user (while creating user every time) file /etc/passwd file inode number will be changed why????

1 Answers   Accel,


What are the daemons in nis server.

2 Answers  


Explain shrinking the disk

2 Answers  


What is the protocol supported by NFS

2 Answers  


To check the status of the media inseted on the tape drive

1 Answers  






How will you find out enough memory?

2 Answers  


What is UMASK

2 Answers  


How can you see the adpters information?

2 Answers   Bank Of America,


how to install a patch in solaris 10( step by step details)?

2 Answers  


Hello Everyone, One of our servers is showing a strange issue, let me paste the output Code: root # uptime 4:37pm 3 users, load average: 0.00, 0.04, 0.04 Its been running since months but you can see after time there isn't any output like up 191 days(s). Even the who command with b and r option isn't giving any output. Code: root # who -b root # root # who -r root # the date command displays correct output. I am not sure but is it because someone has played with utmpx and wtmpx files, is reboot the only solution we have. Can anyone help us since we don't intend to reboot the server for such a reason and also no one has complained till yet.

1 Answers  


Iam facing an issue like below, any help why this is caused? $ ls -l /etc total 184 -rw-r--r-- 1 root other 3 Nov 28 09:35 abc1 -rw-r--r-- 1 root other 3 Nov 28 09:35 cb -r--r--r-- 1 root root 8358 Nov 28 19:04 ptmp -r-------- 1 root sys 5055 Nov 28 19:04 stmp -r--r----- 1 root root 76828 Nov 28 09:38 sudoers

1 Answers  


Hi I wanted to know what command can I use to perform a rescan in Solaris10 u4/u5 64 bit machine. I know once the disks are added we can perform a rescan using the following commands drvconfig-->disks--> cfgadm OR devfsadm But they will detect the disks and once the disks are remove the entries are still shown unless the disks are removed. So is there another command or a script that could help me find that disks were removed from my solaris machine.

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