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 can you search for commands at the boot prompt if you only know part of the command?

9 Answers  


What are the packages for DNS?

4 Answers   IBM,


How can you create domains?

1 Answers   IBM,


Explain RAID0, RAID1, RAID3,

1 Answers  


What are the daemons in nis server.

2 Answers  






How can we take the failback in Veritas Cluster Server.

1 Answers   ITC Infotech,


How to create swap file

1 Answers  


Procedure for Firmware upgrade

1 Answers  


in solaris performance tuning what fields we check with IOSTAT, VMSTAT and NETSTAT?

3 Answers   Wipro,


attributes of FS

1 Answers  


what is the difference between init runlevel and milestone?

2 Answers  


How to start / stop the nfs server

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)