Skip to content

Set correct permissions for users in a group automatically #2287

@Marcelo00

Description

@Marcelo00

In a shared cache directory set up, dvc fails to set the correct permissions for the folders in the cache directory. For instance, a user X executes a dvc command - e.g dvc pull which sets the permission of a directory to rwxr-xr-x. A different user Y who is in the same group and is working with the same cache directory, is not able to delete files in this specific directory as the permission forbids it. Therefore, the user Y gets a Operation is not permitted error.

With this context, a additional parameter in the the cache config like git config core.sharedRepository group (https://git-scm.com/docs/git-config) which addresses this problem, may a suitable solution for a working shared cache directory set up.

For a more detailed overview see the conversation in the discord channel: https://discordapp.com/channels/485586884165107732/485596304961962003

Metadata

Metadata

Assignees

Labels

bugDid we break something?

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions