{"id":175,"date":"2010-10-07T09:12:18","date_gmt":"2010-10-07T13:12:18","guid":{"rendered":"http:\/\/enterpriseadmins.org\/blog\/?p=175"},"modified":"2010-10-07T09:12:18","modified_gmt":"2010-10-07T13:12:18","slug":"enabling-the-root-user-on-vma-4-1","status":"publish","type":"post","link":"https:\/\/enterpriseadmins.org\/blog\/virtualization\/enabling-the-root-user-on-vma-4-1\/","title":{"rendered":"Enabling the root user on vMA 4.1"},"content":{"rendered":"<p>While using the vMA 4.1 as vi-admin, I noticed that a couple commands I tried to run (for example yum update) would fail because I was not root.  When I tried to issue &#8216;su&#8217; I could not become root either.  I found the following article <a href=\"http:\/\/www.virtuallyghetto.com\/2010\/05\/getting-started-with-vma.html\">virtuallyGhetto VMware Scripts &#038; Resources<\/a> with instructions on how to enable the root account.<\/p>\n<pre>\r\nsudo vi \/etc\/passwd\r\n<\/pre>\n<p>When prompted for a password I entered the vi-admin password.  As suggested I changed the entry for <\/p>\n<pre>root:x:0:0:root:\/root:\/sbin\/nologin<\/pre>\n<p>to look like<\/p>\n<pre>root:x:0:0:root:\/root:\/bin\/bash<\/pre>\n<p>However, after enabling the account I still could not login &#8212; using root and the vi-admin password.  I then logged back in as vi-admin and entered<\/p>\n<pre>sudo passwd root<\/pre>\n<p>And defined a password for the root account.  I am now able to login as root with my root password.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While using the vMA 4.1 as vi-admin, I noticed that a couple commands I tried to run (for example yum update) would fail because I was not root. When I tried to issue &#8216;su&#8217; I could not become root either. &hellip; <a href=\"https:\/\/enterpriseadmins.org\/blog\/virtualization\/enabling-the-root-user-on-vma-4-1\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-175","post","type-post","status-publish","format-standard","hentry","category-virtualization"],"_links":{"self":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/comments?post=175"}],"version-history":[{"count":3,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/175\/revisions"}],"predecessor-version":[{"id":178,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/175\/revisions\/178"}],"wp:attachment":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/media?parent=175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/categories?post=175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/tags?post=175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}