Creating Sudo User - creationsoftre/Arch-Linux-wiki GitHub Wiki

Create a new user account with the adduser command & add user to admin group wheel

useradd -m -g wheel <your_user>

Set a strong password for the new user with passwd

passwd <your_user>

Add the new user to the wheel group with usermod

usermod -aG wheel <your_user>

Check the sudoers file with visudo

visudo

Look for the wheel group. Remove the comment if the line is disabled.

  • search file for word wheel by using key "/"
  • Uncomment line: %wheel ALL=(ALL) ALL

Switch User

Switch to user
su <your_user>

Verify you are the new user with whoami

whoami

⚠️ **GitHub.com Fallback** ⚠️