[sudo-users] Syntax verification in vi editor to avoid sudo corruption
Sac Isilia
udaypratap.singh65 at gmail.com
Wed Apr 19 06:01:41 MDT 2023
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
More information about the sudo-users
mailing list