I accidentally messed up the permissions by typing sudo chown -R root:root /usr. It was supposed to usr instead of /usr. anyway, I lost sudo function and showed the error message sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set. But I followed this thread https://askubuntu.com/a/471503/1127900 and solved that issue.
But after that I rebooted and tried to login my user. After typing the password I am getting the login window again and again, but no password incorrect message. But login using tty3 is a success.
Please help to fix this problem. I am in a severe headache with this.
Many thanks in advance
/usr/bin/sudoshould beroot:root- so it's not clear why the command you mention should have caused that particular error – steeldriver Jun 16 '21 at 12:15sudo chown -R root:root /usr. Is there anything that I can do to check where is my mistake? – linux_lover Jun 16 '21 at 12:19sudo apt-get install xserver-xorg-core xserver-xorg-input-all. – linux_lover Jun 16 '21 at 12:37