mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-02 23:54:52 +00:00
Update cheatsheets
This commit is contained in:
29
doas
Normal file
29
doas
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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`
|
||||
Reference in New Issue
Block a user