Package Request: pam_mount
I would love to have the pam_mount package alongside our other PAM pacakges to allow for PAM/user mount of things like CIFS volumes, encrypted volumes, etc at user login (and unmount at user logout).
ArchWiki:
https://wiki.archlinux.org/title/Pam_mount
User Story:
Have a SMB/CIFS NAS hosting User directories for the house, used across all Windows/Linux clients. Windows has Known Folder Redirect which does user-level redirect of User folders like Desktop, Documents, Downloads, Music, Pictures, Videos, etc to any path, including network.
I want my Linux clients to be able to redirect their xdg-user-dirs in a similar fashion, but xdg-user-dirs does not support smb:// paths, so the SMB/CIFS volume must be Unix mounted to a local path.
This is requiring sudo mount -a
after login, despite entries being in the fstab and my user being part of wheel,disk etc, breaking the xdg-user-dirs update login script.
If I were able to use pam_mount, I wouldn't need to expose my SMB login credentials on disk in a .smb, nor have my personal user directories mounted for everyone on this machine via fstab.