feat: add doas in archlinux
parent
32e6a59d8b
commit
bdf4b9105b
|
@ -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>
|
<span class="pl-c"><span class="pl-c">#</span> Set password</span>
|
||||||
passwd joker</pre>
|
passwd joker</pre>
|
||||||
</div>
|
</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>
|
<p>
|
||||||
<a
|
<a
|
||||||
href="https://wiki.archlinux.org/index.php/Systemd-homed"
|
href="https://wiki.archlinux.org/index.php/Systemd-homed"
|
||||||
|
|
|
@ -324,6 +324,21 @@ useradd -m -G wheel -s /usr/bin/zsh -c "The Joker" joker
|
||||||
passwd 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):
|
[systemd-homed (WIP)](https://wiki.archlinux.org/index.php/Systemd-homed):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|
Loading…
Reference in New Issue