Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Trying to tweak my sudo configuration

so I am trying to tweak my sudo configuration(sudo visudo -f /etc/sudo.conf) but unfortunately the following errors appeared ???

/etc/sudo.conf:16:22: syntax error
Plugin sudoers_audit sudoers.so error_recovery=true
                     ^~~~~~~~~~
/etc/sudo.conf:81:22: syntax error
Set disable_coredump false
                     ^~~~~
/etc/sudo.conf:123:41: syntax error
Debug sudo /var/log/sudo_debug all@debug, all@crit, all@err, all@warn, all@notice
                                        ^
/etc/sudo.conf:124:50: syntax error
Debug sudoers.so /var/log/sudoers_debug all@debug, all@crit, all@err, all@warn, all@notice
                                                 ^

Please note that i tried reading the manual of sudoers(5) and sudo.conf(5) but nothing helped with these errors

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

visudo is not intended for editing sudo.conf. It works only with sudoers file (and files using sudoers syntax).

For sudo.conf use any editor, for example :

sudoedit /etc/sudo.conf
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading