Recovering Passwords in Solaris 11 (Paulie's World in A Blog) PDF

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Recovering Passwords in Solaris 11 (paulie's world in a blog)

Oracle

Blogs Home Products & Services Downloads Support Partners Communities About Login Oracle Blog
paulie's world in a blog Paulie's Blog

ZFS Storage at Oracl... | Main | Configuring a Basic...

Recovering Passwords in Solaris 11


By paulie on Feb 11, 2013 About once a year, I'll find a way to lock myself out of a Solaris system. Here's how to get out of this scenario. You'll need a Solaris 11 Live CD or Live USB stick. Boot up from the Live CD/USB Select the 'Text Console' option from the GRUB menu Login to the solaris console using the username/password of jack/jack Switch to root
$ sudo su password jack

Mount the solaris boot environment in a temporary directory


# beadm mount solaris /a

Edit the shadow file


# vi /a/etc/shadow

Find your username and remove the password hash


Convert username:iEwei23SamPleHashonf0981:15746::::::17216 to username::15746::::::17216

Allow empty passwords at login


$ vi /a/etc/default/login Switch this line PASSREQ=YES to PASSREQ=NO

Update the boot archive


# bootadm update-archive -R /a

Reboot and remove the Live CD/USB from system


# reboot

file:///C|/Users/lamraoui/Desktop/Recovering%20Passwords%20in%20Solaris%2011%20(paulie's%20world%20in%20a%20blog).htm[16/09/2013 18:17:54]

Recovering Passwords in Solaris 11 (paulie's world in a blog)

If prompted for a password, hit return since this has now been blanked. Category: Oracle Tags: 11 beadm bootadm password recover reset root solaris Permanent link to this entry ZFS Storage at Oracl... | Main | Configuring a Basic... Comments:

Rather than allowing no passwords and clearing the root password, why not grab a password hash from an account you know the password to. If none, handy, copy the one for jack from teh live cd. Of course you should change it right away, but the idea of root having no password at all, even for a little while sends shivers up my spine. alan. Posted by Alan Hargreaves on February 11, 2013 at 02:08 PM MST #

Thank you for this info, but what happens when I get the below message? root@solaris:/jack# beadm mount solaris /a be_mount: failed to find zpool for BE (solaris) Unable to mount solaris. solaris does not exist or appear to be a valid BE. Please check that the name of the BE provided is correct. root@solaris:/jack# Posted by guest on February 20, 2013 at 05:44 PM MST #

Your boot environment (BE) might not be called solaris. Run `beadm list` to discover its name. Posted by paulie on February 21, 2013 at 01:28 PM MST #

Thank you for "beadm list" command, but it gives this: be_find_current_be: failed to find current BEname be_list: No BE's found No boot environments found on this system. But i am positive that there is installed Solaris 11 on the harddrive (i can even boot to it). Posted by guest on May 27, 2013 at 12:42 PM MDT #

Hi You need to import the zpool ( default pool name rpool) with -f option then if you run beadm list it will show the available boot environments. Posted by guest on June 06, 2013 at 01:08 AM MDT #

file:///C|/Users/lamraoui/Desktop/Recovering%20Passwords%20in%20Solaris%2011%20(paulie's%20world%20in%20a%20blog).htm[16/09/2013 18:17:54]

Recovering Passwords in Solaris 11 (paulie's world in a blog)

Post a Comment: Name: E-Mail: URL: Notify me by email of new comments Remember Information?

Your Comment: HTML Syntax: NOT allowed


Preview Post

About

Hiya, my name is Paul Johnson and I'm a software engineer working on the ZFS storage appliance .

pauliesworld.org facebook.com/paulie
Search

Enter search term: Search only this blog


Recent Posts

Solaris 11 IPoIB + IPMP Configuring a Basic DNS Server + Client in Solaris 11 Configuring a Basic LDAP Server + Client in Solaris 11 Recovering Passwords in Solaris 11 ZFS Storage at Oracle OpenWorld 2012
file:///C|/Users/lamraoui/Desktop/Recovering%20Passwords%20in%20Solaris%2011%20(paulie's%20world%20in%20a%20blog).htm[16/09/2013 18:17:54]

Recovering Passwords in Solaris 11 (paulie's world in a blog)

CIFS Sharing on Solaris 11 NFS mounts with ZFS ZFS Storage Appliance at Storage Networking World Fall 2011 Compiling Alpine on Solaris 11 ZFS Encryption for USB sticks on Solaris 11 Express
Top Tags

1 10 10.1 11 166 2008.11 2011 2012 7000 701 a address alpine analytics apc apcupsd appliance arp asus atheros atom attansic automount backup battery beadm boot bootadm box c cannot capture cifs client compile controls dd_fd mount nfs open opensolaris pc root server solaris storage upnp usb world zfs
Categories

file:///C|/Users/lamraoui/Desktop/Recovering%20Passwords%20in%20Solaris%2011%20(paulie's%20world%20in%20a%20blog).htm[16/09/2013 18:17:54]

Recovering Passwords in Solaris 11 (paulie's world in a blog)

Oracle
Archives

September 2013 Sun Mon Tue Wed Thu Fri Sat 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Today
Menu

Blogs Home Weblog Login


Feeds

RSS All /Oracle Comments Atom All /Oracle Comments The views expressed on this blog are those of the author and do not necessarily reflect the views of Oracle. Terms of Use | Your Privacy Rights |

file:///C|/Users/lamraoui/Desktop/Recovering%20Passwords%20in%20Solaris%2011%20(paulie's%20world%20in%20a%20blog).htm[16/09/2013 18:17:54]

You might also like