Solved

ESX Host

Posted on 2013-06-20
3
856 Views
Last Modified: 2013-07-09
How do I add a read user to ESX 5.1 from the command line?   I could not find the useradd command on the OS.

Thanks
0
Comment
Question by:Jack_son_
3 Comments
 
LVL 3

Assisted Solution

by:dheiert
dheiert earned 166 total points
ID: 39263898
Why not use the vsphere client?
0
 
LVL 10

Assisted Solution

by:bluedan
bluedan earned 167 total points
ID: 39263961
As expert suggested above, the easiest way to add a read-only user is via vSphere client.

Use vSphere client to connect to the ESXi 5.1 Host -> Click on permissions -> Add the user and assign it with Read-Only role.

If user does not exist then -> Click the Local Users & Groups tab and add the User first.

Hope this helps.
0
 
LVL 119

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 167 total points
ID: 39264329
~ # useradd

***
*** The useradd command is deprecated: All user operations should be done via VI client or vim-cmd
***

BusyBox v1.9.1-VMware-visor-8630 (2012-01-06 01:09:05 PST) multi-call binary

Usage: useradd [OPTIONS] user_name

Adds a user to the system

Options:
        -d DIR          Assign home directory DIR
        -c COMMENT      Assign comment field COMMENT
        -s SHELL        Assign login shell SHELL
        -g              Add the user to existing group GROUP
        -u              Use the given uid
        -P              Ask for a password
        -n              Do not create a group, add to group users
        -M              Do not create the home directory

~ #

useradd exists in ESXi 5.0, and ESXi 5.1 which have been upgraded from ESXi 5.0, but it has been removed from standard ESXi 5.1 installs. It's no longer available.

VMware vSphere 5.x is ESXi not ESX.

see here

Add a Local ESXi User

HOW TO: Connect to the VMware vSphere Hypervisor 5.1 (ESXi 5.1) using the vSphere Client

http://vcp4.wordpress.com/2010/03/28/how-to-create-user-account-on-esxi-host-directly-using-powershell/
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat‚Ķ
Teach the user how to delpoy the vCenter Server Appliance and how to configure its network settings Deploy OVF: Open VM console and configure networking:
Teach the user how to configure vSphere Replication and how to protect and recover VMs Open vSphere Web Client: Verify vsphere Replication is enabled: Enable vSphere Replication for a virtual machine: Verify replicated VM is created: Recover replica…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question