1

I normally log on to my Debian machine with the user name "debian" Today, I found that I can't log in with this user name but I can log in as "root".

Possibly relevant information:

root@localhost:~# grep 'debian' /etc/group
cdrom:x:24:debian
floppy:x:25:debian
audio:x:29:debian
dip:x:30:debian
video:x:44:debian
plugdev:x:46:debian
scanner:x:103:debian
netdev:x:106:debian
debian:x:1000:

root@localhost:~# id debian
uid=1000(debian) gid=1000(debian)    groups=1000(debian),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),103(scanner),106(netdev)

root@localhost:echo "" >  /var/log/auth.log

I have rebooted twice but still have the same problem.

After logging in as root, I get:

root@localhost:cat /var/log/auth.log

Apr 25 13:04:15 localhost lightdm: pam_unix(lightdm:session): session closed for user root
Apr 25 13:04:15 localhost polkitd(authority=local): Unregistered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session14 (system bus name :1.56, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Apr 25 13:05:10 localhost lightdm: PAM unable to dlopen(pam_gnome_keyring.so): /lib/security/pam_gnome_keyring.so: cannot open shared object file: No such file or directory
Apr 25 13:05:10 localhost lightdm: PAM adding faulty module: pam_gnome_keyring.so
Apr 25 13:05:10 localhost lightdm: pam_unix(lightdm:session): session opened for user lightdm by (uid=0)
Apr 25 13:05:10 localhost lightdm: pam_ck_connector(lightdm:session): nox11 mode, ignoring PAM_TTY :0
Apr 25 13:05:18 localhost dbus[2567]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.12" (uid=107 pid=3334 comm="/usr/sbin/lightdm-gtk-greeter ") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination=":1.10" (uid=0 pid=3195 comm="/usr/sbin/console-kit-daemon --no-daemon ")
Apr 25 13:05:18 localhost lightdm: PAM unable to dlopen(pam_gnome_keyring.so): /lib/security/pam_gnome_keyring.so: cannot open shared object file: No such file or directory
Apr 25 13:05:18 localhost lightdm: PAM adding faulty module: pam_gnome_keyring.so
Apr 25 13:09:01 localhost CRON[3706]: pam_unix(cron:session): session opened for user root by (uid=0)
Apr 25 13:09:02 localhost CRON[3706]: pam_unix(cron:session): session closed for user root
Apr 25 13:17:01 localhost CRON[3726]: pam_unix(cron:session): session opened for user root by (uid=0)
Apr 25 13:17:01 localhost CRON[3726]: pam_unix(cron:session): session closed for user root
Apr 25 13:31:52 localhost lightdm: pam_unix(lightdm:session): session closed for user lightdm
Apr 25 13:31:52 localhost lightdm: pam_unix(lightdm:session): session opened for user debian by (uid=0)
Apr 25 13:31:52 localhost lightdm: pam_ck_connector(lightdm:session): nox11 mode, ignoring PAM_TTY :0
Apr 25 13:31:52 localhost lightdm: PAM unable to dlopen(pam_gnome_keyring.so): /lib/security/pam_gnome_keyring.so: cannot open shared object file: No such file or directory
Apr 25 13:31:52 localhost lightdm: PAM adding faulty module: pam_gnome_keyring.so
Apr 25 13:31:52 localhost lightdm: pam_unix(lightdm:session): session opened for user lightdm by (uid=0)
Apr 25 13:31:52 localhost lightdm: pam_ck_connector(lightdm:session): nox11 mode, ignoring PAM_TTY :0
Apr 25 13:31:53 localhost dbus[2567]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.19" (uid=107 pid=3786 comm="/usr/sbin/lightdm-gtk-greeter ") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination=":1.10" (uid=0 pid=3195 comm="/usr/sbin/console-kit-daemon --no-daemon ")
Apr 25 13:31:53 localhost lightdm: PAM unable to dlopen(pam_gnome_keyring.so): /lib/security/pam_gnome_keyring.so: cannot open shared object file: No such file or directory
Apr 25 13:31:53 localhost lightdm: PAM adding faulty module: pam_gnome_keyring.so
Apr 25 13:31:58 localhost lightdm: pam_unix(lightdm:session): session closed for user lightdm
Apr 25 13:31:58 localhost lightdm: pam_unix(lightdm:session): session opened for user debian by (uid=0)
Apr 25 13:31:58 localhost lightdm: pam_ck_connector(lightdm:session): nox11 mode, ignoring PAM_TTY :0
Apr 25 13:31:59 localhost lightdm: PAM unable to dlopen(pam_gnome_keyring.so): /lib/security/pam_gnome_keyring.so: cannot open shared object file: No such file or directory
Apr 25 13:31:59 localhost lightdm: PAM adding faulty module: pam_gnome_keyring.so
Apr 25 13:31:59 localhost lightdm: pam_unix(lightdm:session): session opened for user lightdm by (uid=0)
Apr 25 13:31:59 localhost lightdm: pam_ck_connector(lightdm:session): nox11 mode, ignoring PAM_TTY :0
Apr 25 13:31:59 localhost dbus[2567]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.24" (uid=107 pid=3828 comm="/usr/sbin/lightdm-gtk-greeter ") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination=":1.10" (uid=0 pid=3195 comm="/usr/sbin/console-kit-daemon --no-daemon ")
Apr 25 13:31:59 localhost lightdm: PAM unable to dlopen(pam_gnome_keyring.so): /lib/security/pam_gnome_keyring.so: cannot open shared object file: No such file or directory
Apr 25 13:31:59 localhost lightdm: PAM adding faulty module: pam_gnome_keyring.so
Apr 25 13:32:05 localhost lightdm: pam_unix(lightdm:session): session closed for user lightdm
Apr 25 13:32:05 localhost lightdm: pam_unix(lightdm:session): session opened for user root by (uid=0)
Apr 25 13:32:05 localhost lightdm: pam_ck_connector(lightdm:session): nox11 mode, ignoring PAM_TTY :0
Apr 26 13:32:08 localhost polkitd(authority=local): Registered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session6 (system bus name :1.30 [/usr/lib/i386-linux-gnu/lxpolkit], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)

What is wrong and how can I fix it?

  • 1
    What happens when you try? – jordanm Apr 25 '15 at 4:42
  • Check /var/log/auth.log for error messages, if not check /var/log/messages. – Bichoy Apr 25 '15 at 4:44
  • What is the output of id debian? – lcd047 Apr 25 '15 at 4:49
  • when i input debian and its password ,there is no error message output,just pop out the login window again ,you can't login but no error message displayed. – it_is_a_literature Apr 26 '15 at 1:27
  • The os refused user name debian to login ,no error message to tell me why ? – it_is_a_literature Apr 26 '15 at 3:08
1

For some reason, my ~/.Xauthority did not belong to the debian user. Changing the ownership allowed me to log in:

chown -R debian  /home/debian/.Xauthority 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.