I want to run the esxtop command under the user vmadmin which is in the wheel group.
I tried the following commands under root user:
chgrp wheel /usr/bin/esxtop
chmod u+s /usr/bin/esxtop
chmod g+s /usr/bin/esxtop
after this logout as root and tried to run under vmadmin:
I till get the error message :
esxtop: need to run as user root
What did I wrong?
Hello,
The line should be:
vmadmin ALL=/usr/bin/esxtop NOPASSWD
The path is very important. Login as vmadmin then run:
sudo /usr/bin/esxtop
Best regards,
Edward
You can use sudo:
run "visudo" and then add:
vmadmin ALL=/path/to/command NOPASSWD
The best way is using SUDO.
Try man sudo, I will see how to configure.
tried this:
used which esxtop to get to the path for esxtop
output : /etc/bin/esxtop
visudo
vmadmin ALL=/etc/bin/esxtop NOPASSWD
Then login with vmadmin
Did not work
Hello,
The line should be:
vmadmin ALL=/usr/bin/esxtop NOPASSWD
The path is very important. Login as vmadmin then run:
sudo /usr/bin/esxtop
Best regards,
Edward
I like more this line
vmadmin ALL=NOPASSWD:/usr/bin/esxtop
Login as vmadmin then run:
sudo /usr/bin/esxtop
That worked for me.
Can you explain the different lines?
vmadmin ALL=NOPASSWD:/usr/bin/esxtop and
vmadmin ALL=/usr/bin/esxtop NOPASSWD
Is it only notation.