| Post Reply | RetroFed Forums Forum Index
» Sysadmin
Page 1 of 2 Goto page 1, 2 Next Last » |
| Author | Message | ||
|---|---|---|---|
|
ranzispa
mander.xyz
ranzispa@mander.xyz Joined: 2025-10-18 |
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. 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. Does it really have to be such a pain in the ass? |
||
| 18 Original | |||
Björn
swg-empire.de
bjoern_tantau@swg-empire.deJoined: 2023-07-08 |
Uh, why not create the shared group? That's more or less exactly the purpose of their existence. |
||
| 17 | |||
CallMeAl (like Alan)
piefed.zip
CallMeAl@piefed.zipJoined: 2025-12-14 |
I'm pretty sure you can do this by adding default user entries to the directory acl which will then be set on files added to that dir. |
||
| 2 | |||
|
ranzispa
mander.xyz
ranzispa@mander.xyz Joined: 2025-10-18 |
Uh, why not create the shared group? That's more or less exactly the purpose of their existence.
Lots of paperwork involved around our HPC. Politica in the middle and plausibly would have to sign confidentiality agreement with everyone who shares anything in there, which would have to go through a review process which is generally takes about 6 months. |
||
| -2 | |||
|
ranzispa
mander.xyz
ranzispa@mander.xyz Joined: 2025-10-18 |
I'm pretty sure you can do this by adding default user entries to the directory acl which will then be set on files added to that dir.
Default user entries are in there and do work, however when copying existing files those get masked with the existing group permissions. As such, the only solution I found is to have everyone set their umask to 002 as otherwise we would not get write access to files which are copied and not created in place. |
||
| 1 | |||
|
frongt
lemmy.zip
frongt@lemmy.zip Joined: 2025-07-31 |
A dedicated file sharing application. |
||
| 2 | |||
|
ranzispa
mander.xyz
ranzispa@mander.xyz Joined: 2025-10-18 |
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. |
||
| 0 | |||
|
warmaster
lemmy.world
warmaster@lemmy.world Joined: 2023-06-16 |
I'm no sysadmin, I just run my homelab. Let me get this straight... You want to bypass system level access level restrictions with some form of control but not go through your company's standard method of doing so because of bureaucracy? If that's the case: why not put something in front I mean, maybe OC is not what you need, but conceptually... would a middleman solution work for you? If so, you could go with a thousand different alternatives depending on your needs. |
||
| 14 | |||
|
ranzispa
mander.xyz
ranzispa@mander.xyz Joined: 2025-10-18 |
I'm no sysadmin, I just run my homelab. Let me get this straight... You want to bypass system level access level restrictions with some form of control but not go through your company's standard method of doing so because of bureaucracy? If that's the case: why not put something in front Like opencloud for example? I mean, maybe OC is not what you need, but conceptually... would a middleman sol...
A cloud solution is indeed an option, however not a very palatable one. The main problem with a cloud solution would be pricing. From what I can see, you can get 1TB for about 10€/month. We'd need substantially more than that. The cost is feasible and not excessive, but frankly it's a bit of a joke to have to use someone else's server when we have our own.
Yes. Not a company but public research, which means asking for a group change may lead to several people in the capital discussing on whether that is appropriate or not. I'd like this to be a joke, but it is not. |
||
| 1 | |||
CallMeAl (like Alan)
piefed.zip
CallMeAl@piefed.zipJoined: 2025-12-14 |
Default user entries are in there and do work, however when copying existing files those get masked with the existing group permissions. As such, the only solution I found is to have everyone set their umask to 002 as otherwise we would not get write access to files which are copied and not created in place.
Ah, I see. Well its ugly, but you could inotify to trigger a tiny script to update the perms when files are added or copied to the share dir. |
||
| 5 | |||
|
IceFoxX
lemmy.world
IceFoxX@lemmy.world Joined: 2025-06-05 |
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.
[deleted]
|
||
| 0 | |||
|
ranzispa
mander.xyz
ranzispa@mander.xyz Joined: 2025-10-18 |
Ah, I see. Well its ugly, but you could inotify to trigger a tiny script to update the perms when files are added or copied to the share dir.
That is a possibility, but how would the setup look like? Only the owner can update the permissions. This would mean that all users need an inotify daemon on that folder for whenever they copy something in there. |
||
| 1 | |||
|
ranzispa
mander.xyz
ranzispa@mander.xyz Joined: 2025-10-18 |
[deleted]
This is a large computing cluster, there are no such mountpoints available and I'm definitely not allowed to go there and plug a few disks into the racks. |
||
| 0 | |||
CallMeAl (like Alan)
piefed.zip
CallMeAl@piefed.zipJoined: 2025-12-14 |
That is a possibility, but how would the setup look like? Only the owner can update the permissions. This would mean that all users need an inotify daemon on that folder for whenever they copy something in there. Not to mention, this is an HPC and we mostly live in login nodes; our sessions are limited to 8 hours which makes setting up such a daemon a bit tricky. Could probably set up somewhere...
Running the inotify script as a service as root would require only one instance. You could trigger it on close_write and then run setfacl to add ACL entries to the new file for all the share users. If you can't add a daemon or service to the system then you can skip inotify and just slam a cron job at it every minute to find new files and update their perms if needed. Ugly but effective. Another option to consider: You could write a little script that changes umask, copies files, and changes it back. Tell people they must use that "share_cp" script to put files into the share dir. |
||
| 2 | |||
|
ranzispa
mander.xyz
ranzispa@mander.xyz Joined: 2025-10-18 |
Running the inotify script as a service as root would require only one instance. You could trigger it on close_write and then run setfacl to add ACL entries to the new file for all the share users. If you can't add a daemon or service to the system then you can skip inotify and just slam a cron job at it every minute to find new files and update their perms if needed. Ugly but effective. Anothe...
We can not setup a common group, no way we get root privileges. A share_cp script would in fact be a good solution, I may try that and see if people pick it up. |
||
| 2 | |||
|
twack
lemmy.world
twack@lemmy.world Joined: 2023-06-12 |
Here's someone that solved this by monitoring the directory using inotifywait, but based on the restrictions you already mentioned I'm assuming you can't install packages or set up root daemons, correct? https://bbs.archlinux.org/viewtopic.php?id=280937 Edit: CallMeAI beat me with this exact same answer by 15 minutes. |
||
| 3 | |||
|
ag10n
lemmy.world
ag10n@lemmy.world Joined: 2023-06-13 |
Lots of paperwork involved around our HPC. Politica in the middle and plausibly would have to sign confidentiality agreement with everyone who shares anything in there, which would have to go through a review process which is generally takes about 6 months.
There’s a reason for this governance and you’re putting your whole team at risk trying to do this yourself |
||
| 14 | |||
|
linuxguy
piefed.ca
linuxguy@piefed.ca Joined: 2026-03-03 |
Maybe some sticky bit https://www.redhat.com/en/blog/suid-sgid-sticky-bit |
||
| 2 | |||
|
ranzispa
mander.xyz
ranzispa@mander.xyz Joined: 2025-10-18 |
There’s a reason for this governance and you’re putting your whole team at risk trying to do this yourself
It's just default Linux permissions. People who get access to the HPC through the same institution are placed in the same group. I already waste way too much of my time on paperwork. Worst case scenario is a collaborator leaks some data which will be published publicly in a few months anyway. And those collaborators will have access to such data anyway, just through other less comfortable means. |
||
| 1 | |||
|
ranzispa
mander.xyz
ranzispa@mander.xyz Joined: 2025-10-18 |
Maybe some sticky bit https://www.redhat.com/en/blog/suid-sgid-sticky-bit
I thought sticky bits were used to allow other users to edit files but not delete them. Do they also allow inheriting the parent directory permissions? |
||
| 1 | |||
|
IceFoxX
lemmy.world
IceFoxX@lemmy.world Joined: 2025-06-05 |
This is a large computing cluster, there are no such mountpoints available and I'm definitely not allowed to go there and plug a few disks into the racks.
[deleted]
|
||
| 2 | |||
|
linuxguy
piefed.ca
linuxguy@piefed.ca Joined: 2026-03-03 |
I thought sticky bits were used to allow other users to edit files but not delete them. Do they also allow inheriting the parent directory permissions?
I didn't intend and don't think the stick bit stuff will or could be a complete solution for you. You've got some oddly specific and kinda cruddy restrictions that you've got to workaround and when they get that nonsensical one ends up solidly in "cruddy hack" territory. From the article:
You could run something like https://pypi.org/project/uploadserver/ in |
||
| 2 | |||
|
ranzispa
mander.xyz
ranzispa@mander.xyz Joined: 2025-10-18 |
[deleted]
None of these programs allow overriding Linux permissions. You can not recline/rsync in another user directory. |
||
| 0 | |||
|
ranzispa
mander.xyz
ranzispa@mander.xyz Joined: 2025-10-18 |
I didn't intend and don't think the stick bit stuff will or could be a complete solution for you. You've got some oddly specific and kinda cruddy restrictions that you've got to workaround and when they get that nonsensical one ends up solidly in "cruddy hack" territory. From the article: group + s (pecial) Commonly noted as SGID, this special permission has a couple of functions: If set on a f...
Wow, that group +s seems exactly what I'm looking for! That actually looks like the clean solution I was looking for. I'll test it out and report back, I'll have to wait on Monday for the colleagues to be back in the server, but it seems very promising. Thank you very much! |
||
| 3 | |||
|
linuxguy
piefed.ca
linuxguy@piefed.ca Joined: 2026-03-03 |
Wow, that group +s seems exactly what I'm looking for! That actually looks like the clean solution I was looking for. I'll test it out and report back, I'll have to wait on Monday for the colleagues to be back in the server, but it seems very promising. Thank you very much!
Wahoo! Best of luck! |
||
| 1 | |||
|
Luckyfriend222
lemmy.world
Luckyfriend222@lemmy.world Joined: 2023-06-19 |
A cloud solution is indeed an option, however not a very palatable one. The main problem with a cloud solution would be pricing. From what I can see, you can get 1TB for about 10€/month. We'd need substantially more than that. The cost is feasible and not excessive, but frankly it's a bit of a joke to have to use someone else's server when we have our own. You want to bypass system level access...
I think he meant self-hosting Opencloud |
||
| 4 | |||
|
ag10n
lemmy.world
ag10n@lemmy.world Joined: 2023-06-13 |
It's just default Linux permissions. People who get access to the HPC through the same institution are placed in the same group. As you may know scientific collaboration is quite important. Indeed when collaborating we sign all the necessary paperwork, but that does not translate to the HPC administrators who are part of a separate institution. To request a separate group you have to contact th...
The fact that you’re sharing this internal policy stuff so openly is definitely a red flag. |
||
| 8 | |||
Possibly linux
lemmy.zip
possiblylinux127@lemmy.zipJoined: 2023-06-26 |
I would hire someone who knows what they are doing. It sounds like you are out of your element here which is risky. To answer your question, you have a few options:
|
||
| 0 | |||
Possibly linux
lemmy.zip
possiblylinux127@lemmy.zipJoined: 2023-06-26 |
[deleted]
Skip NFS and ftp as they cause more problems than they solve |
||
| 0 | |||
Possibly linux
lemmy.zip
possiblylinux127@lemmy.zipJoined: 2023-06-26 |
A cloud solution is indeed an option, however not a very palatable one. The main problem with a cloud solution would be pricing. From what I can see, you can get 1TB for about 10€/month. We'd need substantially more than that. The cost is feasible and not excessive, but frankly it's a bit of a joke to have to use someone else's server when we have our own. You want to bypass system level access...
Don't bypass your organizational policies |
||
| 7 | |||
Possibly linux
lemmy.zip
possiblylinux127@lemmy.zipJoined: 2023-06-26 |
None of these programs allow overriding Linux permissions. You can not recline/rsync in another user directory. You can not sftp/scp in another user directory. My problem is not about transferring data across different systems, but rather accessing data on one system through different users. All users should be able to read and modify the files.
You can't override user permissions. If you could they would be useless |
||
| 2 | |||
|
warmaster
lemmy.world
warmaster@lemmy.world Joined: 2023-06-16 |
I think he meant self-hosting Opencloud
Yes. That's what I recommended. Self-host whatever middleman software. Opencloud, WebDAV, S3, FTP, anything he puts in the middle can accomplish what he wants. |
||
| 3 | |||
|
warmaster
lemmy.world
warmaster@lemmy.world Joined: 2023-06-16 |
A cloud solution is indeed an option, however not a very palatable one. The main problem with a cloud solution would be pricing. From what I can see, you can get 1TB for about 10€/month. We'd need substantially more than that. The cost is feasible and not excessive, but frankly it's a bit of a joke to have to use someone else's server when we have our own. You want to bypass system level access...
I recommended Self-hosting whatever middleman software. Opencloud, WebDAV, S3, FTP, anything you put in the middle can accomplish what you want. |
||
| 1 | |||
|
blackbirdbiryani
lemmy.world
blackbirdbiryani@lemmy.world Joined: 2023-07-14 |
I'm in a similar position as you. Our lab has a partition on HPC but i need a way to quasi-administrate other lab members without truly having root access. What I found works is to have a shared bashrc script (which also contains useful common aliases and env variables) and get all your users to source it (in their own bashrc files). Set the umask within the shared bashrc file. Set certain folders to read only (for common references, e.g. genomes) if you don't want people messing with shares resources. However, I've found that it's only worth trying to admin shared resources and large datasets, otherwise let everyone junk their home folder with their own analyses. If the home folder is size limited, create a user's folder in the scratch partition and let people store their junk there however they want. Just routinely check that nobody is abusing your storage quota. EDIT: absolutely under no circumstances give people write access to raw shared data on hpc. I guarantee some idiot will edit it and mess it up for everyone. If people need to rename files they can learn how to symlink them. |
||
| 3 | |||
|
biber
feddit.org
biber@feddit.org Joined: 2024-06-23 |
I'm in a similar position as you. Our lab has a partition on HPC but i need a way to quasi-administrate other lab members without truly having root access. What I found works is to have a shared bashrc script (which also contains useful common aliases and env variables) and get all your users to source it (in their own bashrc files). Set the umask within the shared bashrc file. Set certain fold...
This is a pretty good idea! In addition, I recommend having all data e.g. as a (private)datalad archive synchronized to Dataverse, osf, figshare or wherever - edits are versioned then |
||
| 2 | |||
|
poinck
lemmy.world
poinck@lemmy.world Joined: 2025-07-01 |
[deleted]
|
||
| 1 | |||
|
ranzispa
mander.xyz
ranzispa@mander.xyz Joined: 2025-10-18 |
The fact that you’re sharing this internal policy stuff so openly is definitely a red flag.
I don't know what your background is, this is mostly hindrances when doing research. You may see it as a red flag, myself I have this very clear that I do not want to follow their bullshit. If I'm losing my job so be It, However you may be misunderstanding: I am not going to lose my job over this, nobody is getting hurt, and I am sharing a bureaucratic process that is fairly common over here in public institutions. I am afraid you come from a very different background and you are misunderstanding my situation. |
||
| 1 | |||
|
ranzispa
mander.xyz
ranzispa@mander.xyz Joined: 2025-10-18 |
I would hire someone who knows what they are doing. It sounds like you are out of your element here which is risky. To answer your question, you have a few options: Samba Samba is just a SMB server. If you have a local active directory setup use this. SCP this just copies files over a ssh connection Rsync this performs a sync of one directory to the other. It can run over SCP Unison like rsync ...
Thank you for the reply and for trying to help out. You may have misunderstood the question: don't worry it is ok.
I am ok, it is not risky do not worry. Judging from your answer I'd say I have a bit more experience than you do. |
||
| 2 | |||
|
ranzispa
mander.xyz
ranzispa@mander.xyz Joined: 2025-10-18 |
Don't bypass your organizational policies
I am not bypassing any policy: the HPC Is there to collaborate on and data can be shared. If you have anything actually useful go ahead, otherwise don't worry that I know better than you do what I should or should not do. |
||
| 1 | |||
|
ranzispa
mander.xyz
ranzispa@mander.xyz Joined: 2025-10-18 |
You can't override user permissions. If you could they would be useless
I don't want to override user permissions, I want it to be easy that users can agree to a directory being shared and in such directory group permissions get overridden by some laxer restrictions through explicit authorization of the user. |
||
| 1 | |||
|
ranzispa
mander.xyz
ranzispa@mander.xyz Joined: 2025-10-18 |
Yes. That's what I recommended. Self-host whatever middleman software. Opencloud, WebDAV, S3, FTP, anything he puts in the middle can accomplish what he wants.
I see! Well, I currently do not have another server that has so much storage that we could use for thi purpose. Maybe in the future and that will solve a bunch of problems, this is only one of them. We do have a storage server, but that is local only and backup only: not going to open it to the internet. It is indeed a solution. What is absurd to me is to have to consider such a solution that requires two servers. |
||
| 1 | |||
|
ranzispa
mander.xyz
ranzispa@mander.xyz Joined: 2025-10-18 |
I'm in a similar position as you. Our lab has a partition on HPC but i need a way to quasi-administrate other lab members without truly having root access. What I found works is to have a shared bashrc script (which also contains useful common aliases and env variables) and get all your users to source it (in their own bashrc files). Set the umask within the shared bashrc file. Set certain fold...
Thanks, this is a great idea! I can see you have been doing this for a long time and you're talking from experience. I can see how you could be worried about storage quota, luckily I don't have that many people to worry about. But it is funny you mention it as I could really see someone stashing a few conda environments in there just because they finished their inside quota... |
||
| 1 | |||
|
ranzispa
mander.xyz
ranzispa@mander.xyz Joined: 2025-10-18 |
This is a pretty good idea! In addition, I recommend having all data e.g. as a (private)datalad archive synchronized to Dataverse, osf, figshare or wherever - edits are versioned then
I am generally using DVC to version data, are those better options? |
||
| 1 | |||
|
ranzispa
mander.xyz
ranzispa@mander.xyz Joined: 2025-10-18 |
[deleted]
This is a good idea and something I may setup once we setup our own compute server. Just throwing it out there, I'm not sure if that fits your use case. |
||
| 2 | |||
|
warmaster
lemmy.world
warmaster@lemmy.world Joined: 2023-06-16 |
I see! Well, I currently do not have another server that has so much storage that we could use for thi purpose. Maybe in the future and that will solve a bunch of problems, this is only one of them. We do have a storage server, but that is local only and backup only: not going to open it to the internet. It is indeed a solution. What is absurd to me is to have to consider such a solution that r...
You don't need additional storage. It's one program you need to set up. |
||
| 3 | |||
|
ranzispa
mander.xyz
ranzispa@mander.xyz Joined: 2025-10-18 |
You don't need additional storage. It's one program you need to set up.
It is not something I can setup on that server, I would need a separate server to set up something of that kind. |
||
| 1 | |||
chris
l.roofo.cc
chris@l.roofo.ccJoined: 2023-06-14 |
You can set acls on directories that get applied recursively. This makes ist possible to have all files be the correct permission. I am on the go right now but you should look into setfacl. It's been a while but I am pretty sure that worked. That way you should even be able to say which groups or users can do what with granularity. |
||
| 5 | |||
|
warmaster
lemmy.world
warmaster@lemmy.world Joined: 2023-06-16 |
It is not something I can setup on that server, I would need a separate server to set up something of that kind.
If it's a compliance problem, I get it. From a practical standpoint, FTP or WebDAV don't require installing anything. |
||
| 2 | |||
|
sem
piefed.blahaj.zone
sem@piefed.blahaj.zone Joined: 2025-09-04 |
Wow, that group +s seems exactly what I'm looking for! That actually looks like the clean solution I was looking for. I'll test it out and report back, I'll have to wait on Monday for the colleagues to be back in the server, but it seems very promising. Thank you very much!
Can you check back in here and let us know if it worked? |
||
| 2 | |||
|
biber
feddit.org
biber@feddit.org Joined: 2024-06-23 |
I am generally using DVC to version data, are those better options?
I don't know, seems to be quite similar :) |
||
| 1 | |||
Possibly linux
lemmy.zip
possiblylinux127@lemmy.zipJoined: 2023-06-26 |
I don't want to override user permissions, I want it to be easy that users can agree to a directory being shared and in such directory group permissions get overridden by some laxer restrictions through explicit authorization of the user. I'd like for this to exist. This would not make permissions useless, just allow for an easy way to share files across users on a filesystem.
That is not how permissions work |
||
| 2 | |||
| Post Reply |
Page 1 of 2
Goto page
1, 2
Next
Last »
Back to top |