I want accomplish the following task: On a Ubuntu System with multiple Users accounts and encrypted Home directorys a NFS share should be mounted after login. I want to use systemd user service for this, but can't get it fully working.
What's working so far:
- manual mount with user rights, configured with sudo
- enabling the user service and starting it with
systemctl --user start usermount.service
After a reboot systemd doesn't even know that this unit exists.
I think there is a problem in combination with an encrypted $HOME (ecryptfs in my case), because the service unit and autostart configuration are located in
.config/systemd/user/. My assumption is that the systemd user process is started immediatly after login, before decrypting the homedir and hence doesn't see the users configuration.
Whats my possibilities to solve this task?