?
Solved

ESX Host

Posted on 2013-06-20
3
Medium Priority
?
875 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 664 total points
ID: 39263898
Why not use the vsphere client?
0
 
LVL 10

Assisted Solution

by:bluedan
bluedan earned 668 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 123

Accepted Solution

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

Plug and play, no additional software required!

The ATEN UE3310 USB3.1 Gen1 Extender Cable allows users to extend the distance between the computer and USB devices up to 10 m (33 ft). The UE3310 is a high-quality, cost-effective solution for professional environments such as hospitals, factories and business facilities.

Question has a verified solution.

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

A look into Log Analysis and Effective Critical Alerting.
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
Teach the user how to convert virtaul disk file formats and how to rename virtual machine files on datastores. Open vSphere Web Client: Review VM disk settings: Migrate VM to new datastore with a thick provisioned (lazy zeroed) disk format: Rename a…
Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …
Suggested Courses

764 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