mirror of
https://github.com/ovh/the-bastion.git
synced 2025-01-10 01:15:15 +08:00
32 lines
704 B
ReStructuredText
32 lines
704 B
ReStructuredText
|
==========
|
||
|
adminSudo
|
||
|
==========
|
||
|
|
||
|
Impersonate another user
|
||
|
========================
|
||
|
|
||
|
|
||
|
.. admonition:: usage
|
||
|
:class: cmdusage
|
||
|
|
||
|
--osh adminSudo -- --sudo-as ACCOUNT <--sudo-cmd PLUGIN -- [PLUGIN specific options...]>
|
||
|
|
||
|
.. program:: adminSudo
|
||
|
|
||
|
|
||
|
.. option:: --sudo-as ACCOUNT
|
||
|
|
||
|
Specify which bastion account we want to impersonate
|
||
|
|
||
|
.. option:: --sudo-cmd PLUGIN
|
||
|
|
||
|
--osh command we want to launch as the user (see --osh help)
|
||
|
|
||
|
|
||
|
Example::
|
||
|
|
||
|
--osh adminSudo -- --sudo-as user12 --sudo-cmd info -- --name somebodyelse
|
||
|
|
||
|
Don't forget the double-double-dash as seen in the example above: one after the plugin name,
|
||
|
and another one to separate adminSudo options from the options of the plugin to be called.
|