doas
This commit is contained in:
parent
a45500b404
commit
353db04e1a
1 changed files with 18 additions and 3 deletions
|
|
@ -21,15 +21,30 @@ pkg update
|
|||
Install my favorite packages
|
||||
|
||||
```sh
|
||||
pkg install -y bash sudo tmux htop neovim git ncdu bastille tailscale aria2
|
||||
pkg install -y bash doas tmux htop neovim git ncdu bastille tailscale aria2
|
||||
```
|
||||
|
||||
Add "wheel" to the suoers file. You need to run `visudo` and uncomment the line that starts with `%wheel`:
|
||||
For doas you need to copy the config file:
|
||||
|
||||
```sh
|
||||
visudo
|
||||
cp /usr/local/etc/doas.conf.sample /usr/local/etc/doas.conf
|
||||
nvim /usr/local/etc/doas.conf
|
||||
```
|
||||
|
||||
Remove all the stuff about alice, bob, cindy and david. Keep the wheel.
|
||||
|
||||
```
|
||||
g/\<bob\>\|\<alice\>\|\<cindy\>\|\<david\>/d
|
||||
```
|
||||
|
||||
To switch to root you can do:
|
||||
|
||||
```sh
|
||||
doas -s
|
||||
```
|
||||
|
||||
... which means switch to a shell the default is root's.
|
||||
|
||||
Change shell
|
||||
|
||||
```sh
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue