Difference between revisions of "AFP"

From Alessandro's Wiki
Line 1: Line 1:
this is the protocol used for network file sharing in Apple systems (at leas for the latest ones)
this is the protocol used for network file sharing in Apple systems (at leas for the latest ones)




== HOWTO ==
= server settings =
 


=== user permissions ===
== user permissions ==


* in /etc/netatalk/AppleVolumes.default we can set the file permissions to use for each service.
* in /etc/netatalk/AppleVolumes.default we can set the file permissions to use for each service.
Line 21: Line 19:
  /directory/shared/ "Awesome Share" options:usedots,upriv,noadouble,nohex cnidscheme:cdb umask:002 dperm:0775 fperm:0664
  /directory/shared/ "Awesome Share" options:usedots,upriv,noadouble,nohex cnidscheme:cdb umask:002 dperm:0775 fperm:0664


=== veto files ===
== veto files ==
* this option hides the objects specified between slashes
veto: recycled/desktop.ini/Folder Settings/
 
= problem solving =
 
== Finder '''"stucks"''' on connect to share ==
* in the log you'll see the server stopping after a message like this:
''''' afpd[]: Setting uid/gid to 100/100'''''


veto: recycled/desktop.ini/Folder.htt/Folder Settings/
* the solution in my case was:
** stop the server
** remove the Finder database file '''.AppleDB'''
** restart server.

Revision as of 17:51, 7 October 2011

this is the protocol used for network file sharing in Apple systems (at leas for the latest ones)


server settings

user permissions

  • in /etc/netatalk/AppleVolumes.default we can set the file permissions to use for each service.
    • example: we have a network with an all-users group and we want them to be able to overwrite each-other files. Others can read:
      • umask:002
      • dperm:0775
      • fperm:0664
    • default linux behaviour, with read only to group users.
      • umask:022
      • dperm:0755
      • fperm:0644
  • the complete line:
/directory/shared/ "Awesome Share" options:usedots,upriv,noadouble,nohex cnidscheme:cdb umask:002 dperm:0775 fperm:0664

veto files

  • this option hides the objects specified between slashes
veto: recycled/desktop.ini/Folder Settings/

problem solving

Finder "stucks" on connect to share

  • in the log you'll see the server stopping after a message like this:

afpd[]: Setting uid/gid to 100/100

  • the solution in my case was:
    • stop the server
    • remove the Finder database file .AppleDB
    • restart server.