Syntax verification in vi editor to avoid sudo corruption
Sac Isilia via sudo-users <[email protected]> Wed, 19 Apr 2023 17:31:41 +0530
| Newsgroups | gmane.comp.tools.sudo.user |
|---|---|
| Message-ID | <CANKxB9b7M-R9M8OfXrsASH0aX=JOJ0PA4LpJ=rXs4R+Yixxhvg@mail.gmail.com> |
Hi Team, I am thinking of a use case where a user who has access to edit /etc/sudoers file and he does some wrong edit and he is not aware of how to verify the syntax of sudo file (visudo -c) . Is there a way to configure in the user profile or some where else that automatically checks for syntax error in sudo file once the user tries to save the file . The sysadmin knows this stuff but a normal user might not be aware of syntax checking. Please provide some thoughts of making this work. Regards Sachin Kumar ____________________________________________________________ sudo-users mailing list <[email protected]> For list information, options, or to unsubscribe, visit: https://www.sudo.ws/mailman/listinfo/sudo-users