#507 afp_setacl error on copy

open
nobody
None
1
2014-08-21
2013-03-15
Mike
No

Getting this error when trying to copy certain files from an OS X Client to a Netatalk share being hosted on Linux server:

Mar 15 12:32:45.381437 afpd[7378] {vfs.c:426} (E:Default): acl_set_file(vol->ad_path(path, ADFLAGS_HF), type, acl) failed: No such file or directory
Mar 15 12:32:45.381736 afpd[7378] {acls.c:1313} (E:Default): vol->vfs->vfs_acl(vol, name, ACL_TYPE_ACCESS, 0, access_acl) failed: No such file or directory
Mar 15 12:32:45.381986 afpd[7378] {acls.c:1710} (W:AFPDaemon): afp_setacl("/srv/afp/Groups/Folder/201212.ods"): error

Here is my afp.conf:

;
; Netatalk 3.x configuration file
;

[Global]
afp listen = XXX.XXX.XXX.XXX

ldap server = server.example.com
ldap auth method = none
ldap userbase = cn=users,dc=server,dc=example,dc=com
ldap userscope = one
ldap groupbase = cn=groups,dc=server,dc=example,dc=com
ldap groupscope = one
ldap uuid attr = apple-generateduid
ldap name attr = uid
ldap group attr = cn

k5 keytab = /etc/krb5.keytab
k5 service = afpserver
k5 realm = SERVER.EXAMPLE.COM

;uams_guest.so uams_clrtxt.so uams_randum.so uams_dhx.so uams_dhx2.so uam_gss.so
uam list = uams_gss.so uams_dhx2_passwd.so uams_guest.so
uam path = /opt/netatalk/lib/netatalk

log file = /opt/netatalk/var/log/afpd.log

[Homes]
basedir regex = /srv/afp/Users

[Groups]
path = /srv/afp/Groups
invalid users = nobody

I've compiled 3.0.2, 3.0.3(develop) and 3.0.3(acls-on-adouble) and receive the same error on each version.

1 Attachments

Discussion

  • Mike
    Mike
    2013-03-15

    One more note... when I copy the same file using the command line instead of the Finder I do not receive the error and the file is copied successfully.

     
  • Ralph Böhme
    Ralph Böhme
    2013-03-15

    Looks like this requires more engineering effort. As long as none of our customers is affected I can't spend more time on this one.

     
  • Mike
    Mike
    2013-03-20

    Also, if I recompile without ldap or acl support, I no longer receive this error.

     
  • hiroyuki sato
    hiroyuki sato
    2013-03-20

    Hello mike.

    Have you ever tried latest acls-on-adouble? (63533338753b46c35e2ed3426b058162855247e4)?

    If you never trieed it, please try it.
    If you already tried, please tell me how to reproduce it.

    I'll appreciate if you try with my configuration. because I can't setup Kerberos environment.

    Procedure

    git https://github.com/franklahm/Netatalk.git 
    cd Netatalk
    git checkout -b acls-on-adouble origin/acls-on-adouble
    ./bootstrap
    ./configure ..
    

    My test result

    I can copy a file with duplicate menu in Finder.
    and also I can copy local volume to netatalk volume without acl error.

    afpd.conf

    [Global]
    uam list = uams_dhx2.so
    ldap auth method = none
    ldap server = 192.168.XX.XX
    ldap auth dn = uid=diradmin,cn=users,dc=testserver,dc=example,dc=com
    ldap userbase = cn=users,dc=testserver,dc=example,dc=com
    ldap userscope = one
    ldap groupbase = cn=groups,dc=testserver,dc=example,dc=com
    ldap groupscope = one
    ldap uuid attr = apple-generateduid
    ldap name attr = uid
    ldap group attr = cn
    log file = /var/log/netatalk.log
    log level = default:info
    
    [testvolume]
    path = /home/netatalktest
    

    Best regards.

     
  • Mike
    Mike
    2013-03-23

    I will try acls-on-double with your configuration this weekend and see if that works. Thanks.

     
  • Steve
    Steve
    2014-04-08

    I think I have the same problem with a ealer version of netatalk 2.2 If I try and drag a file from the desktop to the shared drive I get this error but if I save a file from an app I don't get the error. Also if on the client I change the files group from staff to wheel I don't get the error.

    I hope this information helps.