0

I am trying to automount SMB shares from a Synology NAS on a client running Ubuntu Studio 18.04 (yes I know it is out of date and plan to upgrade to 20.04.2 soon). I have tried using autofs, but have problems with user-specific shares, which don't get remapped when one user logs out and another logs in and are therefore inaccessible to the second user, necessitating a reboot (see this thread for details). After further research it seems that pam_mount might provide the solution, since it is said to automatically mount and unmount volumes at the beginning and end of each session. Unfortunately, I haven't yet found detailed enough instructions for my modest level of Ubuntu / Linux competence. The various sources I have found mention conflicting directories for PAM and its configuration files. The man page is helpful, but leaves a lot to the imagination. Is pam_mount a daemon, like autofs? If so, what (if anything) do I need to do to ensure that it runs (beyond installing libpam-mount)? Can anyone point me to a good tutorial on how to set up pam_mount, including examples?

R B
  • 368

0 Answers0