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

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

日志查看方式: tail -f var/log/secure
默认使用配置: /etc/rsyslog.conf中的这个配置
            authpriv.* var/log/secure

 

相关文章:

  • 2022-12-23
  • 2021-11-17
  • 2021-11-15
  • 2021-12-08
  • 2021-10-30
  • 2021-12-02
  • 2021-12-12
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2021-12-12
  • 2021-04-12
  • 2022-12-23
  • 2021-12-03
相关资源
相似解决方案