{"id":6426,"date":"2017-01-08T17:06:46","date_gmt":"2017-01-08T09:06:46","guid":{"rendered":"http:\/\/rmohan.com\/?p=6426"},"modified":"2017-01-08T17:06:46","modified_gmt":"2017-01-08T09:06:46","slug":"solaris-how-to-recover-solaris-11-root-password","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6426","title":{"rendered":"solaris: how to recover solaris 11 root password"},"content":{"rendered":"<h2 class=\"title\">solaris: how to recover solaris 11 root password<\/h2>\n<p>&nbsp;<\/p>\n<div class=\"entry\">\n<div class=\"postbody entry clearfix\">\n<p>boot net -s<br \/>\nboot cdrom -s, if it ask username: root\/solaris or root\/password.<\/p>\n<p>on x86, you need edit grub and append -s on kernel line.<\/p>\n<p>after login. mount \/dev\/dsk\/<em>cxtxdxsx<\/em> \/a<\/p>\n<p>if you use zfs for \/, then zfs import<br \/>\nzfs list<br \/>\nzfs set mountpoint=\/a <em>rpool\/ROOT\/solaris<\/em><br \/>\nzfs mount <em>-f rpool\/ROOT\/solaris<\/em><br \/>\nthen edit \/etc\/shadow<br \/>\nremove the password section, let it looks likes.<br \/>\nroot::15356::::::<\/p>\n<p>don\u2019t forget to reset the mountpoint back<br \/>\nzfs set mountpoint=\/ <em>rpool\/ROOT\/solaris<\/em><\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>solaris: how to recover solaris 11 root password <\/p>\n<p>&nbsp;<\/p>\n<p>boot net -s boot cdrom -s, if it ask username: root\/solaris or root\/password.<\/p>\n<p>on x86, you need edit grub and append -s on kernel line.<\/p>\n<p>after login. mount \/dev\/dsk\/cxtxdxsx \/a<\/p>\n<p>if you use zfs for \/, then zfs import zfs list zfs set mountpoint=\/a rpool\/ROOT\/solaris zfs [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6426"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6426"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6426\/revisions"}],"predecessor-version":[{"id":6427,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6426\/revisions\/6427"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6426"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6426"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}