By mistake I entered the command
sudo chmod -R 777 somefolder ./
Now I am unable to log in to my system as root user. I have the login loop problem
By mistake I entered the command
sudo chmod -R 777 somefolder ./
Now I am unable to log in to my system as root user. I have the login loop problem
Hi i had a similar problem and this is how i solved it.
You are now in a root shell.Do the following
mount -o remount,rw /
chown root:root /usr/bin/sudo
chmod 4755 /usr/bin/sudo
exit
Go back to the menu and choose resume normal boot
/usr
if not on/
. Fixing recursivechmod
is a pain... If you want the least hassle, get your data off there with a live USB and reinstall – Zanna Aug 11 '17 at 07:18