Question
How can a user boot in solaris as root if the password is non functional?

Answers

To regain the control of the solaris system as root user can be done by applying the following steps:

- Mount the installation cd into an optical drive and the installation diskette into the floppy drive.
- The system is not to be booted using the floppy and setting the cd-rom as the boot device.
- Now the user needs to type in “b -s” into the command line which would send the user to the root shell.
- Once in the root shell the following commands need to be entered which would create a directory called hdrive inside the /tmp directory. After the directory creation the hard disk partition with this folder needs to be mounted:
mkdir /tmp/hdrive
mount /dev/dsk/c0t0d0s0 /tmp/hdrive #SCSI; for ATAPI, omit "t0"

- Now the TERM variable needs to be defined:
TERM=at386
export TERM

- The user now needs to load the /tmp/hdrive/etc/shadow file:
vi /tmp/hdrive/etc/shadow

- Change the first line of the shadow file:
root::6445::::::

- The editor needs to be quit using the ! override command:
:wg!

- Reboot the system. The user would be allowed to login as root without any login password.   Your Comment






Search
Can you Answer!!
  • Q Are drop tests performed on pcb® 377 series microphones?
  • Q The maximum amount of Specified Bank Notes (SBN) that non- resident Indians can deposit with RBI (Demonetization of 2016) is
  • Q What is difference between List and a Set
  • Q Of which sutra is the theam of the concept of Eight-fold path?
  • Q How to delete materials permanently from material master?
  • Q What was the Uttarapatha?
  • Q Colour of Iodoform:
  • Q Sansad Adarsh Gram Yojana Scheme was launched on the birth anniversary of:
  • Q How can we access the data in ims db?
  • Q What is the default add-ins in qtp?
  • Q Non metal element present in liq-uid state: