Re: PAM messages on chrooted console
Bas Zoetekouw <email@example.com> wrote:
> You wrote:
>> After restarting init my tty6 works, however I keep getting PAM messages
>> on my console such as:
>> PAM_unix: (login) session opened for user minghua by minghua(uid=0)
>> I noticed such messages go to /var/log/auth.log in my stardard
>> installation, however this log in chroot (/var/chroot/var/log/auth.log)
>> is existent but empty. I also looked at my /var/chroot/etc/syslog.conf,
>> but it is identical to /etc/syslog.conf.
> You are probably nor running syslogd and/or klodg in the chroot. I'm
> not sure is that's possible, though.
The simplest solution is to use SYSLOGD="-a /path/to/chroot/dev/log"
in /etc/init.d/sysklogd to get the main syslogd to grab the messages
from the chroot, too.