[sudo-users] Mailing list update and enhancement request

Todd C. Miller Todd.Miller at sudo.ws
Sat Apr 6 07:17:01 MDT 2024


On Fri, 05 Apr 2024 23:15:47 -0500, Grant Taylor via sudo-users wrote:

> Is that not also the case with just a stock `visudo`?
>
> I /thought/ that just `visudo` would only run syntax check on the 
> sudoers file (nominally /etc/sudoers) and not any of the included files.

No, visudo will check the sudoers file as well as all included
files.  For @includedir, the files are syntax-checked but only
edited if there is an error.  Each @include file will also be edited,
regardless of whether or not there is an error in it.

 - todd


More information about the sudo-users mailing list