Possible to apply sticky bit effects to a group rather than user?
2
votes
2
answers
170
views
I've been reading up on the "sticky bit" and it's _almost_ what i want… but not quite.
## Background
I'm managing a small JupyterHub instance with three courses and an instructor for each course. I'd like to have a folder on the server for file submissions.
Students (in the
jupyterhub-users
group) should be able to place their own files in the folder, but should not be able to move or view other files in the folder. Ideally, they should retain the ability to move or edit their own file.
Course instructors (in the jupyterhub-instructors
group) should have full access to files and folders in the submissions
folder so they can move their students submissions around as they see fit.
## My current understanding
I'm aware of the sticky bit… my problem with it is that it leaves the other instructors unable to modify the contents of the folder. Is there a version of the sticky bit that allows the _group_ to edit the folder? In that case, I can set ACLs such that jupyterhub-users
have rwx
permissions on the folder (allowing them to submit files to the folder and see the contents of it) and set the folder owner to root:jupyterhub-instructors
so the instructors can control the contents of the folder.
If all else fails, I suppose I can make subfolders in the submissions
folder owned by each instructor, then set the sticky bit on each subfolder. I'd like to avoid the future maintenance associate with that though, since _I'll_ have to be the one to remember to set up a new folder next semester for each instructor.
Asked by Dustin Wheeler
(123 rep)
Jan 24, 2025, 08:24 PM
Last activity: Jan 25, 2025, 01:06 AM
Last activity: Jan 25, 2025, 01:06 AM