ฉันใช้ Ubuntu 14.04.2 LTS และหลังจากไฟฟ้าดับฉันไม่สามารถเข้าสู่ระบบได้
คอมพิวเตอร์ทำงานได้ดีในช่วงสองสามเดือนก่อนที่เหตุการณ์นี้จะเกิดขึ้นทันที
อาการคือ:
- หลังจากพยายามเข้าสู่ระบบหน้าจอจะดับประมาณ 15 วินาทีและกลับสู่หน้าจอเข้าสู่ระบบ
- ฉันสามารถเข้าสู่ระบบในฐานะแขกได้โดยไม่มีปัญหา
- ฉันสามารถล็อกอินด้วยตนเองผ่าน tty1 ~ tty6
ฉันลอง / ตรวจสอบสิ่งต่อไปนี้โดยไม่ประสบความสำเร็จ:
การเปลี่ยน
.Xauthorityความเป็นเจ้าของไม่ได้ผล
chown username:username .Xauthorityการเปลี่ยนสิทธิ์ไดเรกทอรีผู้ใช้ไม่ทำงาน
sudo chmod -R u+w /home/[username]ฉันพยายามเข้าไปยุ่งกับ lightdm
dpkg-reconfigure lightdmsudo mv ~/.Xauthority ~/.Xauthority.backup
sudo service lightdm restartไม่มีอะไรในนั้น
.xsession-errorsพยายาม
gdmแทนlightdmแต่มีปัญหาเดียวกันแน่นอนถอนการติดตั้ง
lightdmและติดตั้งใหม่/tmpไดเรกทอรีจะแสดงdrwxrwxrwt
ไม่มีวิธีแก้ไขปัญหาเหล่านี้ที่ฉันพบออนไลน์ ใครช่วยได้บ้าง
แก้ไข 1):
เมื่อฉันพิมพ์sudo tail /var/log/lightdm/lightdm.logมีการแสดง 10 บรรทัด (ทั้งหมดเริ่มต้นด้วยDEBUG:):
Activating VT 7
Activating login1 session c3
Session pid=8697: Greeter connected version=1.10.4
Session pid=8697: Greeter start authentication for [username]
Session pid=8769: Started with service 'lightdm', username [username]
Session pid=8769: Got 1 message from PAM
Session pid=8697: Propmpt greeter with 1 message
User /org/freedesktop/Accounts/User 1000 changed (repeated 3 times)
นอกจากนี้เมื่อฉันพิมพ์ls /usr/share/xsessions/มันจะแสดง
gnome.desktop ubuntu.desktop
แก้ไข 2):
sudo grep 'lightdm:' /var/log/auth.log | tailให้สิ่งต่อไปนี้ทั้งหมดเริ่มต้นด้วยlightdm::
pam_ck_connector(lightdm:session): nox11 mode, ignoring PAM_TTY :0
pam_unix(lighdm:session): session closed for user [username]
PAM unable to dlopen(pam_kwallet.so): /lib/security/pam_kwallet.so: cannot open shared object file: No such file or directory
PAM adding faulty module: pam_kwallet.so
pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0)
pam_ck_connector(lightdm-greeter:session): nox11 mode, ignoring PAM_TTY :0
PAM unable to dlopen(pam_kwallet.so): /lib/security/pam_kwallet.so: cannot open shared object file: No such file or directory
PAM adding faulty module: pam_kwallet.so
pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswdlogin" not met by user [username]"
(this one starts with sudo: instead of lightdm:) [username] : TTY=tty1 ; PWD=/home/[username] ; USER=root ; COMMAND=/bin/grep lightdm: /var/log/auth.log
sudo grep 'lightdm:' /var/log/auth.log | tail
sudo tail /var/log/lightdm/lightdm.log)? เซสชันผู้ใช้ปกติของคุณแสดงอยู่ในไดเรกทอรี xsessions (ls /usr/share/xsessions/) หรือไม่