]> dgit.raspbian.org Git - git-annex.git/commitdiff
(no commit message)
authorlucas.gautheron@09f1983993dfb0907d02ba268b3ca672f1dc3eea <lucasgautheron@web>
Wed, 18 Nov 2020 09:04:56 +0000 (09:04 +0000)
committeradmin <admin@branchable.com>
Wed, 18 Nov 2020 09:04:56 +0000 (09:04 +0000)
doc/forum/Updating_repository_permissions.mdwn [new file with mode: 0644]

diff --git a/doc/forum/Updating_repository_permissions.mdwn b/doc/forum/Updating_repository_permissions.mdwn
new file mode 100644 (file)
index 0000000..5d85f48
--- /dev/null
@@ -0,0 +1,18 @@
+Hello everyone,
+
+I would like to make a repository readable and writable over ssh for all users of a given group.
+
+A [quick search](https://stackoverflow.com/a/29646155) led me to the following procedure :
+
+```bash
+cd <project_dir>/                         # Enter inside the project directory
+git config core.sharedRepository group    # Update the git's config
+chgrp -R <group-name> .                   # Change files and directories' group
+chmod -R g+w .                            # Change permissions
+chmod g-w .git/objects/pack/*             # Git pack files should be immutable
+find -type d -exec chmod g+s {} +         # New files get directory's group id
+```
+
+My question is simple : is it safe to apply it to a git-annex repository as well ?
+
+Thank you for your help.