EllenBEX wrote:
Thank you for the sudo detail! Regrettably it is 90% Greek to me. I don't even know what a sudoers file is or how to change it. As I said, this change happened when I tried to update from Mojave to Catalina, and the update failed, and thrashed my computer. I had to do a complete restore from Time Machine, back to Mojave, and it mostly worked.
The OS upgrade is unlikely to have caused this particular issue with the "sudoers" file. It may just have exposed the latent issue.
Hopefully it will self fix when I migrate to a new computer.
If you migrate or restore the main system settings (if using Time Machine), then you are likely to bring the problem back over. If you uncheck "system settings", then that theoretically should prevent that file damage being brought to a new system. However, since that file is damaged, who knows what else in those system configuration files could have been improperly altered.
Thank you for the information, and I now know what to do to fix it. The computer is 10 years old - may need a new one soon.
If you have at least 80GB+ of Free storage space on your internal boot drive, then you could create a new APFS volume (give it a unique name) and install macOS onto that new volume so you can get access to a new pristine default copy of the "sudoers" file. You can also install macOS to an external USB3 SSD (even a Hard Drive would work although it will be extremely slow for installation & booting, but it is only just to fix the broken OS. You can then copy that file to the broken OS while booted from this clean OS. When you next boot into the broken macOS theoretically the "sudoers" file issues should be resolved. It is a bit tricky locating the proper location within the broken OS, but I can provide the information if you want to try this fix.
FYI, ignore the "Available" storage value shown everywhere within macOS since "Available" is not synonymous with Free. Use Disk Utility to check the actual Free storage space of the Data volume.
Also, there is no need to restore anything from Time Machine when configuring this second macOS installation as nothing else is needed than a clean OS just long enough to apply this fix. Afterwards you can delete the newly created APFS volume or erase the external drive depending on which option you chose.