2020-03-28 01:28:20 +00:00
|
|
|
# doas
|
|
|
|
|
|
|
|
> Executes a command as another user.
|
|
|
|
> More information: <https://man.openbsd.org/doas>.
|
|
|
|
|
|
|
|
- Run a command as root:
|
|
|
|
|
|
|
|
`doas {{command}}`
|
|
|
|
|
|
|
|
- Run a command as another user:
|
|
|
|
|
|
|
|
`doas -u {{user}} {{command}}`
|
|
|
|
|
|
|
|
- Launch the default shell as root:
|
|
|
|
|
|
|
|
`doas -s`
|
|
|
|
|
2024-01-25 05:29:16 +00:00
|
|
|
- Parse a configuration file and check if the execution of a command as another user is allowed:
|
2020-03-28 01:28:20 +00:00
|
|
|
|
|
|
|
`doas -C {{config_file}} {{command}}`
|
|
|
|
|
|
|
|
- Make `doas` request a password even after it was supplied earlier:
|
|
|
|
|
|
|
|
`doas -L`
|