1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 14:02:08 +02:00
tldr/pages/common/doas.md
Vitor Henrique af35564618
pages*: do not use config abbreviation (#12118)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-01-25 10:59:16 +05:30

24 lines
476 B
Markdown

# 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`
- Parse a configuration file and check if the execution of a command as another user is allowed:
`doas -C {{config_file}} {{command}}`
- Make `doas` request a password even after it was supplied earlier:
`doas -L`