问题
I am learning how to use log files in Linux and now I am trying to configure a file called Mysu.log in /dev/log/
In this file I have to log all the su to root messages
I have logged different types of services in the /etc/rsyslog.d/50-default.conf file but I don't understand how I can log these commands.
If you have any solution how I could configure this root messages, please post.
来源:https://stackoverflow.com/questions/19681981/linux-log-all-the-su-to-root-messages