VMware Cloud Community
ITTech2002
Contributor
Contributor
Jump to solution

ESX Shell Script or MS Powershell to add Permissions to Host User Account

I have this command to "add a user" from the 3.5 ESX service console...

cd /usr/sbin/

adduser -l user -p password -u 502

Do you know the command to give this user "Read-Only" "Permissions" to the "ESX Server" ?

The attachment shows where the user (Akorri User in this case) permissions were added in the VIC GUI connected to the ESX Host.

Better yet... Do you have a PowerShell Script to add Users and permissions?

Reply
0 Kudos
1 Solution

Accepted Solutions
Texiwill
Leadership
Leadership
Jump to solution

Hello,

You need to use a shell script to modify the file /etc/vmware/hostd/authorization.xml. I have yet to see a powershell script that can make these edits for you but you could check into PowerGUI.


Best regards,
Edward L. Haletky
VMware Communities User Moderator, VMware vExpert 2009
====
Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.
Blue Gears and SearchVMware Pro Blogs -- Top Virtualization Security Links -- Virtualization Security Round Table Podcast

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill

View solution in original post

Reply
0 Kudos
3 Replies
thehyperadvisor
Enthusiast
Enthusiast
Jump to solution

I am bit confused when you say the esxhost object, do you mean in VirtualCenter? Using the command you stated gives access the service console ONLY.

Virtualcenter uses windows accounts for access then you can tailor the access with roles and permissions in virtualcenter. This can be using powershell pretty easily if you know what your doing. Here are a couple link to get you going and http://communities.vmware.com/message/1105904#1105904

hope this helps! - thehyperadvisor.com

VCP3,4,5, VCAP4-DCA, vExpert hope this helps - http://www.thehyperadvisor.com If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".
ITTech2002
Contributor
Contributor
Jump to solution

Thanks much... I added a screen shot to show where the user permissions are needed.

Reply
0 Kudos
Texiwill
Leadership
Leadership
Jump to solution

Hello,

You need to use a shell script to modify the file /etc/vmware/hostd/authorization.xml. I have yet to see a powershell script that can make these edits for you but you could check into PowerGUI.


Best regards,
Edward L. Haletky
VMware Communities User Moderator, VMware vExpert 2009
====
Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.
Blue Gears and SearchVMware Pro Blogs -- Top Virtualization Security Links -- Virtualization Security Round Table Podcast

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
Reply
0 Kudos