Skip to Main Content
Linux Security Cookbook
book

Linux Security Cookbook

by Daniel J. Barrett, Richard E. Silverman, Robert G. Byrnes
June 2003
Intermediate to advanced content levelIntermediate to advanced
336 pages
8h 54m
English
O'Reilly Media, Inc.
Content preview from Linux Security Cookbook

5.17. Logging sudo Remotely

Problem

You want your sudo logs kept off-host to prevent tampering or interference.

Solution

Use syslog ’s @otherhost syntax: [Recipe 9.29]

               /etc/syslog.conf:
authpriv.*         @securehost

Discussion

Remember that the remote host’s syslogd needs must be invoked with the -r flag to receive remote messages. Make sure your remote host doesn’t share root privileges with the sudo host, or else this offhost logging is pointless.

See Also

syslog.conf(5), syslogd(8).

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Linux Administration Cookbook

Linux Administration Cookbook

Adam K. Dean

Publisher Resources

ISBN: 0596003919Errata Page