![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with Lost Root Password | JoeJohnSmith | UNIX for Advanced & Expert Users | 3 | 05-18-2006 01:26 PM |
| lost root password in AIX | Welfaric | AIX | 4 | 02-15-2006 07:55 AM |
| how to access root priveliges if root password is lost | wojtyla | Linux | 1 | 02-18-2005 06:24 AM |
| Lost root password / Can't login as root | Perderabo | Answers to Frequently Asked Questions | 0 | 06-22-2004 07:40 PM |
| Lost Root Password | GlockCW | UNIX for Advanced & Expert Users | 2 | 06-21-2004 05:33 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Root Password Lost !!!
I've forgotten root password on one of Solaris machines, i searched in forumes to find a similar case but there's no proceudre here to reinintialize root password, cause most of related commands & even single user mode needs root password that i don't have.
Any solution would be helpful. --rgrds, nikk |
|
||||
|
Step by Step
You need to use:
a) A console, or connect a PC/notebook in the serial port using the apropiate serial cable: 1) If the Serial console use an RJ45 as Serial conector use the cable provided with the machine, or if you use cisco switches use the terminal DB9 (for the PC an the cisco cable to serial 1) 2) If the Serial console use an DB25 connector as Serial conector use the cable provided with the machine, or an HP Serial cable DB9 to DB25 Because the most common case is to use a serial connection the rest of the post is b) Open an Hyperterminal/SecureCRT or whatever and open a connection via COM1 (9600-8-N-1-None) using vt100 emulation. c) Send a shift-break to halt the system d) at the ok prompt OK boot cdrom -s e) After boot TERM=vt100 export TERM mkdir /tmp/d0 mount /dev/dsk/c0t0d0s0 /tmp/d0 cd /tmp/d0/etc f) Leave blank the second field of the /etc/passwd vi /tmp/d0/etc/passwd ( delete the x an save :wq! ) g) reboot h) when prompt for root passwd press enter i) change root passwd passwd. Note: If possible that you need to run an fsck example: fsck -F <FSTYPE> -y /dev/rdsk/c0t0d0s0 FSTYPE: usually ufs Note 2: If you use Solstice Disksuite in order to mirror boot disk, you need to copy the modified /etc/passwd to the other partition. I.E.: f.1) mkdir /tmp/d1 mount /dev/dsk/c0t1d0s0 /tmp/d1 cp -p /tmp/d0/etc/passwd /tmp/d1/etc/passwd Last edited by hugo_perez; 01-14-2003 at 01:37 PM.. |
|
||||
|
depends on solaris/SunOS level
On with solaris level are you working on.
Since version 2.6 solaris ask you for enter the root password when you boot single user, so this will not help you. the only way, as far i see is to boot from cdrom. stop the installation fase and mount the root-file-system. make a copy of the password file, reset the password field in the password file for user root. reboot your system, set the password again. |
|
||||
|
I have a box with Solaris 2.6 that work different
I have a box with Solaris 2.6 that work different,
never prompt for root password when I boot from the boot prompt with boot cdrom -s. The only password that I supply in same boxes are the Firmware password if it's established. Regards. Hugo |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|