On 28/02/18 10:01 AM, Roger Oberholtzer wrote:
Any ideas on how to sort out permissions when systemd is managing autofs? I have googled, but all seems to discuss when you set up autofs yourself. I can do that. But we are trying to make this less complicated for the people who are managing the systems.
This might be part of a solution. Back in my NFS days I had ~/Documents symlinked to /mnt/NFS/anton/Documents and that was set to be a NFS mount on demand Now I have ~anton/USB symlinked to /var/run/media/anton/ When I put a USB stick in my front panel KDE mounts it and it appears under ~anton/USB I know this isn't mount-on-demand :-) Maybe I'm a dinosaur, but I'm conformable with 'autofs' to my mount-on-demand and it can work with both remote (NAS, NFS) and local file systems. Perhaps you need to use this to achieve what you want rather than the systemd automount? I say this as a systemd advocate. https://doc.opensuse.org/documentation/leap/reference/html/book.opensuse.ref... you should also look at pam_mount which offers a different set of capabilities including user configurable mounting: · Users can define their own list of volumes without having to change (possibly non-writable) global config files. The module also supports mounting local filesystems of any kind the normal mount utility supports, with extra code to make sure certain volumes are set up properly because often they need more than just a mount call, such as encrypted volumes. This includes SMB/CIFS, FUSE, dm-crypt and LUKS. Individual users may define additional volumes to mount if allowed by pam_mount.conf.xml (usually ~/.pam_mount.conf.xml). The volume keyword is the only valid keyword in these per-user configuration files. If the luserconf parameter is set in pam_mount.conf.xml, allowing user-defined volume, then users may mount and unmount any volume they own at any mount point they own. -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org