On my Centos7 vm I have installed fluxbox and lightdm. But when I set the password correctly it still fails to login.

Originally I had a the following .xinitrc:

exec /usr/bin/startfluxbox

But with the following command I disabled it:

mv ~/.xinitrc ~/.xinitrc.bak

I installed the lightdm:

sudo yum install lightdm

And I rebooted my VM

Afterwards when the lightdm starts and I enter correctly my credentials but lightdm fails to login. I restarted the lightdm and I run sudo systemctl status lightdm.service

Then I receive th3e following message:

[user@10 ~]$ sudo systemctl status lightdm.service
● lightdm.service - Light Display Manager
   Loaded: loaded (/usr/lib/systemd/system/lightdm.service; enabled; vendor preset: enabled)
   Active: active (running) since Σαβ 2019-03-09 00:54:28 EET; 18s ago
     Docs: man:lightdm(1)
 Main PID: 3929 (lightdm)
   CGroup: /system.slice/lightdm.service
           ├─3929 /usr/sbin/lightdm
           ├─3935 /usr/bin/X -core -noreset :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt1 -novtswitch -background none
           └─3976 lightdm --session-child 12 19

Μάρ 09 00:54:28 systemd[1]: Stopped Light Display Manager.
Μάρ 09 00:54:28 systemd[1]: Starting Light Display Manager...
Μάρ 09 00:54:28 systemd[1]: Started Light Display Manager.
Μάρ 09 00:54:28 lightdm[3942]: pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0)
Μάρ 09 00:54:41 lightdm[3966]: pam_unix(lightdm:auth): authentication failure; logname= uid=0 euid=0 tty=:0 ruser= rhost=  user=user

I switched to a different tty via CRTL+ALT+F2 and I login correctly but on the tty running the lightdm fails to login.

Therefore for some reason lightdm does not accept the password whilst the non-gui (ssh, normal terminal login accepts it). Do you know why?

Edit 1

As per this answer I tried the following commands in order t o change the permission on .Xauthority file:

#Each command is a different attempt
chmod 664 .Xauthority
chmod 666 .Xauthority
mv .Xauthority .Xauthority.back

Still no light in my path.

Your Answer

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

Browse other questions tagged or ask your own question.