Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 32756  / 1 Year ago, sun, march 5, 2023, 10:36:51

Why might sudo chmod -R a+w * cause



sudo: /etc/sudoers is mode 0640, should be 0440 sudo:   
no valid sudoers sources found, quitting


and how might it be made to work?


More From » sudo

 Answers
0

I think your best bet is to start the system in recovery mode (see here for instructions), drop to root shell and do chmod 0440 /etc/sudoers.



EDIT: as Mik suggested below, the following should work as well without rebooting the system:



pkexec chmod 0440 /etc/sudoers

[#35491] Tuesday, March 7, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ightrushi

Total Points: 129
Total Questions: 125
Total Answers: 127

Location: French Southern and Antarctic Lands
Member since Fri, Jan 6, 2023
1 Year ago
;