{"id":7024,"date":"2017-09-28T10:21:40","date_gmt":"2017-09-28T02:21:40","guid":{"rendered":"http:\/\/rmohan.com\/?p=7024"},"modified":"2017-09-28T10:22:10","modified_gmt":"2017-09-28T02:22:10","slug":"enable-linux-root-access-on-microsoft-azure-cloud","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=7024","title":{"rendered":"Enable linux root access on Microsoft Azure Cloud"},"content":{"rendered":"<p>Enable linux root access on Microsoft Azure Cloud<\/p>\n<p>How to enable linux root access on Microsoft Azure Cloud<br \/>\n1. Login via ssh using your sudo user on your Microsoft Azure linux server<br \/>\n2. Now login as root user<br \/>\n1 Lines<\/p>\n<p>[root@mohan ~]# sudo su &#8211;<br \/>\n3. check if root access is set (LOCK means that root access is disabled)<br \/>\n1 Lines<\/p>\n<p>[root@mohan ~]# grep root \/etc\/shadow<br \/>\nResult:<br \/>\nroot:*LOCK*:14600::::::<br \/>\n4. enable root access  (as root user enter command passwd)<br \/>\n1 Lines<\/p>\n<p>[root@mohan ~]# passwd<br \/>\n5. Now enter your password and root access is enabled.<br \/>\nYou can check this by using command \u201cgrep root \/etc\/shadow\u201d<br \/>\nThat\u2019s all folks<\/p>\n<p>1. Login via ssh using your sudo user<br \/>\n2. Now login as root user<br \/>\nCode: [Select]<br \/>\nsudo su &#8211;<\/p>\n<p>3. check if root access is set (LOCK means that root access is disabled)<br \/>\nCode: [Select]<br \/>\n[root@Linux ~]# grep root \/etc\/shadow<br \/>\nroot:*LOCK*:14600::::::<\/p>\n<p>4. enable root access  (as root user enter command passwd)<br \/>\nCode: [Select]<br \/>\n[root@Linux ~]# passwd<\/p>\n<p>now enter your password and root access is enabled, you can check this by using command &#8220;grep root \/etc\/shadow&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Enable linux root access on Microsoft Azure Cloud<\/p>\n<p>How to enable linux root access on Microsoft Azure Cloud 1. Login via ssh using your sudo user on your Microsoft Azure linux server 2. Now login as root user 1 Lines<\/p>\n<p>[root@mohan ~]# sudo su &#8211; 3. check if root access is set (LOCK means that [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7024"}],"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=7024"}],"version-history":[{"count":2,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7024\/revisions"}],"predecessor-version":[{"id":7026,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7024\/revisions\/7026"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7024"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7024"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7024"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}