How to reset password on your solaris system

Rabu, Maret 22, 20170 komentar

If you have a problem with your user / password of your Solaris, so you need to reset the password. 
Here is how to reset password on solaris. We need the liveCD to do that. And absolutely if the server is production we need to schedule downtime to do this. 

1. Enter the live cd by using command on the ok proom.
ok#boot cdroom -s

2. Then you will enter the single user (liveCD). 
3. If you have mirror disk, you need to mount disk0 and disk1 to some free path for example : 
host#mount /dev/dsk/c0t0d0s0 /a -->disk0
host#mount /dev/dsk/c0t0d1s0 /b -->disk1
host#cd /a
host#vi /etc/shadow
root:$1$SwSAFEZC$0ifnwqZ7crwtzPkofIwCY0:16916:7:28:21:::
daemon:*LK*NP:15450::::::
bin:*LK*NP:15450::::::
sys:NP:6445::::::

Delete the BOLD one and will be : 

root::16916:7:28:21:::
daemon:*LK*NP:15450::::::
bin:*LK*NP:15450::::::
sys:NP:6445::::::

then 

host#cd /b
host#vi /etc/shadow
root:$1$SwSAFEZC$0ifnwqZ7crwtzPkofIwCY0:16916:7:28:21:::
daemon:*LK*NP:15450::::::
bin:*LK*NP:15450::::::
sys:NP:6445::::::

Delete the BOLD one and will be : 

root::16916:7:28:21:::
daemon:*LK*NP:15450::::::
bin:*LK*NP:15450::::::
sys:NP:6445::::::

5. After all above then you restart the server and you will change the new password when you will log in. 
Share this article :
 
Support : Awan Argoho San Storage Solution
Copyright © 2011. SHARE MY IT EXPERIENCES - All Rights Reserved
Email | awanargoho@gmail.com Whatsapp | 08111929925
Proudly powered by Blogger