Re: odb_mkstemp's 0444 permission broke write/delete access on AFP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On Feb 18, 2015, at 4:15 PM, Matthieu Moy <Matthieu.Moy@xxxxxxxxxxxxxxx> wrote:
> 
> And now I'm starting to wonder whether other people do have the same
> issue. Sure, googling "Git AFP" shows a lot of people having problems
> with Git and AFP, but are they really the same problem?
> 
> I googled 'git afp "unable to unlink"', and all results except one point
> to this thread:
> 
> https://www.google.com/search?q=git+afp+%22warning%3A+unable+to+unlink%22
> 
> The only one which doesn't actually does not mention afp.
> 
> Fairuzan: are you sure you're not the only one having the issue? Can you
> give more info on your system (OS version client and server side, …)?

No I don’t think I’m the only one with the permission issue here but I’m sure many people prefer using smb over afp


Client: OS X 10.9 - 10.10.2
git client: git version 1.9.3 (Apple Git-50) and git version 2.2.1

Server : Linux 3.2.40 (Synology DSM 5.1)
AFP : Netatalk afpd 3.1.1

From what I have tested whenever a file’s permission set to read-only on the AFP shares a user immutable flag were set as well hence why any action such as unlink or rename failed.

$ ls -laO
total 0
drwxr-xr-x  1 user  staff  - 264 Feb 18 21:31 .
drwx------  1 user  staff  - 264 Feb 18 21:31 ..
-rw-r--r--  1 user  staff  -   0 Feb 18 21:31 testfile
$ chmod 0444 testfile; ls -laO
total 0
drwxr-xr-x  1 user  staff  -    264 Feb 18 21:31 .
drwx------  1 user  staff  -    264 Feb 18 21:32 ..
-r--r--r--  1 user  staff  uchg   0 Feb 18 21:31 testfile

I believe this to stop a read-only file to be modified by the user in  Netatalk AFPD.

$ chmod 0644 testfile; ls -laO
total 0
drwxr-xr-x  1 user  staff  - 264 Feb 18 21:32 .
drwx------  1 user  staff  - 264 Feb 18 21:43 ..
-rw-r--r--  1 user  staff  -   0 Feb 18 21:31 testfile

Changing the permission to read-write will remove the user immutable flag.

Regards,
Fairuzan

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]