Skip to content
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

Cannot set permissions via the chmod or git init --share=0666 #379

Closed
ghost opened this issue Sep 11, 2015 · 1 comment
Closed

Cannot set permissions via the chmod or git init --share=0666 #379

ghost opened this issue Sep 11, 2015 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented Sep 11, 2015

Windows 7 x64; Git for Windows v.2.5.2; I work without the admin permissions.

The chmod and --shared do nothing in the Git Bash for Windows:

Developer@BUSHCOMP MINGW64 /d/temp/000
$ git --version
git version 2.5.2.windows.1

Developer@BUSHCOMP MINGW64 /d/temp/000
$ ls -l readme.txt
-rw-r--r-- 1 Developer Domain users 0 Sep 10 16:44 readme.txt

Developer@BUSHCOMP MINGW64 /d/temp/000
$ chmod a+rw readme.txt

Developer@BUSHCOMP MINGW64 /d/temp/000
$ ls -l readme.txt
-rw-r--r-- 1 Developer Domain users 0 Sep 10 16:44 readme.txt

Permissions of the readme.txt file wasn't changed.

Developer@BUSHCOMP MINGW64 /d/temp/000
$ chmod 666 readme.txt

Developer@BUSHCOMP MINGW64 /d/temp/000
$ ls -l readme.txt
-rw-r--r-- 1 Developer Domain users 0 Sep 10 16:44 readme.txt

Permissions of the readme.txt file wasn't changed again...

Ok, I try to use --shared=0666:

Developer@BUSHCOMP MINGW64 /d/temp/000/111
$ git init --shared=0666
Bare repository is initialized Git в D:/temp/000/111/.git/

Developer@BUSHCOMP MINGW64 /d/temp/000/111 (master)
$ echo 2>test.txt

Developer@BUSHCOMP MINGW64 /d/temp/000/111 (master)
$ git add test.txt

Developer@BUSHCOMP MINGW64 /d/temp/000/111 (master)
$ git commit -m "Test"
[master (root commit) 0d01d64] Test
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 test.txt

Developer@BUSHCOMP MINGW64 /d/temp/000/111 (master)
$ ls -l test.txt
-rw-r--r-- 1 Developer Domain users 0 Sep 10 17:10 test.txt

At this case I see -rw-r--r-- instead of -rw-rw-rw- also.

ACL:
Alt Text

@dscho
Copy link
Member

dscho commented Sep 11, 2015

POSIX-style permissions (i.e. read/write/executable flags for user/group/others) are inherently incompatible with Windows' Access Control Lists (which are much more fine-grained).

Acknowledging this, Git itself only has the notion of an executable bit; it ignores everything else.

@dscho dscho closed this as completed Sep 11, 2015
@dscho dscho added the wontfix label Sep 11, 2015
jeffhostetler pushed a commit to jeffhostetler/git that referenced this issue Jun 21, 2021
…ith-gvfs

vfs: disable the built-in FSMonitor
jeffhostetler pushed a commit to jeffhostetler/git that referenced this issue Aug 18, 2021
…ith-gvfs

vfs: disable the built-in FSMonitor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant