VMware Cloud Community
ArunRameswaran
Contributor
Contributor

Permission denied problem while running shell script on esxi 5.x hypervisors

i ve attached my script and i cant run my script on Esxi...... while running i got an error that permission denied.... even i logged in as root user.....

i also tried .... by setting permission "chmod +x  aut.sh" ..... "chmod 755 aut.sh"..... chmod 777 aut.sh".... but still i got same error what should i proceed now .....please give suggestions.... my aim is to shutdown automatically the Esxi server and its Vms by running the script... is there any proper scripts to execute this ..............

Tags (1)
0 Kudos
2 Replies
krishnaprasad
Hot Shot
Hot Shot

I could run your script as is on my 5.x system. See the permission setting of the script file using ls -l aua.sh. Does it show root:root ?

it is okay to use the vim-cmd cmdlets with in ESXi, however it would be good to use the SDKs to perform managment remotely.

ArunRameswaran
Contributor
Contributor

yes it shows root:root only..... but still i face permission denied ....

i am new to this .... so just tell me how to use the SDKs to perform managment remotely.???

0 Kudos