I have a script that I ran on my ESXi 5.0 hosts which required you to be root to execute it. You had to execute the su - command and enter the root password or login as the root account to run the script. The command, su -, does not exist in 5.1 and I am hoping there is some alternative that I can use, besides telling the users to login as root.
I have read that the 5.1 user accounts now have administrative privileges and should no longer need to use the su command, but that doesn't seem to be the case for me. Is there something I am missing?
The first command my script has problems with when I run it as a regular user is "vim-cmd vmsvc/getallvms". I get the following error: Failed to login: vim.fault.NoPermission. This is on a host with no VMs on it.
I appreciate any suggestions.
Maureen