How will you rectify the root passwd in solaris



How will you rectify the root passwd in solaris..

Answer / sbrahman75

Boot through cdrom 1/3 cd in single user mode.

Ok boot cdrom-s

# mount –F ufs /dev/rdsk/c0t0d0s6 /mnt

# cd mnt

#set TERM=vt100

#export TERM --> If you dont give, vi editor won't start
properly

# vi /etc/shadow (remove the passwd entry and save the file)

# umount /mnt

# reboot ( While system come up it will ask the new root
passwd.)

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More Solaris Commands Interview Questions

How to increase the size of the file system?

2 Answers  


How will you ad new aliases name

1 Answers  


how to use the command "top" in solaris 10

3 Answers   IBM,


what is the difference between /var/adm/ and /var/sadm directory contains in solaris?

1 Answers   TCS,


How will create a rootdg

3 Answers  






how to hide file

6 Answers  


How will you grow a disk space whitout disturbs

2 Answers  


Were the vcs logs will be

2 Answers  


Hi We have upgraded our sun machine from solaris 9 to solaris 10. Before upgradation the date command output(Solaris 9) Wed Oct 13 09:45:21 IST 2010 But after upgradation the output for date is as below(solaris 10). Wednesday, October 13, 2010 9:46:14 AM IST Looks like I need to change LC_TIME=C. can you please help me how to change it for permanently

0 Answers   IBM, Wipro,


What is difference between g G while creating useradd?

1 Answers  


How will see the version of the patches

1 Answers  


How will you rectify the root passwd in solaris

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