git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
FRFairuzan Roslan <fairuzan.roslan@gmail.com>
Date
Feb 18, 2015, 13:47 UTC
Message-ID
<E28114B6-86FA-4F4A-9D5F-BFC03B9D79B8@gmail.com>
In-Reply-To
<vpq61azab52.fsf@anie.imag.fr>
Show 15 quoted lines
> On Feb 18, 2015, at 4:15 PM, Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> 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

Previous: Matthieu MoyNext: Matthieu Moy
Message 12 of 22 in “odb_mkstemp's 0444 permission broke write/delete access on AFP”
  1. Fairuzan RoslanFeb 16, 2015
  2. Matthieu MoyFeb 16, 2015
  3. Fairuzan RoslanFeb 16, 2015
  4. Matthieu MoyFeb 16, 2015
  5. Fairuzan RoslanFeb 17, 2015
  6. Torsten BögershausenFeb 17, 2015
  7. Fairuzan RoslanFeb 17, 2015
  8. Matthieu MoyFeb 17, 2015
  9. Fairuzan RoslanFeb 17, 2015
  10. Torsten BögershausenFeb 17, 2015
  11. Matthieu MoyFeb 18, 2015
  12. Fairuzan RoslanFeb 18, 2015
  13. Matthieu MoyFeb 18, 2015
  14. Fairuzan RoslanFeb 18, 2015
  15. Junio C HamanoFeb 17, 2015
  16. Matthieu MoyFeb 18, 2015
  17. Junio C HamanoFeb 18, 2015
  18. Junio C HamanoFeb 18, 2015
  19. brian m. carlsonFeb 19, 2015
  20. Matthieu MoyFeb 20, 2015
  21. Junio C HamanoFeb 16, 2015
  22. Torsten BögershausenFeb 16, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.