Monday, May 22, 2017
How to validate the Syntax of /etc/sudoers file ?
In Enterprise environment, the /etc/sudoers file is normally managed from a centralized server. Hence the modification to the files happens even before committing to actual server. We've an option to validate the Syntax before committing :
# visudo -cf /path_to_folder/sudoers.ver_num
# visudo -cf /etc/sudoers