1

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

Zanna
  • 70,465

1 Answers1

2

Hi i had a similar problem and this is how i solved it.

  • First reboot your machine and enter the recovery mode from your grub menu
  • Choose the drop to root shell option.This will prompt you with a control-D to continue just press enter
  • 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