aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/assistant_doesn__39__t_sync_file_permissions.mdwn
blob: 3acb402bf89653e6f1a91582cd8f89a9ed2c93f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
### Please describe the problem.

The assistant does not sync file permissions so if you set something as executable it won't be set the same on the other repositories.

### What steps will reproduce the problem?

On the first host:

[[!format sh """
$ echo -e '#!/bin/sh\necho "Hello World!"' > testscript
$ chmod ugo+x testscript 
$ ./testscript 
Hello World!
$ ls -l
total 4
-rwxr-xr-x 1 pedrocr pedrocr 30 May 31 20:00 testscript
"""]]

And on the second host:

[[!format sh """
$ ls -l
total 4
-rw-r--r-- 1 pedrocr pedrocr 30 May 31 20:00 testscript
$ ./testscript
bash: ./testscript: Permission denied
"""]]

### What version of git-annex are you using? On what operating system?

[[!format sh """
$ git annex version
git-annex version: 4.20130516.1
build flags: Assistant Webapp Pairing Testsuite S3 WebDAV Inotify DBus XMPP
local repository version: 4
default repository version: 3
supported repository versions: 3 4
upgrade supported from repository versions: 0 1 2
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 12.04.2 LTS
Release:	12.04
Codename:	precise
"""]]