The file /etc/sudoers has permissions set to 0770. How do I change it to 0440?

Asked by Jack

I am trying to follow the Firestarter documentation which allows the Firestarter to start when
a user logs on. The documentation says to: export EDITOR =get && sudo visudo

When I enter this command, I receive the following:

sudo: /etc/sudoers is mode 0770, should be 0440

How do I get the permissions changed back to 0440 on the file /etc/sudoers???

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Andy Ruddock
Solved:
Last query:
Last reply:
Revision history for this message
Hans Spaans (hspaans) said :
#1

The following commands should solve your problem.

# sudo chmod 0440 /etc/sudoers
# sudo chown root:root /etc/sudoers

Revision history for this message
Jack (jax804) said :
#2

I entered the following command:
 sudo chmod 0440 /etc/sudoers

I received the following message:
sudo: /etc/sudoers is mode 0770, should be 0440

I entered the following command:
 sudo chmod root:root /etc/sudoers

I received the following message:
sudo: /etc/sudoers is mode 0770, should be 0440

Revision history for this message
Best Andy Ruddock (andy-ruddock) said :
#3

Reboot, and press ESC at the prompt to get a boot menu, then select the option with "Recovery Mode", this will probably be the second option in the list.
Then select the "root drop to root shell prompt" menu option.
At the prompt :
# chmod 0440 /etc/sudoers

Then reboot.

Revision history for this message
Jack (jax804) said :
#4

Thanks Andy Ruddock, that solved my question.