Red Hat Bugzilla – Bug 1270224
pam_console does not acquire console lock when logged in via gdm
Last modified: 2016-04-28 08:05:19 EDT
Description of problem:
/var/run/console is empty when logged in via gdm.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install Fedora 22 with gdm as login manager
2. Log in
3. ls /var/run/console
Directory is empty
Directory should contain console.lock and a counter named after my
It appears that pam_console is being asked to match against "/dev/tty2"
but none of the strings in /etc/security/console.handlers matches the
/dev at the beginning. I am guessing this is new behaviour of gdm
in GNOME 3.16 because it does seem to work properly in Fedora 21.
What is output of grep 'pam_console' -r /etc/pam.d ?
The /dev is removed by pam_console itself, so that shouldn't be the issue.
$ grep 'pam_console' -r /etc/pam.d
/etc/pam.d/gdm-password:session optional pam_console.so
/etc/pam.d/login:session optional pam_console.so
/etc/pam.d/gdm-smartcard:session optional pam_console.so
/etc/pam.d/gdm-pin:session optional pam_console.so
/etc/pam.d/gdm-autologin:session optional pam_console.so
/etc/pam.d/xserver:auth required pam_console.so
/etc/pam.d/gdm-fingerprint:session optional pam_console.so
The kicker is that it starts working again if I put /dev/tty[0-9] into
Ah, you're right, I was confused because I thought the text login command uses the full path with /dev/ and that pam_console removes it. But that is not the case. Anyway, I will modify the default console.handlers to allow for the /dev/ prefix.
Note that the pam_console will go away in the future completely.
I just spend half an hour debugging a problem with xawtv (v4l-conf) which is caused by this.
Changing the line in /etc/security/console.handlers from:
console consoledevs tty[0-9][0-9]* vc/[0-9][0-9]* :[0-9]+\.[0-9]+ :[0-9]+
console consoledevs tty[0-9][0-9]* /dev/tty[0-9][0-9]* vc/[0-9][0-9]* :[0-9]+\.[0-9]+ :[0-9]+
Fixes this, it would be nice if you could create an update package with this fixed.
Thanks & Regards,