I can't remember what command I ran that did this but I can't seem to do anything because of this error. Is there way to reverse it?enter image description here
Asked
Active
Viewed 71 times
-4
-
5Does this answer your question? How to solve "sudo: /etc/sudoers.d is world writable" – Terrance Aug 27 '22 at 14:38
-
@Terrance no it just says not authorized – Culann Brown Aug 27 '22 at 15:19
-
1There are other answers there to try to resolve your issue with, but if you cannot resolve them that way you are probably looking at a reinstall of your OS. – Terrance Aug 27 '22 at 15:22
-
did you happen to notice that both your title and the text of your question give absolutely zero information about what the problem is? Please make your titles and questions descriptive, and rely on images/etc as little as possible. – Esther Aug 28 '22 at 04:07
1 Answers
0
What I can understand from the image you have attached is that:
- Your sudoers file's permissions are not correct.
To fix that you can try the following:
su root # login to root, if you are not already logged in as root
chmod 644 /usr/lib/sudo/sudoers.so # this make it only writable by the owner
chown -R root /usr/lib/sudo # to set the owner as root
In case if you're having trouble with su root
try
pkexec su
I'm a new contributor, so I'm sorry if my answers are not good enough.

ChilledGamer
- 101