User Account Troubleshooting - VMware Third Party Applications
Overview
Some 3rd party applications such as Vizioncore vRanger Pro and vReplicator require root-level access to the ESX Service Console (SC) to perform their job function, whether backup, migration, replication etc. Best practice is to set up a dedicated account with shell access to perform these management functions. The application then logs on as this regular user (not directly as root) and switches user (su) to root to issue administrative commands.
In the case of the vRanger Pro and vReplicator, an in-built feature of the installation/configuration routine is to create this dedicated account. However, this part of the installation routine can fail if the default security context of a host’s SC has been hardened. See Figure 1-1, “unable to connect to host” and Figure 1-2, “Host not added, user root could not be authenticated”.
This issue is not limited to Vizioncore products, other 3rd party products can be similarly affected, such that any product which requires root-level access permissions to the SC in order to achieve their management function must conform to the security context of the host, ie: by design, access to the su commands can be restricted by design to a specific ESX user group (typically wheel).
2.0 Solution
If access has been restricted, vRanger Pro and vReplicator may successfully create their management account on the host but will fail to validate its elevated privilege levels as shown in the screenshots above.
In this case, the solution is to determine if the designated account has the appropriate permissions on the host. To check or edit the group memberships and confirm if su to root has been restricted, follow these steps:
- Open a SSH session to the ESX host
- Then check to see if su to root privileges have been restricted to the wheel group by viewing the file /etc/pam.d/su with command:
- cat /etc/pam.d/su
- Now check the following line:
- # Uncomment the following line to require a user to be in the “wheel” group
- auth required /lib/security/pam_wheel.so use_uid
- By default, the line will be commented, with no restrictions for which accounts are able to su to root. If the line is uncommented however, su to root privileges have been restricted to the wheel group only, typically due to post deployment security hardening.
- In this scenario, if the line is uncommented then the Vizioncore management account must be added to the wheel group. To add the account to the wheel group, issue command:
- usermod -G wheel
- Log off SSH session
3.0 Conclusion
Without correct root-level access, the above authentication errors can appear, demonstrating a failed connection attempt.
When electing to create a non-root account, keep in mind this account must be also added to a group with su privileges. Users in the wheel group (a root-level access group) can issue su commands, so can be the solution in these circumstances.
- Nil
- Nil
Spotlight:
VMware Documentation Downloader v11.08.30
Updated for vSphere 5 - A free tool for those on the move who need information FAST
vSphere 5 License Entitlement Changes
See what has changed in the license entitlement in vSphere 5?
Thin Client vs Zero Client
The differences between Thin and Zero desktop clients for VDI


