{"id":1428,"date":"2022-05-24T03:41:08","date_gmt":"2022-05-24T03:41:08","guid":{"rendered":"\/blog\/?p=1428"},"modified":"2022-05-24T03:41:09","modified_gmt":"2022-05-24T03:41:09","slug":"solaris-11-allow-root-login","status":"publish","type":"post","link":"\/blog\/index.php\/solaris-11-allow-root-login\/","title":{"rendered":"Solaris 11 allow root login"},"content":{"rendered":"\n<p>1.&nbsp;Change the&nbsp;file&nbsp;\/etc\/ssh\/sshd_config PermitRootLogin yes&nbsp;with&nbsp;PermitRootLogin no&nbsp;and save file.<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;vi&nbsp;\/etc\/ssh\/sshd_config&nbsp;&nbsp;<\/p>\n\n\n\n<p>&nbsp; PermitRootLogin yes<\/p>\n\n\n\n<p>2. Comment out the&nbsp;\u201cCONSOLE=\/dev\/console\u201d&nbsp;line in&nbsp;\/etc\/default\/login.<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;vi \/etc\/default\/login<\/p>\n\n\n\n<p>&nbsp; #CONSOLE=\/dev\/console<\/p>\n\n\n\n<p>3.Remove&nbsp;\u201c;type=role\u201d&nbsp;from the root entry in&nbsp;\/etc\/user_attr&nbsp;or use the below command.<\/p>\n\n\n\n<p>&nbsp;rolemod -K type=normal root<\/p>\n\n\n\n<p>4. Restart the Services.<\/p>\n\n\n\n<p>#svcadm restart&nbsp;svc:\/network\/ssh:default<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.&nbsp;Change the&nbsp;file&nbsp;\/etc\/ssh\/sshd_config PermitRootLogin yes&nbsp;with&nbsp;PermitRootLogin no&nbsp;and save file. &nbsp;&nbsp;&nbsp;&nbsp;vi&nbsp;\/etc\/ssh\/sshd_config&nbsp;&nbsp; &nbsp; PermitRootLogin yes 2. Comment out the&nbsp;\u201cCONSOLE=\/dev\/console\u201d&nbsp;line in&nbsp;\/etc\/default\/login. &nbsp;&nbsp;&nbsp;&nbsp;vi \/etc\/default\/login &nbsp; #CONSOLE=\/dev\/console 3.Remove&nbsp;\u201c;type=role\u201d&nbsp;from the root entry in&nbsp;\/etc\/user_attr&nbsp;or use the below command. &nbsp;rolemod -K type=normal root 4. Restart the Services. #svcadm restart&nbsp;svc:\/network\/ssh:default<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1428","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1428","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=1428"}],"version-history":[{"count":1,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1428\/revisions"}],"predecessor-version":[{"id":1429,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1428\/revisions\/1429"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=1428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=1428"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=1428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}