[sudo-users] visudo but don't open #include files?
Todd C. Miller
Todd.Miller at millert.dev
Tue Oct 4 14:27:42 MDT 2022
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
More information about the sudo-users
mailing list