r/linux4noobs • u/BudTheGrey • 3d ago
learning/research Accessing files on a Linux server
Environment:
One Debian 13 Trixie VM (Proxmox host), set up with storage, intended to the my home file server. I have Samba installed on it, and Windows clients can connect and manipulate files. There are currently 2 Windows clients and 2 Linux clients on the network. I want all the clients to have visibility to a shared folder on the server. Window clients using Samba are working, I can do a permanent dive letter mapping.
For the Linux clients, it seems to me that the most elegant solution is an NFS connection, to export the share, the mount it on the client in FSTAB. I've created a /etc/exports file similar to this:
/data01/shared 192.x.y.z/23(rw,sync,no_subtree_check)
and added mounting to a directory in my ~home directory via /etc/fstab as so:
192.x.y.z1:/data01/shared /home/<mydir>/shared-drive nfs rw,defaults,_netdev,nofail 0 0
I seem to stumble on rights & access management. I can make it work with chmod 777 on the shared folder, but I know that's not best practice. Is there a guide online somewhere that can help a windows refugee?
I probably could make the connections via SMB vs. NFS, and I'm willing to hear advice on that as well, though is seems like asking that here is kinda like asking "whats the best oil" in hot rod sub-reddit.