VMware Cloud Community
TG11
Contributor
Contributor

Corrupted my bash_profile file on ESX 3.0.1 for root

I have an invalid command in my bash_profile file and I cannot log into the server as root to fix it. I enter root and my password and all I see is an invalid bash command. Ctrl-c, D, Y didn't work. I did not create any other user accounts besides the defaults. Does anyone know of a way to resolve this besides reinstalling ESX.

thanks for the help

0 Kudos
2 Replies
oreeh
Immortal
Immortal

Login using the VI client and add another user.

After that login using this user and type "su" then repair the bash_profile.

If this doesn't work get a rescue CD (Fedora/SuSE/whatever) and boot the ESX using this CD. Mount the filesystems and repair bash_profile.

0 Kudos
TG11
Contributor
Contributor

I have it working - thanks anyway.

I realized that even though I was receiving an error, I could still type in commands. I edited the file and now I'm back in business.

0 Kudos