-
Notifications
You must be signed in to change notification settings - Fork 103
Description
My environment is the Ubuntu 20.04. I installed fscrypt after compiling from source as described on this GitHub site. After installing fscrypt I noticed that pulseaudio failed to automatically start after login. I had to explicitly start pulseaudio manually each time using:
pulseaudio --start
Here are my system details:
Kernel version:
5.4.0-56-generic
Ubuntu details:
NAME="Ubuntu"
VERSION="20.04.1 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.1 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
fscrypt version:
fscrypt version v0.2.9-11-gcc933cd
To fix this issue permanently, I had to make the following change:
In file /etc/pam.d/common-session move the line containing pam_systemd.so below the line
containing pam_fscrypt.so.
So, in file: /etc/pam.d/common-session change the "Additional block" section like so:
FROM:
# and here are more per-package modules (the "Additional" block)
session required pam_unix.so
session optional pam_systemd.so
session optional /usr/lib/security/pam_fscrypt.so drop_caches lock_policies
# end of pam-auth-update config
TO:
# and here are more per-package modules (the "Additional" block)
session required pam_unix.so
session optional /usr/lib/security/pam_fscrypt.so drop_caches lock_policies
session optional pam_systemd.so
# end of pam-auth-update config
I found this fix by referring to the following link:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1889416
It would be great if this could be handled automatically at install time.
Thank you.