VMware Cloud Community
hansis
Contributor
Contributor

shutdown ESX-Host with non-root

Hello!

I have a script that is running with the user "ShutdownUser".

What do I have to do that this user can run the command "/sbin/shutdown -h now" ?

thx.

hansi

0 Kudos
1 Reply
dales123
Enthusiast
Enthusiast

How have you added this user into the hosts is it through the VI client or by SSH? Also what does your script do as the unix shutdown command does not communicate anything with the hypervisor. Typing in shutdown into a script is essentially like pulling the plug on a host and if vm's still reside on that host will trigger an HA event.

Kind Regards Dale VCP3+5
0 Kudos