Firstly you shouldn't change the permissions of your sudoers file!!! However, if for whatever reason you do change the permissions, it turns into a bit of a catch 22 problem:
sudo: /etc/sudoers is mode 0640, should be 0440
sudo: no valid sudoers sources found, quitting
sudo: no valid sudoers sources found, quitting
To sort this out reboot, press “Esc” at the grub loader screen, and when linux is booting and enter into the latest recovery mode. On the next menu, select the option that allows you to enter into a command line as root. Then change your file permissions, so in this case:
Or
You can use the live ubuntu CD, and mount the hard disk's file system, then do the following:
$ chmod 0440 /etc/sudoers
Reboot normally
0 comments:
Post a Comment