Can't edit config file - Access denied


I've been trying to edit my config file on our ESXi 5 host.

When I SSH into the host and then try and access the config file I get this:

login as:
Using keyboard-interactive authentication.
The time and date of this login have been sent to the system logs.

VMware offers supported, powerful system administration tools.  Please
see www.vmware.com/go/sysadmintools for details.

The ESXi Shell can be disabled by an administrative user. See the
vSphere Security documentation for more information.
~ # /etc/vmware/config
-sh: /etc/vmware/config: Permission denied

I am trying to fix this error "Failed to log into the NFC server" which I get  when I try an import vmdk's into my test ESX5 host.  I have followed  this link:


Any ideas on how I edit this file?


0 Kudos
20 Replies

Hi there,

We faced the same issue in our lab environment with the same setup as yours which was getting the error message "Failed to log into the NFC server" when trying to upload a VM to the datastore via VCenter.  After reading KjB's post we were able to resolve the issue by adding the hostname and IP address of the host we were trying to upload to in our Windows machine's hosts file.

Since the Windows machine where we were connecting from was not in the same domain as the Vcenter server and VSphere host it was not resolving properly.  Hope this will help.

[Windows Machine with VSphere Client]  >>> [VCenter Server] >>> [VSphere host]

0 Kudos