diff --git a/pages/common/doas.md b/pages/common/doas.md new file mode 100644 index 0000000000..ba20b7ee81 --- /dev/null +++ b/pages/common/doas.md @@ -0,0 +1,24 @@ +# doas + +> Executes a command as another user. +> More information: . + +- 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`