generated from AI:
Your user isn’t in the wheel group, so sudo just silently refuses access.
Let’s fix that by booting into a live ISO and adding your user to the wheel group using a chroot. Here’s a full step-by-step guide:
Fix: Add Your User to the wheel Group via Chroot
1. Boot into EndeavourOS Live USB
Use the same ISO you installed from.
Boot into the live environment (select “EndeavourOS Live” in the menu).
2. Identify Your Root Partition
Open a terminal in the live session and run:
lsblk
Look for your Linux root partition — usually labeled something like sda2, nvme0n1p2, etc. It should be the largest partition and have a mount point listed as / (if already mounted) or just no mount if not.
Let’s assume it’s /dev/sda2 for this guide — replace with your actual one!
3. Mount the System and Chroot Into It
sudo mount /dev/sdXn /mnt # replace sdXn with your root partition
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
Now you’re “inside” your installed system.
4. Add Your User to the wheel Group
Run this inside the chroot:
usermod -aG wheel yourusername
Replace yourusername with your actual username.
5. Exit and Reboot
exit
sudo umount -R /mnt
reboot
Remove the USB when prompted and boot into your system as normal.
Final Step: Test It
Once back in your system, open a terminal and try:
sudo echo success
You should be prompted for your password, and it should work now!