Enabling the root user on vMA 4.1

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 ‘su’ I could not become root either. I found the following article virtuallyGhetto VMware Scripts & Resources with instructions on how to enable the root account.

sudo vi /etc/passwd

When prompted for a password I entered the vi-admin password. As suggested I changed the entry for


to look like


However, after enabling the account I still could not login — using root and the vi-admin password. I then logged back in as vi-admin and entered

sudo passwd root

And defined a password for the root account. I am now able to login as root with my root password.

This entry was posted in Virtualization. Bookmark the permalink.

2 Responses to Enabling the root user on vMA 4.1

  1. Bryan Luce says:

    Perfect. Just what I needed, thanks!

  2. OnkelBeh says:

    Thanks. Perfect.

Leave a Reply

Your email address will not be published. Required fields are marked *


Notify me of followup comments via e-mail. You can also subscribe without commenting.