crosspostato da: https://mander.xyz/post/48465992

Lavoro su un HPC e spesso devo condividere file con altri utenti. La soluzione più pratica è quella di avere un cloud storage esterno e di poterlo reclinare avanti e indietro. Tuttavia, ci sono alcuni progetti piuttosto pesanti (diversi TB) e questo è impraticabile. Non abbiamo un gruppo condiviso. Quella che segue è l'unica soluzione che ho trovato, che non è quella di impostare tutti i permessi a 777, e comunque non mi piace.
Crea una directory e imposta l'ACL per consentire l'accesso agli utenti selezionati. Questo funziona correttamente se gli utenti creano nuovi file al suo interno, ma non funziona se copiano da qualche altra parte, poiché l'umask predefinita è 022. Pertanto, l'unica soluzione appropriata è modificare l'umask predefinita in 002, il che tuttavia influisce sulla creazione di file a livello di sistema. L'alternativa è modificare i permessi ogni volta che si copia qualcosa, ma sapete tutti benissimo che non accadrà.
Deve essere davvero una rottura di scatole?

Testo originale

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?