vi /etc/groupesxadmins:x:505:username1,username2:wq (vi command to save)
/usr/sbin/visudo%esxadmins ALL=(ALL) ALL
# sudoers file.
# This file MUST be edited with the 'visudo' command as root.
# See the sudoers man page for the details on how to write a sudoers file.
## Host alias specification# User alias specification# Cmnd alias specification# Defaults specification# User privilege specification
root ALL=(ALL) ALL# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
%esxadmins ALL=(ALL) ALL# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
Share this blog post on social media:Tweet
All advice, installation/configuration how to guides, troubleshooting and other information on this website are provided as-is with no warranty or guarantee. Whilst the information provided is correct to the best of my knowledge, I am not reponsible for any issues that may arise using this information, and you do so at your own risk. As always before performing anything; check, double check, test and always ensure you have a backup.