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 add the more than one number of pkg at a time in solaris

2 Answers  


How will you comment error line in /etc/system file

1 Answers   IBM,


I have only one plex and one subdisk and one volume , then plex is failed how can we recolect it?

4 Answers   IBM,


How to find the network card speed

3 Answers  


How do you add the disk without reboot the server?

2 Answers  






What command can be used in running a background process?

2 Answers  


How will you find out enough memory?

2 Answers  


In VxVm why should we do for Disk Group import and Deport?

2 Answers   EDS,


What is WWN on storage

2 Answers  


what are the alarms in solaris?

0 Answers  


If a main.cf files corrupted how will you rectify

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