Solved

ESX Host

Posted on 2013-06-20
3
851 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 117

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Join & Write a Comment

Create your own, high-performance VM backup appliance by installing NAKIVO Backup & Replication directly onto a Synology NAS!
This is an issue that we can get adding / removing permissions in the vCSA 6.0. We can also have issues searching for users / groups in the AD (using your identify sources). This is how one of the ways to handle this issues and fix it.
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now