Menu

#497 afp, force use of cnid for shares

v0.69x
open
nobody
5
2012-10-28
2009-01-21
No

Once working afp shares would fail for no apparent reason.
Solution: for the use of a cnid @ /var/db/afpcd, et voila!

Modify the /etc/rc.d/afpd
-o "options:usedots allow:@admin" \ to
-o "options:usedots,upriv dbpath:"/var/db/afpcdb" cnidscheme:cdb allow:@admin" \

Discussion

  • Volker

    Volker - 2009-01-23

    Hi,

    you know that everything can be configured via the 'Services|AFP|Share|Add' page if needed?

    Regards
    Volker

     
  • Gabriel Beauchemin

    yes, but I'm talking here about the default system afp config (ie: everything in /mnt for group @admin), which is usually enough for most afp uses. I did add one specific share for myself, but that the only one that would work, since I specified the cnid properties.

     
  • Volker

    Volker - 2009-01-26

    Hmmm, i have looked into the docs and found:

    cnidscheme:[backend]
    set the CNID backend to be used for the volume, default is [cdb] available schemes: [cdb,dbd,last]

    So i think using cnidscheme:cdb is not necessary because it is the default setting which is used when cnidscheme is not set.

    Anyway, what do you think should be the default values? upriv = true instead of false? dppath is not so good because this should be set by the user itself.

    Regards
    Volker

     
  • Gabriel Beauchemin

    Agreed for the dbpath, it should be configurable somehow (maybe a single global pref to be used by all afp shares (system and user defined).

    For upriv=true, since my accesses are done with at least OSX 10.4 machines (and also as a time machine share), this is the correct thing todo.

    Great work!
    Gabriel

     

Log in to post a comment.