You are not logged in.
Hi,
I have an encrypted home (with ecryptfs) with auto-mount on login. Everything was fine for years, until I updated my system two days ago.
(Note that, unfortunately, I did not updated it for a while =/ )
The situation is as follows:
* I login, type the password to decrypt the password. The .Private folder is mounted normally on the /home/$USER mounting point.
* However, it is then impossible to run X (startx), due to the absence of systemd session (as indicated by loginctl).
* If I logout and login again, the systemd session is now created normally and it is possible to run X.
I am searching and reading to solve this issue since two days, without success, but suspects that there is something wrong with systemd and/or PAM.
My problem looks similar to this one, reported from a debian system:
https://bugs.launchpad.net/ecryptfs/+bug/1734290
but the solution suggested does not work.
I paste some details about my config here after, tell me if other information can help.
Any help will be much appreciated!
# systemctl status systemd-logindreturns:
sept. 04 11:39:58 sp systemd-logind[469]: Watching system buttons on /dev/input/event3 (AT Translated Set 2 keyboard)
sept. 04 11:39:58 sp systemd-logind[469]: Watching system buttons on /dev/input/event4 (ThinkPad Extra Buttons)
sept. 04 11:39:58 sp systemd[1]: Started Login Service.
sept. 04 11:40:04 sp systemd-logind[469]: New session 2 of user seb.
sept. 04 11:40:04 sp systemd-logind[469]: Session 2 logged out. Waiting for processes to exit.
sept. 04 11:40:04 sp systemd-logind[469]: Removed session 2.
sept. 04 11:40:42 sp systemd-logind[469]: New session 3 of user seb.
sept. 04 11:59:11 sp systemd-logind[469]: New session 4 of user seb.
sept. 04 11:59:23 sp systemd-logind[469]: Session 4 logged out. Waiting for processes to exit.
sept. 04 11:59:23 sp systemd-logind[469]: Removed session 4./etc/pam.d/system-loginis as follows:
auth required pam_tally2.so onerr=succeed file=/var/log/tallylog
auth required pam_shells.so
auth requisite pam_nologin.so
auth optional pam_mount.so
auth include system-auth
account required pam_tally2.so
account required pam_access.so
account required pam_nologin.so
account include system-auth
password optional pam_mount.so
password include system-auth
session optional pam_loginuid.so
session optional pam_keyinit.so force revoke
session [success=1 default=ignore] pam_succeed_if.so service = systemd-user quiet
session optional pam_mount.so
session include system-auth
session optional pam_motd.so motd=/etc/motd
session optional pam_mail.so dir=/var/spool/mail standard quiet
-session optional pam_systemd.so
session required pam_env.so.profile
ecryptfs-add-passphrase
mount -i /home/seb
cd /home/sebOffline