Permission/authentification failures

hi I can't seem to install anything through pamac or write to disk. getting the following error. not sure how to change the ownership or permission of sudo. I only have one user account that's admin, no guest accounts. not sure how to log in as root as suggested by previous posts on this problem

/usr/bin/sudo must be owned by uid 0 and have the setuid bit set

when I use pamac to download something it says authentication failed

If a file owned by a package changes (or has been changed) then the easiest way to revert it to the default is to reinstall the package.

In this case you'll have to use a different route to get root permissions for installing the package, so either log in to a TTY as root or use su - in a terminal. If you don't have a password set for root then you'll have to use a chroot, How to chroot Garuda Linux.


I logged into root, deleted my all users and their files, I then added a new user as an admin. still having same issue, not able to access anything, authentication failing. the new user opens Garuda Welcome but cannot access Qwikaccess. I'm getting

"error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy" usr/lib/sudo/ must be owned by uid 0"

I logged into root, opened terminal and tried sudo update but getting same error "must be owned by uid 0"

Not sure why you're using sudo when logged in as root, or why you deleted your user and files, or are trying to update. All I suggested was to reinstall the sudo package, e.g.:

pacman -S sudo

You're getting a permissions error on the executable in a non home directory file. Deleting and recreating users isn't going to change the UID not being set.

chown root:root /usr/bin/sudo
chmod 4755 /usr/bin/sudo

My permissions for /usr/bin/sudo:

File: /usr/bin/sudo
Access: (4755/-rwsr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)

1 Like