pam模块使用syslog日志调试

问:自定义pam模块,直接调用void syslog(int priority, const char *format, ...);日志写到哪里去了?

答:写到文件var/log/secure里去了

日志查看方式: tail -f var/log/secure
默认使用配置: /etc/rsyslog.conf中的这个配置
            authpriv.* var/log/secure
原文地址:https://www.cnblogs.com/LiuYanYGZ/p/12553903.html