From 353db04e1aba6d88c6ad8104b5b01965ef9635e4 Mon Sep 17 00:00:00 2001 From: Moni Ghaoui Date: Wed, 10 Dec 2025 22:03:38 +0100 Subject: [PATCH] doas --- os/FreeBSD/FreeBSD_on_Lenovo_Thinkcentre.md | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/os/FreeBSD/FreeBSD_on_Lenovo_Thinkcentre.md b/os/FreeBSD/FreeBSD_on_Lenovo_Thinkcentre.md index 1eb792a..3eee02e 100644 --- a/os/FreeBSD/FreeBSD_on_Lenovo_Thinkcentre.md +++ b/os/FreeBSD/FreeBSD_on_Lenovo_Thinkcentre.md @@ -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/\\|\\|\\|\/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