VMware Cloud Community
JPSVM
Contributor
Contributor

Adding local users and assigning roles through command line ESX 5.5

Hi guys

I  was able to create a local user through command line, but not seeing an option to add the role on ESX 5.5

Just wondering any one can help. I understand that adduser has been moved on esx 5.5

Added user as below

~ # /usr/lib/vmware/auth/bin/adduser

Many Thanks

Reply
0 Kudos
5 Replies
rcporto
Leadership
Leadership

Take a look at this blog post: Creating Users and Groups on a ESXi 5 Host

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto
Reply
0 Kudos
JPSVM
Contributor
Contributor

Richard,

Thanks for the info.  But vicfg command is not available from 5.1 onwards as far as I know and replaced by esxcli.

I managed to add the user through command line, but not finding a way to add the role

/usr/lib/vmware/auth/bin/adduser : This will allow to add the user.


Thanks


Reply
0 Kudos
SatyS
Hot Shot
Hot Shot

I don't think there is any way from command line as vicfg is removed.

You can manage the user using any of the following methods

-Using VIClient

-vMA

-vCLI

-PowerCLI

The most commmon method is using VIClient.

Or else you can go with PowerCLI method.

With PowerCLI, you can add user,assign role etc.Please go through this for more info.

How to – create a local user/assign permissions on an ESXi host - www.running-system.com

If you find this useful,please mark the answer as correct/helpful

Regards,
SatyS
http://myvirtuallearning.wordpress.com/

dhanarajramesh

I also searched but it was not available with esxcli command but as mentioned earlier ,  we can by powercli # 1)Connect to your ESXi host: Connect-VIServer -Server ServerAddress/Name -Protocol http/https -User Username -Password password 2) Create the user by executing: New-VMHostAccount -Id username -password PassW0rd -Description “SpecialUser” -AssignGroups localadmin,root To define a role, execute: New-VIPermission -Role admin -Principal username -Entity FQDN of Server

JPSVM
Contributor
Contributor

Thanks for the  reply guys

I think PowerCLI is the only option. Has anyone tried this on ESXi 5.5 as it seems to be a problem?

Reply
0 Kudos