In my environment, recently I have faced issue with root password on one of the Solaris11 VM.
Here challenging to recover root password for this server.
These are the steps to recover root password on Solaris11 OS.
Overall activity's:
Here challenging to recover root password for this server.
These are the steps to recover root password on Solaris11 OS.
Overall activity's:
- In the VM guest settings, select CDROM as a Solaris11 ISO Image.
- Boot up from the Solaris11 ISO Image.
- Select the option 3 'Shell ' from the menu.
- Import RPOOL.
- Set the mount point for /root FS.
- Mount /root FS.
- Take backup of passwd and shadow files and edit shadow file.
- Remove password entry for root user from shadow file.
- Unmount /root FS.
- Set /root mount point to /.
- Export rpool.
- Shutdown the server.
- Change boot device back to hard disk as a first boot.
- Power on the Solaris11 VM.
- From GRUB menu press "e" to boot the server in to single user mode.
- From the MENU select "$multiboot column" and end of the line add -s to boot the server in to single user mode and press F10 to boot the server.
- Enter user name "root" and for password just enter (without password).
- Once get the prompt and set password to root user.
- Reboot the server to boot into multiuser mode.
Press F2 to get the BIOS settings option
Set CDROM as a first boot device
Press F10 to save and exit
Select the option 3 "Shell" from the menu
Check availability of rpool
Import rpool
Set the mount point for /root FS
Mount /root FS
Check mount point status and take backup of password and shadow files
Check the root password entry from shadow file
Edit shadow file and remove only password entry
Make sure root password entry deleted from shadow file
Unmount /root FS
Set /root mount point to /
Export rpool
Shutdown the server
Change boot device back to hard disk as a first boot
Power on the Solaris11 VM
From this menu press "e" to boot the server in to single user mode
Go down and select "$multiboot column" and end of the line add -s to boot the server in to single user mode
Press F10 to boot the server
Enter user name "root" and for password just enter (without password)
once get the prompt and set password to root user
Reboot the server to boot into multiuser mode
Now we can able to login with root user
0 comments:
Post a Comment