Solved

ESX Host

Posted on 2013-06-20
3
859 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_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 121

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
Teach the user how to use vSphere Update Manager to update the VMware Tools and virtual machine hardware version Open vSphere Client: Review manual processes for updating VMware Tools and virtual hardware versions: Create a new baseline group in vSp…
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.

688 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