Re: visudo but don't open #include files?

"Todd C. Miller via sudo-users" <[email protected]> Tue, 04 Oct 2022 14:27:42 -0600
Newsgroups gmane.comp.tools.sudo.user
Message-ID <[email protected]>
On Tue, 04 Oct 2022 13:34:44 -0000, Greg Gerke wrote:

> When I use visudo and go to update /etc/sudoers it always goes and opens each
>  #include file that I've got. Is there a way to bypass this action? I've got 
> some servers that have upwards of a dozen #include files and there's none of 
> them I'd need to update and just end up doing a :q a dozen times.
>
> I've been trying to use visudo just to make sure I don't fat finger something
>  in my haste to get in and get out but this action makes me think I should ju
> st be using a straight "vi /etc/sudoers" and double check before exiting...

There is currently no way to edit a sudoers file without also editing
the files it includes.  I could certainly add an option to ignore
includes, perhaps something like "visudo -I".

 - todd
____________________________________________________________
sudo-users mailing list <[email protected]>
For list information, options, or to unsubscribe, visit:
https://www.sudo.ws/mailman/listinfo/sudo-users