I have a fresh Arch Linux VM which I just set up. Everything works great with it.
sudo is also configured and works fine. Now I cloned my VM and changed the username and home directory of my normal user using these commands:
su usermod -d /home/newname -m oldname usermod -l newname oldname groupmod -n newname oldname reboot
I also changed the passwords of all users (including root) using
The group name was the same as the user name. I got no errors, but after logging into my user I cannot use sudo anymore. I opened
/etc/sudoers and changed
oldname ALL=(ALL) ALL
newname ALL=(ALL) ALL
and rebooted again. I still cannot use
sudo anymore. It asks me for a password, but it reports
Sorry, try again., always.
I also tried to repair
su pacman -Rsn sudo pacman -S sudo reboot
Still no luck. The password is right, because
su still works. How can I fix this issue?