From c89ed738f93391f8ee03bce0162fa93247bfa153 Mon Sep 17 00:00:00 2001 From: graphenelover Date: Mon, 18 Nov 2024 10:14:50 +0100 Subject: [PATCH] docs: command correction for gpasswd (#538) --- docs/POSTINSTALL-README.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/docs/POSTINSTALL-README.md b/docs/POSTINSTALL-README.md index 3c0ed36..33dfb9d 100644 --- a/docs/POSTINSTALL-README.md +++ b/docs/POSTINSTALL-README.md @@ -89,18 +89,20 @@ Creating a dedicated wheel user and removing wheel from your primary user helps > [!CAUTION] > If you do these steps out of order, it is possible to end up without the ability to administrate your system. You will not be able to use the [traditional GRUB-based method](https://linuxconfig.org/recover-reset-forgotten-linux-root-password) of fixing mistakes like this, either, as this will leave your system in a broken state. However, simply rolling back to an older snapshot of your system, should resolve the problem. - -1. ```sudo adduser admin``` -2. ```sudo usermod -aG wheel admin``` -3. ```sudo passwd admin``` -4. ```reboot``` +> +1. `run0` +2. `adduser admin` +3. `usermod -aG wheel admin` +4. `passwd admin` +5. `exit` +6. `reboot` > [!NOTE] > We log in as admin to do the final step of removing the user account's wheel privileges in order to make the operation of removing those privileges depend on having access to your admin account, and the admin account functioning correctly first. 5. Log in as `admin` -6. ```gpasswd -d {your username here} wheel``` -7. ```reboot``` +6. `run0 gpasswd -d {your username here} wheel` +7. `reboot` When using a non-wheel user, you can add the user to other groups if you want. For example: