- Enable logging of debug messages in SYSLOG:
# cp /etc/syslog.conf /etc/syslog.conf.prev
# vi /etc/syslog.conf
Add the following line:
*.debug<TAB>/var/log/debug.log
- Then restart
syslogd
:
# touch /var/log/debug.log
# /sbin/init.d/syslogd stop && /sbin/init.d/syslogd start
- You can enable debugging for all modules like so:
# touch /etc/pam_debug
OR you can enable debugging only for the modules you’re interested in by adding debug
to the end of the relevant lines in /etc/pam.conf
or the other /etc/pam.d/*
files:
login auth required pam_unix.so debug
- Then debugging messages should start appearing in
/var/log/debug.log
Leave a comment