可以在/etc/syslog.conf文件中配置,如下 authpriv.* /var/log/secure authpriv.* --表示进程 /var/log/secure--表示写入到哪个日志文件! 就这么简单!