Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:system:userspace:open_doas [2023/02/20 23:03] i3_relativism [Smooth transition sudo to doas] |
en:system:userspace:open_doas [2025/04/21 02:01] (current) throgh [Usage] |
||
---|---|---|---|
Line 12: | Line 12: | ||
===== Installation ===== | ===== Installation ===== | ||
- | To install [[https:// | + | To install [[https:// |
<code bash> | <code bash> | ||
- | pacman -S doas | + | pacman -S opendoas |
</ | </ | ||
- | <note important> | + | <note important> |
===== Usage ===== | ===== Usage ===== | ||
Line 29: | Line 29: | ||
<code bash> | <code bash> | ||
- | $ doas '' | + | $ doas COMMAND |
</ | </ | ||
Line 61: | Line 61: | ||
The configuration file must end with a newline | The configuration file must end with a newline | ||
</ | </ | ||
+ | |||
+ | For example, to allow members of the <color # | ||
+ | |||
+ | Edit <color # | ||
+ | |||
+ | <code bash> | ||
+ | permit nopass :libre as root cmd / | ||
+ | </ | ||
==== Basic setup ==== | ==== Basic setup ==== | ||
Line 76: | Line 84: | ||
</ | </ | ||
+ | <note tip> | ||
To check <color # | To check <color # | ||
Line 81: | Line 90: | ||
# doas -C / | # doas -C / | ||
</ | </ | ||
+ | </ | ||
<note important> | <note important> | ||
It is imperative that <color # | It is imperative that <color # | ||
</ | </ | ||
- | |||
- | To allow members of the <color # | ||
- | |||
- | Edit <color # | ||
- | |||
- | <code bash> | ||
- | permit nopass :libre as root cmd / | ||
- | </ | ||
- | |||
- | WIP?? | ||
- | what is smartctl is this systemd related? | ||
- | endWIP??! | ||
==== Rulesets ==== | ==== Rulesets ==== | ||
Line 300: | Line 298: | ||
==== Authentication ==== | ==== Authentication ==== | ||
+ | === Nopass feature === | ||
The **<color # | The **<color # | ||
Line 309: | Line 308: | ||
</ | </ | ||
- | <note warning> | + | === Persist |
- | Due to OpenBSD-specific kernel API required by **doas** to set and clear timeouts, the **<color # | + | |
- | </ | + | |
- | With the **<color #816E00/#FAE65B> | + | **doas** provides the <color #620BB9/#EEDDFF> |
Edit <color # | Edit <color # | ||
Line 321: | Line 318: | ||
</ | </ | ||
+ | <note warning> | ||
+ | Due to OpenBSD-specific kernel API required by **doas** to set and clear timeouts, the **<color # | ||
+ | </ | ||
==== Testing ==== | ==== Testing ==== | ||
Line 359: | Line 359: | ||
===== Bash tab completion ===== | ===== Bash tab completion ===== | ||
- | By default Bash will only tab complete files and directories within the current or referenced directory. To tell Bash to complete arguments as if they were separate commands (also leveraging the tab completion settings of other commands) the following can be added to either the users WIP.bashrc, or the global / | + | By default Bash will only tab complete files and directories within the current or referenced directory. To tell Bash to complete arguments as if they were separate commands (also leveraging the tab completion settings of other commands) the following can be added to either the users .bashrc, or the global / |
<code bash> | <code bash> | ||
Line 365: | Line 365: | ||
</ | </ | ||
- | ===== Tips and tricks ===== | ||
- | |||
- | ==== doas persist feature ==== | ||
- | |||
- | '' | ||
- | |||
- | <code bash> | ||
- | permit persist :wheel | ||
- | </ | ||
- | |||
- | < | ||
- | The **<color # | ||
- | </ | ||
===== Smooth transition sudo to doas ===== | ===== Smooth transition sudo to doas ===== | ||
Line 405: | Line 392: | ||
</ | </ | ||
- | ==== See also ==== | + | ===== See also ===== |
* See also [[en: | * See also [[en: | ||
Line 413: | Line 400: | ||
==== External resources ==== | ==== External resources ==== | ||
- | WIP | ||
"It would not have been possible to finish doas without the support of many other OpenBSD developers and users. In particular, Vadim Zhukov contributed immensely to the config parser and regress testsuite; Todd Miller, Damien Miller, and Martijn van Duren provided ideas and inspiration; | "It would not have been possible to finish doas without the support of many other OpenBSD developers and users. In particular, Vadim Zhukov contributed immensely to the config parser and regress testsuite; Todd Miller, Damien Miller, and Martijn van Duren provided ideas and inspiration; |