Hi there,
I am currently struggeling with mounting my NAS shares in EOS. I found various resource explaining the process in general, but I am missing one key feature: How do I get it to work properly for multiple users on the client side with potentially different permissions on the NAS side? This is the point, which I miss in almost all of the explanations.
Where am I coming from: Windows. There each user can mount the shares as network drives via SMB. Each users can have its own setup, passwords are stored and connections work magically (automatically mounted on boot, automatically mounted when NAS is switched on and the Client-PC was already running). The NAS should be aware of the permissions of each user and also should set e.g. the correct owner of the files.
How would I replicate this as close as possible on EOS?
The NAS is a Synology by the way.
First questions is SMB or NFS. Currently I focus on SMB, because this is the current setup I have already on the NAS side. But I could imagine to switch over to NFS, if this is more feasible in general.
I started my journey in the Arch-Wiki: https://wiki.archlinux.org/title/Samba#Client. However, the solutions proposed seem only to work for a single user, if I understand it correctly. I could store each users credentials in different files and add the mounts to fstab, but this would also mean that the same share is mounted separately for each user. I could maybe work around this by mounting the shares in each users home directory. This does not feel ideal, but could work. I also imagine that this would mean that the NAS thinks that all users made a connection at the same time. Which is not horrible, but adds noise.
I also looked briefly at the following thread and the corresponding Arch-Wiki: Automatically mount NAS folders using NFS This seems to look similar. But I did not yet get into the weeds of NFS. But maybe this would be the right choice?
The following describes a way to make mounting easier without sudo: https://help.ubuntu.com/community/Samba/SambaClientGuide. This could be a way for manual mounting by each user. But I would prefer automatic mounting.
Then I came across multiuser mounts via the following two links:
- https://4sysops.com/archives/linux-smb-mount-for-multiple-users/
- https://docs.linuxfabrik.ch/software/samba-client.html
This sounds very promising. But I have no idea about Kerberos and NTLM. Before I go deeper into that rabbit hole, I thought to double check the approach here. Maybe there is overall a simpler approach to my problem. And as I start to get confused with all the various options (NFS/SMB, fstab/systemd-mount-unit, own scripts, multiuser-mounts, …) I would appreciate some help pointing me in the right direction.
Thank you very much in advance.
P.S.: I am using KDE. Mounting in Dolphin seems to work as I like it. But I would require a proper path to the share, which would allow me to do rsync operations and even provide the share to a program running in Wine.
