-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request: Change group on file #200
Comments
Hi Jens, Although I believe I understand the motivation here, I'm not sure about changing ownership of an existing file. That normally requires superuser privileges; e.g., Instead, perhaps another way of tackling this would be to allow a user to control the group-ownership when uploading files. Existing files could be handled by the admin as a one-off corrective behaviour. Does this sound reasonable alternative? |
Exactly. You can't change ownership of a file as a regular user. I'm asking for a way to change the group on the file (when the user belongs to several groups). Ownership must be modified by the dCache superuser on request. In the typical case we have set "g+s" on the directory which makes the uploaded files inherit the group of the directory. This works as intended in most cases, but if the user, for example, moves an entire directory tree between to project directories the destination files will belong to the wrong group (and thus accounted on the wrong project). I don't really know how this could be implemented in the GUI. I haven't given it that much though. Changing a single file or directory might be implemented by some context menu with a list of possible groups, but what about recursive stuff and multiple (thousands) of files. Perhaps that is another request to the dCache super user? |
Just to double-check I understand the use-case here correctly:
Does this describe the situation? |
I think the description is correct, but perhaps the conclusion misses the mark a bit. I don't think automatically modifying the GID on a file when it's moved is a good idea. That is not how a regular file system work and I think there is some value in trying to make dCache appear as one as far as it's possible. (As a side note, we do map each user to her personal UID (jens) and GID (jens), which is different from the project directory GID (testproj). The PI that requested the storage owns the project directory but all files in it has the UID of of the creator and the GID of the project. In general the permissions on the project directory is set to 2770 to make it possible for all users in the project to read and write all files and to ensure that the group ownership of the file is set correctly.) So a method to change the GID between "jens" and "testproj" is what I'm looking for. For example when I'm moving files from one project directory to another. |
OK, good. The "(somehow)" was meant to indicate that the desired behaviour could happen in many different ways. For example:
Another point, just to be clear, this ticket is specifically about user-interaction; i.e., "what the user sees". It has no direct impact on how dCache-view is interacting with dCache. How this is implemented is a separate issue. Finally, the other (big) question is about consistency: what should happen if the files/directories are moved by some other means; e.g., through the WebDAV, FTP, NFS, etc. Isn't there a similar requirement there? We would need to support a chown-like command where users can change their group-ownership throughout dCache. |
Finally, the other (big) question is about consistency: what should
happen if the files/directories are moved by some other means; e.g.,
through the WebDAV, FTP, NFS, etc. Isn't there a similar requirement
there? We would need to support a chown-like command where users can
change their group-ownership throughout dCache
Yes. It's the same thing with other interfaces. In fact, perhaps I want
to solve a problem in dcache-view that happens due to interactions done
by other means. It has been a long standing issue that seeing and
modifying groups and permissions has been difficult. Especially since
this might not even be exposed in other protocols and clients. The
trouble is of course that if the protocol doesn't support it (chgrp,
chmod) or the clients doesn't support it, it's a steep hill to climb to
get it in there and deployed everywhere.
/jens
|
Motivation: See dCache/dcache-view#200 Modification: Add 'chgrp' action, using existing support in PnfsManager. Update User Guide to describe new functionality. Result: Frontend user can now request a change in a file's group-ownership. Target: master Requires-notes: yes Requires-book: no Closes: #5260 Patch: https://rb.dcache.org/r/12652/ Acked-by: Tigran Mkrtchyan Acked-by: Albert Rossi
We are trying to set up dcache-view as a general file access method for Swestore. There are a few things in the web GUI that we miss.
It would be very handy if a user that belongs to multiple groups would be able to change group on
a file or directory the user owns (you can’t change your ownership to someone else). If this is done on a directory, it would be nice if it would be recursive.
The text was updated successfully, but these errors were encountered: