Solved

ESX Host

Posted on 2013-06-20
3
858 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 120

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

Independent Software Vendors: 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

In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
When rebooting a vCenters 6.0 and try to connect using vSphere Client we get this issue "Invalid URL: The hostname could not parsed." When we get this error we need to do some changes in the vCenter advanced settings to fix the issue.
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:
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ā€¦

733 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