I use ubuntu and would like to create a custom log for the authentication information on the server.
It is currently written in
Would it be possible besides write it in
auth.log it also save the information in a
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
On Ubuntu 16.04 which uses
rsyslog as its syslog daemon. You can do the following as root:
echo 'auth,authpriv.* /var/log/new.log' >> /etc/rsyslog.d/50-default.conf systemctl restart rsyslog