Permission to perform this operation was denied."/var/run/log/auth.log you will find "Permission denied" errorYYYY-MM-DDT05:31:14.661Z login[2122329]: pam unix (login:auth) : authentication failure; logname= uid=0 euid=0 tty=char/tty/1 rusYYYY-MM-DDT05:31:14.665Z login[2122329]: [module:pam lsass]pam sm authenticate: failed [error code: 40017]YYYY-MM-DDT05:31:16.108Z login[2122329]: pam_authenticate call failed: Authentication failure (7)YYYY-MM-DDT05:31:39.706Z login[2122329]: pam_access (login: account): access denied for user 'root' from 'char/tty/1'YYYY-MM-DDT05:31:39.709Z login[2122329]: pam_acct_mgmt call failed: Permission denied (6)
VMware vSphere ESXi 7.0
VMware vSphere ESXi 8.0
This occurs if the permission for the root account is revoked or replaced by another account.
Place the ESXi host into maintenance mode.
Establish an SSH connection to the ESXi host.
ssh <username>@<esxi_hostname_or_ip>
Navigate to the /etc/security directory.
cd /etc/security
Create a backup of the access.conf file.
cp access.conf access.conf.bak
Edit the access.conf file using vi editor.
vi access.conf
Locate the line containing Broot:ALL and modify it to +:root:ALL (replace Broot with +: followed by root).
Save the changes and exit the vi editor.