You are not logged in.

#1 2012-08-23 05:11:37

jwhendy
Member
Registered: 2010-04-01
Posts: 621

[SOLVED] Password prompt appears twice at boot up login

I boot up to the regular text login and startx manually. I recently updated after perhaps 4-5 days days and updated my /etc/*.conf.pacnew files as well.

After rebooting, I was presented with the text login, entered my username and password, and after pressing enter was presented with the same password prompt again. I re-entered my password and was presented with the prompt as usual. Any suggestions on what files might have led to this? I merged /etc/pam.d/login with /etc.pam.d/login.pacnew (which had many fewer lines). Could there be a line in there that's causing this? I'm not familiar with what controls the text login at boot.

Last edited by jwhendy (2012-09-14 21:59:13)

Offline

#2 2012-09-08 13:55:32

mcmilton
Member
Registered: 2011-11-14
Posts: 12

Re: [SOLVED] Password prompt appears twice at boot up login

Did you fixed your problem? Normally, I login via gdm and all ok. But recently I have discovered the identical problem with the double console login prompt.

Offline

#3 2012-09-08 16:06:11

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: [SOLVED] Password prompt appears twice at boot up login

You'll probably find the auth error in your logs.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#4 2012-09-08 17:00:30

mcmilton
Member
Registered: 2011-11-14
Posts: 12

Re: [SOLVED] Password prompt appears twice at boot up login

Here is part of my auth.log . First I logged as a root on tty3 and then logged off and logged again as a regular user. Login session was started twice in both cases. The very end is unclear to me, some messages from gnome-shell. Not sure if they are related at all.

Sep  8 20:33:14 localhost login: pam_unix(login:session): session opened for user root by LOGIN(uid=0)
Sep  8 20:33:14 localhost login: pam_unix(login:session): session opened for user root by LOGIN(uid=0)
Sep  8 20:33:14 localhost login: pam_ck_connector(login:session): process already registered with ConsoleKit
Sep  8 20:33:14 localhost login: ROOT LOGIN ON tty3
Sep  8 20:33:17 localhost login: pam_unix(login:session): session closed for user root
Sep  8 20:33:17 localhost login: pam_unix(login:session): session closed for user root
Sep  8 20:33:17 localhost login: pam_mail(login:session): pam_putenv: delete non-existent entry; MAIL
Sep  8 20:33:23 localhost login: pam_unix(login:session): session opened for user mcmilton by LOGIN(uid=0)
Sep  8 20:33:23 localhost login: pam_unix(login:session): session opened for user mcmilton by LOGIN(uid=0)
Sep  8 20:33:23 localhost login: pam_ck_connector(login:session): process already registered with ConsoleKit
Sep  8 20:33:23 localhost login: LOGIN ON tty3 BY mcmilton
Sep  8 20:33:25 localhost login: pam_unix(login:session): session closed for user mcmilton
Sep  8 20:33:25 localhost login: pam_unix(login:session): session closed for user mcmilton
Sep  8 20:33:25 localhost login: pam_mail(login:session): pam_putenv: delete non-existent entry; MAIL
Sep  8 20:33:26 localhost dbus[442]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.32" (uid=1000 pid=1535 comm="/usr/bin/gnome-shell ") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination=":1.9" (uid=0 pid=1332 comm="/usr/sbin/console-kit-daemon --no-daemon ")
Sep  8 20:33:26 localhost dbus[442]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.32" (uid=1000 pid=1535 comm="/usr/bin/gnome-shell ") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination=":1.9" (uid=0 pid=1332 comm="/usr/sbin/console-kit-daemon --no-daemon ")
Sep  8 20:33:27 localhost polkitd(authority=local): Unregistered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session1 (system bus name :1.32, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale ru_RU.UTF-8) (disconnected from bus)
Sep  8 20:33:29 localhost dbus[442]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.45" (uid=1000 pid=2192 comm="/usr/bin/gnome-shell ") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination=":1.9" (uid=0 pid=1332 comm="/usr/sbin/console-kit-daemon --no-daemon ")
Sep  8 20:33:30 localhost polkitd(authority=local): Registered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session1 (system bus name :1.45 [/usr/bin/gnome-shell], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale ru_RU.UTF-8)
Sep  8 20:33:32 localhost dbus[442]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.45" (uid=1000 pid=2192 comm="/usr/bin/gnome-shell ") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination=":1.9" (uid=0 pid=1332 comm="/usr/sbin/console-kit-daemon --no-daemon ")
Sep  8 20:33:32 localhost dbus[442]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.45" (uid=1000 pid=2192 comm="/usr/bin/gnome-shell ") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination=":1.9" (uid=0 pid=1332 comm="/usr/sbin/console-kit-daemon --no-daemon ")
Sep  8 20:33:32 localhost dbus[442]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.45" (uid=1000 pid=2192 comm="/usr/bin/gnome-shell ") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination=":1.9" (uid=0 pid=1332 comm="/usr/sbin/console-kit-daemon --no-daemon ")
Sep  8 20:33:32 localhost dbus[442]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.45" (uid=1000 pid=2192 comm="/usr/bin/gnome-shell ") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination=":1.9" (uid=0 pid=1332 comm="/usr/sbin/console-kit-daemon --no-daemon ")
Sep  8 20:33:33 localhost dbus[442]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.45" (uid=1000 pid=2192 comm="/usr/bin/gnome-shell ") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination=":1.9" (uid=0 pid=1332 comm="/usr/sbin/console-kit-daemon --no-daemon ")

Offline

#5 2012-09-14 15:47:23

jwhendy
Member
Registered: 2010-04-01
Posts: 621

Re: [SOLVED] Password prompt appears twice at boot up login

Mine is similar to @mcmilton above. The first two lines after a fresh reboot:

# head -2 /var/log/auth.log
Sep 13 17:04:15 localhost login: pam_unix(login:session): session opened for user jwhendy by LOGIN(uid=0)
Sep 13 17:04:15 localhost login: pam_unix(login:session): session opened for user jwhendy by LOGIN(uid=0)

I see no errors of any kind. Other suggestions?

Offline

#6 2012-09-14 15:58:54

jwhendy
Member
Registered: 2010-04-01
Posts: 621

Re: [SOLVED] Password prompt appears twice at boot up login

Also asked this on SuperUser. Just wanted to see if I could get any more suggestions over there for diagnosing this.

Offline

#7 2012-09-14 16:32:52

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: [SOLVED] Password prompt appears twice at boot up login

Sorry, I misunderstood your problem. pam_unix.so (the pam module that authenticates your password) is being loaded twice. Post /etc/pam.d/login, /etc/pam.d/system-local-login, and /etc/pam.d/system-login.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#8 2012-09-14 16:37:19

jwhendy
Member
Registered: 2010-04-01
Posts: 621

Re: [SOLVED] Password prompt appears twice at boot up login

Thanks Stebalien. Here you go:

/etc/pam.d/login

#%PAM-1.0

auth       required     pam_securetty.so
auth       requisite    pam_nologin.so
auth       include      system-local-login
account    include      system-local-login
session    include      system-local-login
auth            required        pam_unix.so nullok
auth            required        pam_tally.so onerr=succeed file=/var/log/faillog
# use this to lockout accounts for 10 minutes after 3 failed attempts
#auth           required        pam_tally.so deny=2 unlock_time=600 onerr=succeed file=/var/log/faillog
account         required        pam_access.so
account         required        pam_time.so
account         required        pam_unix.so
#password       required        pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3
#password       required        pam_unix.so sha512 shadow use_authtok
session         required        pam_unix.so
session         required        pam_env.so
session         required        pam_motd.so
session         required        pam_limits.so
session         optional        pam_mail.so dir=/var/spool/mail standard
session         optional        pam_lastlog.so
session         optional        pam_loginuid.so
-session        optional        pam_ck_connector.so nox11
-session        optional        pam_systemd.so

/etc/pam.d/system-local-login

#%PAM-1.0

auth      include   system-login
account   include   system-login
password  include   system-login
session   include   system-login

/etc/pam.d/system-login

#%PAM-1.0

auth       required   pam_tally.so         onerr=succeed file=/var/log/faillog
auth       required   pam_shells.so
auth       requisite  pam_nologin.so
auth       include    system-auth

account    required   pam_access.so
account    required   pam_nologin.so
account    include    system-auth

password   include    system-auth

session    optional   pam_loginuid.so
session    required   pam_env.so
session    include    system-auth
session    optional   pam_motd.so          motd=/etc/motd
session    optional   pam_mail.so          dir=/var/spool/mail standard
-session   optional   pam_ck_connector.so  nox11
-session   optional   pam_systemd.so

P.S. If these should look differently, please let me know. I for sure merged /etc/pam.d/login with the .pacnew version that came through and wasn't quite sure how to do so. I believe I kept the top lines of the old version and just added what was new from the .pacnew version. Perhaps this was the cause?

Last edited by jwhendy (2012-09-14 16:38:31)

Offline

#9 2012-09-14 17:28:11

mcmilton
Member
Registered: 2011-11-14
Posts: 12

Re: [SOLVED] Password prompt appears twice at boot up login

I have compared my own files with those posted by jwhendy. They are absolutely identical.

Offline

#10 2012-09-14 17:39:01

jwhendy
Member
Registered: 2010-04-01
Posts: 621

Re: [SOLVED] Password prompt appears twice at boot up login

Just found this thread. Quasi recent, and the thread date corresponds with when my etc/pam.d/login file was updated. I renamed /etc/pam.d/login to /etc/pam.d/login.bak and re-installed the package util-linux to get a fresh login file. /etc/pam.d/login from the new version now reads:

#%PAM-1.0

auth       required     pam_securetty.so
auth       requisite    pam_nologin.so
auth       include      system-local-login
account    include      system-local-login
session    include      system-local-login

The other says people had no issues using the new version as-is. Perhaps I shouldn't have tried to merge? I'm going to finish some work stuff and then try a reboot with the new file and post back.

Offline

#11 2012-09-14 21:58:57

jwhendy
Member
Registered: 2010-04-01
Posts: 621

Re: [SOLVED] Password prompt appears twice at boot up login

Used the /etc/pam.d/login exactly as shown in post #10 (only 5 lines of content) and everything is fixed. I think I have the same issue on other Arch computers, but they don't prompt for the password. Instead, when I type in my one password, I get two separate lines about my last login time. I plan to propagate this to my other Arch computer. If I don't report back, consider this solved.

Offline

#12 2012-09-15 01:45:58

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: [SOLVED] Password prompt appears twice at boot up login

The 'auth include <path>' statement instructs pam to include <path>.  login includes system-local-login which includes system-login which has an 'auth required pam_unix.so' line. Your /etc/pam.d/login also has an 'auth required unix_auth.so' line thus causing your problem.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#13 2012-09-15 04:24:34

mcmilton
Member
Registered: 2011-11-14
Posts: 12

Re: [SOLVED] Password prompt appears twice at boot up login

Thank you, Stebalien for the explanation of the problem.

Offline

Board footer

Powered by FluxBB