Bugzilla – Bug 618
Ignore drop-in sudoer files with syntax errors rather than breaking everything
Last modified: 2020-09-21 08:33:41 MDT
Installing a drop-in file with a syntax error to /etc/sudoers.d causes all sudo functionality to break. It might be better to just print out a warning message and ignore any drop-in file that has a syntax error.
To do this safely the sudoers.d data would have to be journaled instead of applied as the file is read. If the file parsed OK the journal would then be replayed. That way the sudoers.d file is either applied completely or not at all.
Sudo 1.9.3 will now recover from syntax errors, ignoring the line with the error.