parsed.org

Tips by tag: hack

Resetting the Root Password by xinu on Sep 10, 2005 12:14 AM

Reset the root password:

1. Insert the Solaris install CD.
2. Issue STOP-A (Ctrl-Break).
3. Type: boot cdrom -s
4. fsck /dev/rdsk/c0t0d0s0
5. mnt /dev/dsk/c0t0d0s0 /a
6. cd /a/etc
7. TERM="vt100"; export TERM
8. vi shadow
9. on root line, delete everything in the second ":" delimited field.
10. exit out of file (ESC :wq! -or ESC ZZ)
bootcommandsconfigurationhackpasswordresetrootsolarisstartup
RSS