mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-21 17:55:25 +02:00
doas: add page (#3939)
This commit is contained in:
parent
f5026bd6f9
commit
5d5bc68fdc
1 changed files with 24 additions and 0 deletions
24
pages/common/doas.md
Normal file
24
pages/common/doas.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# 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 config 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`
|
Loading…
Add table
Reference in a new issue