stevepedwards.com/DebianAdmin linux mint IT admin tips info

Pi3 – Can’t Log In To Desktop Except User Pi

Setting to Desktop login for user stevee via raspi-conf then rebooting I cannot login.

The default pi user can though...

Looking at:

sudo vi .Xauthority

It retains the old hostname in MIT magic cookie. Seems there are a few issues with the latest Raspbian Lite eh?

This may also explain the inability to highlight/copy/paste text via SSH also.

Let's delete it, set auto Dtop login via raspi-config, then see if a new one is created on reboot and try again...

Nope - didn't autologin and I still can't login...

sudo vi .xsession-errors

No win managers? That explains a lot!

stevee@pi3:~ $ sudo apt install lightdm

[sudo] password for stevee:
Reading package lists... Done
Building dependency tree
Reading state information... Done
lightdm is already the newest version (1.18.3-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Already installed - just not working? Already latest dist:

stevee@pi3:~ $ sudo apt dist-upgrade

Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

stevee@pi3:~ $ sudo dpkg-reconfigure lightdm

stevee@pi3:~ $ sudo apt install desktop-base
Reading package lists... Done
Building dependency tree
Reading state information... Done
desktop-base is already the newest version (9.0.2+deb9u1).
desktop-base set to manually installed.

Fuck's sake - this Raspbian Lite - just that! Very Lite on function! But it's still 1.9GB large - same size as Mint install that HAS Cinnamon...what App crap have they filled it with I wonder - over the basics?

They've even removed Ctrl-Alt-Backspace for Xserver respawn! No startx either?? try another DM:

stevee@pi3:~ $ sudo apt install lxde

Just in case it still requires what it said was missing above after...

stevee@pi3:~ $ touch .xsession

stevee@pi3:~ $ sudo reboot

Nope - same...

Let's remove and re-install lightdm:

stevee@pi3:~ $ sudo apt remove lightdm* --purge

stevee@pi3:~ $ sudo apt install light-locker lightdm lightdm-gtk-greeter

stevee@pi3:~ $ sudo raspi-config (Set dtop auto login)
stevee@pi3:~ $ sudo reboot

Nope! As there is a login issue - check security related logs...?

stevee@pi3:~ $ sudo cat /var/log/auth.log | grep fail
Oct 4 23:15:14 piinteg3 login[555]: pam_unix(login:auth): authentication failure; logname=LOGIN uid=0 euid=0 tty=/dev/tty1 ruser= rhost= user=stevee
Oct 5 16:40:30 piinteg3 login[555]: FAILED LOGIN (1) on '/dev/tty1' FOR 'stevee', Authentication failure

There is the retention of the old device name again as was in /etc/hosts for the wifi Post!

As it's PAM db related I'll add my user using:

stevee@pi3:~ $ sudo pdbedit -a stevee
new password:
retype new password:
Unix username: stevee
NT username:
Account Flags: [U ]
User SID: S-1-5-21-4262368663-1680611761-3889941877-1000
Primary Group SID: S-1-5-21-4262368663-1680611761-3889941877-513
Full Name:
Home Directory: \\pi3\stevee
HomeDir Drive:
Logon Script:
Profile Path: \\pi3\stevee\profile
Domain: PI3
Account desc:
Workstations:
Munged dial:
Logon time: 0
Logoff time: never
Kickoff time: never
Password last set: Sun, 08 Oct 2017 23:30:24 BST
Password can change: Sun, 08 Oct 2017 23:30:24 BST
Password must change: never
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

stevee@pi3:~ $ sudo reboot

Looking at tail syslog via SSH while logging in locally all I see of possible relevance is:

Oct 8 23:34:16 pi3 systemd[1]: Created slice User Slice of lightdm.
Oct 8 23:34:16 pi3 systemd[1]: Starting User Manager for UID 109...
Oct 8 23:34:16 pi3 systemd[1]: Started Session c9 of user lightdm.
Oct 8 23:34:16 pi3 systemd[1278]: Starting D-Bus User Message Bus Socket.
Oct 8 23:34:16 pi3 systemd[1278]: Reached target Paths.
Oct 8 23:34:16 pi3 systemd[1278]: Listening on GnuPG cryptographic agent and passphrase cache.
Oct 8 23:34:16 pi3 systemd[1278]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Oct 8 23:34:16 pi3 systemd[1278]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Oct 8 23:34:16 pi3 systemd[1278]: Reached target Timers.
Oct 8 23:34:16 pi3 systemd[1278]: Listening on GnuPG cryptographic agent (access for web browsers).
Oct 8 23:34:16 pi3 systemd[1278]: Listening on D-Bus User Message Bus Socket.
Oct 8 23:34:16 pi3 systemd[1278]: Reached target Sockets.
Oct 8 23:34:16 pi3 systemd[1278]: Reached target Basic System.
Oct 8 23:34:16 pi3 systemd[1278]: Reached target Default.
Oct 8 23:34:16 pi3 systemd[1278]: Startup finished in 80ms.
Oct 8 23:34:16 pi3 systemd[1]: Started User Manager for UID 109.
Oct 8 23:34:16 pi3 systemd[1278]: Started D-Bus User Message Bus.
Oct 8 23:34:16 pi3 org.a11y.atspi.Registry[1295]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
Oct 8 23:34:16 pi3 dbus-daemon[1293]: Activating via systemd: service name='org.gtk.vfs.Daemon' unit='gvfs-daemon.service'
Oct 8 23:34:16 pi3 systemd[1278]: Starting Virtual filesystem service...
Oct 8 23:34:16 pi3 dbus-daemon[1293]: Successfully activated service 'org.gtk.vfs.Daemon'
Oct 8 23:34:16 pi3 systemd[1278]: Started Virtual filesystem service.

It's not an auth/password issue as I get a warning with a login with an incorrect password, so user auth is ok, but next required service for user stevee won't allow access.

Rebooting to user stevee auto console login is ok, and running:

sudo lightdm --test-mode

Warning: Failed...GDBus.Error:org.free.desktop...blah

Try installing MATE...

Fuck this...Make do with pi login for now to view FAware..

 

Comments are closed.

Post Navigation