warrenweiss_kw
Contributor
Contributor

Cannot Enable Bash Shell in vCenter

I am unable to enable bash shell access in vSphere (v7.0.3.00100).

 

When I attempt to set "Bash Shell" to "enabled" via the vCenter Server Management GUI, I'll toggle it to enable and set a timeout.  When I hit "OK," vSphere immediately disconnects me and logs me out.

When I log in via SSH to vSphere and attempt to enable bash, I get a "not authorized" error.  I'm not using "root" or "administrator," but account in "vsphere.local" that are in the "Administrator" group.

Command> shell.set --enabled true
Error in method: Not authorized to use this API (code 3000)
Command>

Reply
0 Kudos
Giodomi
Hot Shot
Hot Shot

Hello,

In this case you user as you can see is not authorized to do activity on the appliance vCenter, the administrator group are the administrator of the vsphere.local SSO not the Appliance itself.

Could be that if you put that user in this group:
SystemConfiguration.BashShellAdministrators

you should be able to use that user in bash

let me know

Kudos if it was helpful

GioDomi

View solution in original post

warrenweiss_kw
Contributor
Contributor

That was it.  Grazi!

Reply
0 Kudos
SoheilSP
Contributor
Contributor

Hi Giodomi

thank yoyou for help :slightly_smiling_face:

Reply
0 Kudos