Shadow
pam_console
If you built Shadow to use Linux-PAM and you installed the pam_console module, configure login to use it by adding an optional rule to the session section of /etc/pam.d/login:
... session required pam_limits.so session optional pam_console.so session optional pam_mail.so dir=/var/mail standard ...
If the pam_console module is in use, you will see a /var/run/console/<user> directory and the entry <user> in the /var/run/console/console.lock file where <user> is the logged in user's name.
