{"id":4073,"date":"2014-12-10T00:50:46","date_gmt":"2014-12-09T16:50:46","guid":{"rendered":"http:\/\/rmohan.com\/?p=4073"},"modified":"2014-12-10T00:50:46","modified_gmt":"2014-12-09T16:50:46","slug":"root-login-on-oracle-solaris-11","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=4073","title":{"rendered":"Root login on Oracle Solaris 11"},"content":{"rendered":"<div class=\"gmail_default\">Once after your installation is completed, you will not be able to login directly to the console as the user &#8220;root&#8221;.<\/div>\n<div class=\"gmail_default\"><\/div>\n<div class=\"gmail_default\">user root should be assigned role as a normal user.<\/div>\n<div class=\"gmail_default\"><\/div>\n<div class=\"gmail_default\">Below are the very few steps to enable root login.<\/div>\n<div class=\"gmail_default\"><\/div>\n<div class=\"gmail_default\">1. #vim \/etc\/ssh\/sshd_config [ change parameter to yes ]<\/div>\n<div class=\"gmail_default\">\u00a0 \u00a0 \u00a0\u00a0<b>PermitRootLogin yes<\/b><\/div>\n<div class=\"gmail_default\"><b>\u00a0<\/b><\/div>\n<div class=\"gmail_default\">2. #vim \/etc\/default\/login\u00a0 [ Comment the below line ]<\/div>\n<div class=\"gmail_default\">\u00a0 \u00a0 \u00a0\u00a0<b>#CONSOLE=\/dev\/console<\/b><\/div>\n<div class=\"gmail_default\"><\/div>\n<div class=\"gmail_default\">3. Remove\u00a0&#8220;;type=role&#8221;\u00a0from the root entry in\u00a0\/etc\/user_attr<\/div>\n<div class=\"gmail_default\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0or<\/div>\n<div class=\"gmail_default\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0use the below command<\/div>\n<div class=\"gmail_default\">\u00a0 \u00a0 \u00a0 \u00a0<b>#<\/b><b>rolemod -K type=normal root<\/b><\/div>\n<div class=\"gmail_default\"><\/div>\n<div class=\"gmail_default\">4. \u00a0Restart service<\/div>\n<div class=\"gmail_default\"><b>\u00a0 \u00a0 \u00a0 \u00a0#svcadm restart\u00a0svc:\/network\/ssh:default<\/b><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Once after your installation is completed, you will not be able to login directly to the console as the user &#8220;root&#8221;. user root should be assigned role as a normal user. Below are the very few steps to enable root login. 1. #vim \/etc\/ssh\/sshd_config [ change parameter to yes ] PermitRootLogin yes 2. #vim \/etc\/default\/login [&#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\/4073"}],"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=4073"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4073\/revisions"}],"predecessor-version":[{"id":4074,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4073\/revisions\/4074"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4073"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4073"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}