Linux Log all the su to root messages

北城以北 提交于 2019-12-10 22:59:59

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!