snippetbashTip
dzdo — Execute privileged commands as root or another user via Active Directory roles. Similar to `sudo` bu
Viewed 0 times
privilegedcommandcommandsanotherexecuteclidzdoroot
Problem
How to use the
dzdo command: Execute privileged commands as root or another user via Active Directory roles. Similar to sudo but integrated with Delinea; supports Ansible become plugin. More information: <https://docs.delinea.com/online-help/server-suite/commandref/centrify-command-reference-2025.pdf#page=102>.Solution
dzdo — Execute privileged commands as root or another user via Active Directory roles. Similar to sudo but integrated with Delinea; supports Ansible become plugin. More information: <https://docs.delinea.com/online-help/server-suite/commandref/centrify-command-reference-2025.pdf#page=102>.Run a command with elevated privileges:
dzdo {{command}}Run a command as another user:
dzdo -u {{user}} {{command}}Edit a file with elevated privileges using the default editor:
dzdo -e {{path/to/file}}Launch an interactive login shell with elevated privileges:
dzdo -iLaunch the default shell with elevated privileges:
dzdo -sList allowed commands for the current user:
dzdo -lValidate and update authentication timestamp:
dzdo -vDisplay version:
dzdo -VCode Snippets
Run a command with elevated privileges
dzdo {{command}}Run a command as another user
dzdo -u {{user}} {{command}}Edit a file with elevated privileges using the default editor
dzdo -e {{path/to/file}}Launch an interactive login shell with elevated privileges
dzdo -iLaunch the default shell with elevated privileges
dzdo -sContext
tldr-pages: common/dzdo
Revisions (0)
No revisions yet.