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 |
whenever you are creating a new user (while creating user every time) file /etc/passwd file inode number will be changed why????
What are the daemons in nis server.
Explain shrinking the disk
What is the protocol supported by NFS
To check the status of the media inseted on the tape drive
How will you find out enough memory?
What is UMASK
How can you see the adpters information?
how to install a patch in solaris 10( step by step details)?
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.
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
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.