Help with configuring server NFS shares, permissions and permanent client auto mounting
by IansMusical from LinuxQuestions.org on (#4YRJ9)
Hi All,
Looking for assistance with configuring NFS. I'm relatively new to Linux from Windows and wish to setup some server shares in a family home network environment. I've read lots about NFS (and SAMBA) and have experimented but have become confused particularly in relation to permissions!
So, I have 5 Debian 10.1 (Cinnamon) PCs with static IPs, 1 is the server. Each PC has me as an admin sudo user (matching UID/GID) and 3 have standard non-sudo accounts for the rest of the family (matching UID/GID). I wish to share read only some photos/music etc. that will be stored on a separate SSD partition and/or external USB SSD. There maybe some individual photos/music files that I don't wish to share within the share. I'd also like a share that is read/write as temp area. Obviously all 4 family members need the appropriate access to these 2 shares.
Could I get some pointers/examples on how to achieve the above? I know how to install NFS etc. but where I'm struggling is with setting up the shares on the SSD/external SSD, especially permissions, who owns/should own the files on each share, me as the admin? How to make the shares permanent in fstab on the clients and handle server outages during use or when the clients boot. Is NFS even the right option, would SAMBA be better? :-)
Many thanks for any input, Ian


Looking for assistance with configuring NFS. I'm relatively new to Linux from Windows and wish to setup some server shares in a family home network environment. I've read lots about NFS (and SAMBA) and have experimented but have become confused particularly in relation to permissions!
So, I have 5 Debian 10.1 (Cinnamon) PCs with static IPs, 1 is the server. Each PC has me as an admin sudo user (matching UID/GID) and 3 have standard non-sudo accounts for the rest of the family (matching UID/GID). I wish to share read only some photos/music etc. that will be stored on a separate SSD partition and/or external USB SSD. There maybe some individual photos/music files that I don't wish to share within the share. I'd also like a share that is read/write as temp area. Obviously all 4 family members need the appropriate access to these 2 shares.
Could I get some pointers/examples on how to achieve the above? I know how to install NFS etc. but where I'm struggling is with setting up the shares on the SSD/external SSD, especially permissions, who owns/should own the files on each share, me as the admin? How to make the shares permanent in fstab on the clients and handle server outages during use or when the clients boot. Is NFS even the right option, would SAMBA be better? :-)
Many thanks for any input, Ian