VMware Cloud Community
jacksonp2008
Contributor
Contributor

localaccounts.user.add command is missing, can't create local account on vcsa

Your documentation points to this command:  Create a Local User Account in the vCenter Server Appliance

localaccounts.user.add

Which doesn't exist on this machines.

```

root@vcsa [ / ]# localaccounts.user.add

bash: localaccounts.user.add: command not found

```

I am on vCenter 6.5.0, build: 5973321

Tags (1)
4 Replies
SureshKumarMuth
Commander
Commander

Try changing the shell to sh from bash and see if that works

$ echo $0

/bin/bash

$ exec /bin/sh

$ echo $0

/bin/sh

Regards,
Suresh
https://vconnectit.wordpress.com/
Reply
0 Kudos
porzech
Enthusiast
Enthusiast

It is not bash command.

After you log in to vcenter do not enter shell, just execute this command.

Reply
0 Kudos
Vijay2027
Expert
Expert

You will have to run this command from appliancesh

pastedImage_0.png

chsh -s /bin/appliancesh root --> Execute this command and establish a new ssh session

kvdavos
Contributor
Contributor

is there a way to prepopulate the password - I've tried and get PASSWORD_STR cant use passwords on the command line error

Manual entry of the password seems to be the only way - 

Reply
0 Kudos