User Tools

Site Tools


linux:sudo:sudoers:create_a_sudo_log_file

Linux - Sudo - Sudoers - Create a Sudo Log File

By default, sudo logs through syslog.

However, to specify a custom log file, use the logfile parameter like so:

Defaults  logfile="/var/log/sudo.log"

To log hostname and the four-digit year in the custom log file, use log_host and log_year parameters respectively as follows:

Defaults  log_host, log_year, logfile="/var/log/sudo.log"

Example sudo log file

TODO.

linux/sudo/sudoers/create_a_sudo_log_file.txt · Last modified: 2023/07/17 20:09 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki