1

When run sudo command anywhere in my terminal then I get following error

Zafars-MacBook-Pro:etc zafarsaleem$ sudo
sudo: /private/etc/sudoers is mode 0755, should be 0440
sudo: no valid sudoers sources found, quitting

I followed this link but when I ran ls -al / command I got following output for . which is not similar to the one in the link but stil I followed the whole tutorial but it didnt work and I am still getting above output after running sudo command. How can I fis this issue?

drwxr-xr-x    34 root         wheel      1224 Jan 22 07:43 .
Om3ga
  • 30,465
  • 43
  • 141
  • 221

1 Answers1

2

The question is "sudo: /private/etc/sudoers is mode 0755, should be 0440" If you know the password for the root, you could enter in the terminal "su root", and then type the password mode can modify /etc/sudoers file as root (chmod 0440 / etc/ sudoers). Hope it could work.

Nocmear
  • 94
  • 2