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

What are the daemons in NIS server?

2 Answers   MoonUp, Wipro,


How many fields in passwd, shadow and group files

2 Answers  


How to start llt and gab

1 Answers  


What does pkgadd command do?

0 Answers  


How to grow disk size in SDS

1 Answers  






If the system panic or system not booting

1 Answers  


If the boot block is failed then how can you recover in VxVm?

1 Answers   Thomson Reuters,


How we configure the veritas cluster server for solaris? what r the proceure we have to take configuration

1 Answers   IBM,


How to start / stop the nfs server

2 Answers  


I want to know how to Sechudle job using at and crontab so please give the explain with example please do the needful Regards Visva

2 Answers   Sapient,


When you "ping server" and "ping server.domainname", you get different results. Why?

4 Answers  


To find the OBP environment variable

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)