Dear Maintainer,
ecrypts-mount-private is failing when starting a user session via sudo (and
probably other methods where no password is required for login, e.g. ssh with
keyfile)
Error message is: "mount: No such file or directory" and home directory is not
mounted.
Reason is that the user keyring is not linked to the session keyring.
see also here https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=870126#15
Easy fix is to add a file into /etc/profile.d which does this linking, a one-
liner in it is sufficient:
keyctl link @u @s
After this small change ecryptfs-mount-private is working as intended.
This shouldn't raise any safety concerns as all is done with normal user
permissions, the same is done by su (resp. pam) automatically. If the user
keyring is already linked this additional command will do nothing and doesn't
do any harm.
So please include a file in the package which does this fix.