...
- From the UI navigate to Locations > Connections > SHH
- Change commandprefixcode to SUDO
- Change usecommandprefix to True
The actual command that is being run is as follow:
{Code}
{set the path};if sudo -l {command}>/dev/null; then sudo {command}; else {command};fi
{Code}
This difference might be important because the precise behaviour might be dependent on the user’s standard shell. ‘if’ is a shell command that can have slightly different behaviours on different shells.
… it is a very simple use of ‘if’, so it probably won’t be a problem … (probably).
Info |
---|
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...