Score:0

Trying to tweak my sudo configuration

in flag

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

cn flag
"Multiple arguments may be specified, separated by white space." since it points to a "," I'd assume those need to be spaces(?) https://manpages.ubuntu.com/manpages/impish/en/man5/sudoers.5.html
cn flag
what version? disable_coredump states:This setting is only available in sudo version 1.8.4 and higher. Same for "_audit": For sudo version 1.9.1 and higher, this is the sudoers_audit plugin.
Zorono avatar
in flag
@Rinzwind Unfortunately that didn't work... and iam using version 1.9.5p2
Zorono avatar
in flag
"For sudo version 1.9.1 and higher, this is the sudoers_audit plugin." < sudoers.so isn't understood by parser and results in syntax error just like first error
Score:3
mx flag

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
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.