Reset sun solaris root password | GFisH-鱼的心情记事本
GFisH-鱼的心情记事本: Reset sun solaris root password

Friday, October 05, 2012

Reset sun solaris root password


there is some time, admin might be forget the password for the old machine that never used for long time. other than reformat everything, we can reset the root password. below is the step for resetting root password.

Tools needed
- workable cdrom or dvdrom
- boot-able sun solaris installation disk
- this manual

after ready all the tools needed, follow the step as below.

*go to ok prompt before boot into system
press stop+a

*then check the cd rom
ok probe-ide

*boot from cd with single user mode
ok boot cdrom -s

after bootup
*check the disk label
# format
then check what is the dev number, normally is c0t0d0s0

*mount the disk accordingly
# mount /dev/dsk/c0t0d0s0 /a

*set envoriment so that vi can work properly
# TERM=vt100
# export TERM
# EDITOR=vi
# export EDITOR

*edit the passwd file
# vi /a/etc/shadow

*remove the root password
root:remove everything on this session:0:0:Admin:/:/bin/csh
become
root::0:0:Admin:/:/bin/csh
then save it

*umount the drive
# umount /a

*reboot into system
# boot disk

after this step, your system can login by root without password, then change the password with
# passwd root

root password is now reset and usable.

0 comments:

Related Posts with Thumbnails