in a linux mint 21.1 cinnamon virtual machine i have there is a little difference between what lightdm (mint's display manager) does after an autologin start vs one where the user types in a password. you could try checking lightdm's status to see if there might be problems there. one way to do that is with the command
systemctl status lightdm
sometimes if there are problems, that won't show all the messages. you could check
journalctl -b -u lightdm
to see if there are more messages. these two are from a session where my user needed to log in:
Code:
test@mint21onec ~> systemctl status lightdm
● lightdm.service - Light Display Manager
Loaded: loaded (/lib/systemd/system/lightdm.service; indirect; vendor preset: enabled)
Active: active (running) since Sun 2023-08-13 22:16:48 CDT; 15min ago
Docs: man:lightdm(1)
Process: 626 ExecStartPre=/bin/sh -c [ "$(basename $(cat /etc/X11/default-display-manager 2>/dev/null))" = "lightdm" ] (code=exited, status=0/SUCCESS)
Main PID: 629 (lightdm)
Tasks: 5 (limit: 8839)
Memory: 127.6M
CPU: 7.784s
CGroup: /system.slice/lightdm.service
├─629 /usr/sbin/lightdm
└─640 /usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
Aug 13 22:16:48 mint21onec systemd[1]: Starting Light Display Manager...
Aug 13 22:16:48 mint21onec systemd[1]: Started Light Display Manager.
Aug 13 22:16:49 mint21onec lightdm[648]: pam_unix(lightdm-greeter:session): session opened for user lightdm(uid=112) by (uid=0)
Aug 13 22:16:49 mint21onec lightdm[648]: gkr-pam: gnome-keyring-daemon started properly
Aug 13 22:16:50 mint21onec lightdm[825]: pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswdlogin" not met by user "mint21onec"
Aug 13 22:17:43 mint21onec lightdm[856]: pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswdlogin" not met by user "test"
Aug 13 22:17:48 mint21onec lightdm[856]: gkr-pam: unable to locate daemon control file
Aug 13 22:17:48 mint21onec lightdm[856]: gkr-pam: stashed password to try later in open session
Aug 13 22:17:48 mint21onec lightdm[856]: pam_unix(lightdm:session): session opened for user test(uid=1001) by (uid=0)
Aug 13 22:17:48 mint21onec lightdm[856]: gkr-pam: gnome-keyring-daemon started properly and unlocked keyring
test@mint21onec ~> journalctl -b -u lightdm
Aug 13 22:16:48 mint21onec systemd[1]: Starting Light Display Manager...
Aug 13 22:16:48 mint21onec systemd[1]: Started Light Display Manager.
Aug 13 22:16:49 mint21onec lightdm[648]: pam_unix(lightdm-greeter:session): session opened for user lightdm(uid=112) by (uid=0)
Aug 13 22:16:49 mint21onec lightdm[648]: gkr-pam: gnome-keyring-daemon started properly
Aug 13 22:16:50 mint21onec lightdm[825]: pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswdlogin" not met by user "mint21onec"
Aug 13 22:17:43 mint21onec lightdm[856]: pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswdlogin" not met by user "test"
Aug 13 22:17:48 mint21onec lightdm[856]: gkr-pam: unable to locate daemon control file
Aug 13 22:17:48 mint21onec lightdm[856]: gkr-pam: stashed password to try later in open session
Aug 13 22:17:48 mint21onec lightdm[856]: pam_unix(lightdm:session): session opened for user test(uid=1001) by (uid=0)
Aug 13 22:17:48 mint21onec lightdm[856]: gkr-pam: gnome-keyring-daemon started properly and unlocked keyring
this is similar output from a session where the user was automatically logged in:
Code:
journalctl -b-1 | grep lightdm
Aug 13 22:02:51 mint21onec lightdm[653]: pam_unix(lightdm-autologin:session): session opened for user test(uid=1001) by (uid=0)
Aug 13 22:12:31 mint21onec polkitd(authority=local)[522]: Operator of unix-session:c1 successfully authenticated as unix-user:test to gain TEMPORARY authorization for action org.x.lightdm-settings for unix-process:1195:1057 [cinnamon --replace] (owned by unix-user:test)
Aug 13 22:12:31 mint21onec pkexec[1914]: test: Executing command [USER=root] [TTY=unknown] [CWD=/home/test] [COMMAND=/usr/bin/lightdm-settings]
Aug 13 22:12:31 mint21onec dbus-daemon[1943]: [session uid=0 pid=1941] Activating service name='org.freedesktop.portal.Desktop' requested by ':1.0' (uid=0 pid=1937 comm="lightdm-settings ")
Aug 13 22:15:39 mint21onec lightdm[653]: pam_unix(lightdm-autologin:session): session closed for user test
Aug 13 22:15:39 mint21onec systemd[1]: lightdm.service: Deactivated successfully.
Aug 13 22:15:39 mint21onec systemd[1]: lightdm.service: Consumed 13.481s CPU time.