feat: add doas in archlinux

main
sudo pacman -Syu 2023-01-22 02:13:28 +07:00
parent 32e6a59d8b
commit bdf4b9105b
2 changed files with 32 additions and 0 deletions

View File

@ -560,6 +560,23 @@ useradd -m -G wheel -s /usr/bin/zsh -c <span class="pl-s"><span class="pl-pds">"
<span class="pl-c"><span class="pl-c">#</span> Set password</span>
passwd joker</pre>
</div>
<p>
<a href="https://wiki.archlinux.org/title/Doas" rel="nofollow"
>doas (WIP)</a
>
</p>
<div class="highlight highlight-source-shell">
<pre>
pacman -Syu opendoas
chown -c root:root /etc/doas.conf
chmod -c 0400 /etc/doas.conf</pre
>
</div>
<p>Edit <code>/etc/doas.conf</code> (must end with a newline):</p>
<div class="highlight highlight-text-adblock">
<pre>permit persist :wheel</pre>
</div>
<p>
<a
href="https://wiki.archlinux.org/index.php/Systemd-homed"

View File

@ -324,6 +324,21 @@ useradd -m -G wheel -s /usr/bin/zsh -c "The Joker" joker
passwd joker
```
[doas (WIP)](https://wiki.archlinux.org/title/Doas)
```sh
pacman -Syu opendoas
chown -c root:root /etc/doas.conf
chmod -c 0400 /etc/doas.conf
```
Edit `/etc/doas.conf` (must end with a newline):
```txt
permit persist :wheel
```
[systemd-homed (WIP)](https://wiki.archlinux.org/index.php/Systemd-homed):
```sh