Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change root password on solaris 10

Status
Not open for further replies.

bolobaboo

MIS
Aug 4, 2008
120
US
Hi
Unfortunately no body knows current pasword. Is there way to change password or reset root password ?
 
Using Solaris Software Installation disk, run command boot cdrom -s.

Once the boot process is complete, you will be in the directory /tmp/root

Make directory: mkdir <pick a name>

Mount root partition: mount /dev/dsk/<root partition> /tmp/root/<pick a name>

vi doesn't work very well with the terminal. I always change my shell to csh and set a new terminal.

csh
setenv TERM vt220
cd /tmp/root/<pick a name>/etc
vi shadow

You will see:

root:<Encrypted Password>:

Delete all characters of the encrypted password (The colons must remain) and save the file.

Reboot and login as root, no password will be needed.

Use command passwd to set root's password.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top