Comments (3)
adminSudo
is a bit special, the first double-dash is corrrect, as explained in the adminSudo --help
message:
~ Impersonate another user
~
~ Usage: --osh adminSudo -- --sudo-as ACCOUNT <--sudo-cmd PLUGIN -- [PLUGIN specific options...]>
~
~ --sudo-as ACCOUNT Specify which bastion account we want to impersonate
~ --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.
This is to ensure the proper options are parsed by the proper stage of execution, because under the hood, you're sudo
'ing to the target user, and executing osh.pl
again under their name
from the-bastion.
Took the opportunity to add some smartness to adminSudo's autocompletion rules!
from the-bastion.
Thanks a lot for the clarification.
from the-bastion.
Related Issues (20)
- Issue with Ansible HOT 1
- can we use AD users ? (question) HOT 12
- Add support for PuTTy HOT 3
- Invalid account suffix results on partial account setup HOT 1
- Bulk operations on restricted "account*" plugins? HOT 1
- accountAddPersonalAccess pub key not added to remote server ? HOT 2
- Unable to "logout" to have your new rights applied HOT 11
- Deleted account name and uid blocked HOT 8
- How to manage K8S behind bastion HOT 1
- Unable to encrypt /home before the installation HOT 12
- List all account egress keys? HOT 1
- Undefined subroutine &main::EXIT HOT 1
- connect to remote host with vscode ssh extension HOT 8
- UIDs/GIDs helper script for pre-backup-restore and HA-pre-sync HOT 1
- Connect through Bastion using SSH config file HOT 4
- vim seems to crash session replay HOT 9
- Enforce connecting with user login8 on group access server HOT 2
- Take global `ssh_config` file into account and autocomplete host names HOT 2
- Connection to the Bastion takes many seconds HOT 2
- SCP Failure - Error 255
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from the-bastion.