How to share a folder in Linux?

https://mander.xyz/post/48465992

How to share a folder in Linux? - Mander

I work on an HPC and often I have to share files with other users. The most approachable solution is to have an external cloud storage and recline back and forth. However there’s some projects that are quite heavy (several TB) and that is unfeasible. We do not have a shared group. The following is the only solution I found which is not to just set al permissions to 777, and I still don’t like it. Create a directory and set ACL to give access to the selected users. This works fine if the users create new files in there, but it does not work if they copy from somewhere else as default umask is 022. Thus the only appropriate solution is to change default umask to 002, which however affects file creation system wide. The alternative is to change permissions every time you copy something, but you all know very well that is not going to happen. Does it really have to be such a pain in the ass?

A dedicated file sharing application.

What do you mean? Is there an application that allows easily sharing files on one Linux system? That would be nice!

If you mean going through an external server or peer to peer transfer, that is not too feasible. I do not have other storage places with tens of terabytes available, and transfering that much data through some P2P layer, while feasible, would probably be even less user friendly.

NFS Well if someone is running windows look for samba
s/ftp
scp
You could use pythons build-in http server
rsync
Setting Up File Sharing with NFS and Samba

Learn how to set up file sharing on Linux using NFS and Samba with this step-by-step guide. Covering installation and configuration across various Linux distributions, it details directory permissions, data reliability, and Active Directory integration. Perfect for both beginners and advanced users aiming to enhance network collaboration.

Linux Bash
Skip NFS and ftp as they cause more problems than they solve