VMware Cloud Community
warrenweiss_kw
Contributor
Contributor
Jump to solution

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
1 Solution

Accepted Solutions
Giodomi
Hot Shot
Hot Shot
Jump to solution

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

3 Replies
Giodomi
Hot Shot
Hot Shot
Jump to solution

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
warrenweiss_kw
Contributor
Contributor
Jump to solution

That was it.  Grazi!

Reply
0 Kudos
SoheilSP
Contributor
Contributor
Jump to solution

Hi Giodomi

thank yoyou for help 🙂

Reply
0 Kudos