왜 데비안 콘솔에 로그인할 수 없나요?

왜 데비안 콘솔에 로그인할 수 없나요?

나는 보통 "debian"이라는 사용자 이름으로 데비안 컴퓨터에 로그인합니다. 오늘은 이 사용자 이름으로는 로그인할 수 없지만 "root"로는 로그인할 수 있다는 것을 알았습니다.

아마도 관련 정보:

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

두 번이나 다시 시작했지만 여전히 같은 문제가 있습니다.

루트로 로그인하면 다음을 얻습니다.

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)

무엇이 잘못되었으며 어떻게 해결합니까?

답변1

어떤 이유로 내 것은 ~/.Xauthority해당 사용자의 것이 아닙니다 debian. 소유권을 변경하면 로그인할 수 있습니다.

chown -R debian  /home/debian/.Xauthority 

관련 정보