[sudo-users] Problems configuring multiple logservers

Niels Kobschätzki niels at kobschaetzki.net
Fri Jul 14 07:50:46 MDT 2023


Hi,

I am trying to add two log_servers to my sudoers:

Defaults log_servers = a.b.c.d e.f.g.h

When I do that I get an error:

/etc/sudoers.d/00_sudo-log:2:39: syntax error
Defaults log_servers = 213.73.121.12  213.73.113.150

/etc/sudoers.d/00_sudo-log:2:39: syntax error
Defaults log_servers = a.b.c.d e.f.g.h
                                                    ^~~~~~~~~~~~~~

The ^ points to the whitespace between the two ipv4-addresses (sorry I have no monospace-mail client available in this moment; so I am not sure if I pointed the ^ correctly).

According to the man-page log_servers is a white space-separated list.

I get the error on a Debian 11 with sudo 1.9.5 and on a FreeBSD 13 with sudo 1.9.10

What am I doing wrong?

Best,

Niels


More information about the sudo-users mailing list