Mar 14 17:13:38.642730 afpd[20883] {acl.c:111} (E:Default): stat(name, &st) failed: No such file or directory
Mar 14 17:13:38.642839 afpd[20883] {vfs.c:452} (E:Default): remove_acl_vfs(vol->ad_path(path, ADFLAGS_HF)) failed: No such file or directory
Mar 14 17:13:38.642868 afpd[20883] {acls.c:1689} (E:AFPDaemon): afp_setacl: error from remove_acl
# /usr/local/netatalk/sbin/afpd -V afpd 3.0.3dev - Apple Filing Protocol (AFP) daemon of Netatalk This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Please see the file COPYING for further information and details. afpd has been compiled with support for these features: AFP versions: 2.2 3.0 3.1 3.2 3.3 CNID backends: dbd last tdb Zeroconf support: Avahi TCP wrappers support: Yes Quota support: Yes Admin group support: Yes Valid shell checks: Yes cracklib support: Yes EA support: ad | sys ACL support: Yes LDAP support: Yes D-Bus support: Yes DTrace probes: Yes afp.conf: /usr/local/netatalk/etc/afp.conf extmap.conf: /usr/local/netatalk/etc/extmap.conf state directory: /usr/local/netatalk/var/netatalk/ afp_signature.conf: /usr/local/netatalk/var/netatalk/afp_signature.conf afp_voluuid.conf: /usr/local/netatalk/var/netatalk/afp_voluuid.conf UAM search path: /usr/local/netatalk/lib/netatalk// Server messages path: /usr/local/netatalk/var/netatalk/msg/
# df . Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/VolGroup-lv_root 7781012 6752868 632880 92% / # mount /dev/mapper/VolGroup-lv_root on / type ext4 (rw,user_xattr,acl) # pwd /home/netatalktest # ls -l total 10244 -rwxrwxr-x 1 user1 netatalk 10485760 Mar 14 16:42 10m
% git clone https://github.com/franklahm/Netatalk.git % cd Netatalk % git checkout -b develop origin/develop % git log commit 8813338fe4a13634917fe6426ae97f5b14df54e2 Author: Frank Lahm <franklahm@googlemail.com> Date: Mon Mar 11 17:19:28 2013 +0100 Permissions of ._ AppleDouble rfork after conversion from v2 to ea. Fixes bug #505. % ./bootstrap % ./configure --with-pam-confdir=/etc/pam.d \ --prefix=/usr/local/netatalk \ --with-cracklib \ --with-dtrace \ --with-init-style=redhat-sysv % make # make install
[Global] uam list = uams_dhx2.so ldap auth method = none ldap server = 192.168.XX.XX ldap auth dn = uid=diradmin,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 ea = sys file perm = 0775 directory perm = 0775 search db = yes
# set up Authentication configuration User Information [*] LDAP Authentication [*] Use LDAP Authentication LDAP Settings [ ] Use TLS Server: ldap://192.168.XX.XX Base DN: dc=testserver,dc=example,dc=com
# getent passwd | grep user user1:x:1025:1026:user1:/Network/Servers/testserver.example.com/Users/user1:/bin/bash user2:x:1026:1026:user2:/Network/Servers/testserver.example.com/Users/user2: # getent group | grep netatalk netatalk:*:1026:
# ./afpldaptest -u user1 Start parsing afp.conf Finished parsing afp.conf afp.conf is ok. Using anonymous bind. Searching user: user1 User: user1 ==> UUID: 4760199C-D680-4A02-8C73-C273F7C5710D Start parsing afp.conf Finished parsing afp.conf afp.conf is ok. Using anonymous bind. Searching user: user2 User: user2 ==> UUID: F1B075D8-4F4C-44AB-8F4D-27F3B8ABA3CD # ./afpldaptest -g netatalk Start parsing afp.conf Finished parsing afp.conf afp.conf is ok. Using anonymous bind. Searching group: netatalk Group: netatalk ==> UUID: 917ED05B-4EA8-40C0-8D0E-819AC2D5F4E1
# ./afpldaptest -u hsato2 Start parsing afp.conf Finished parsing afp.conf afp.conf is ok. Using anonymous bind. Searching user: hsato2 User: hsato2 ==> UUID: FFFFEEEE-DDDD-CCCC-BBBB-AAAA000001F5
# mkdir /home/netatalktest # chown -R user1:netatalk /home/netatalktest # chmod 775 /home/netatalktest/
Possible fix [fda81828af6cecf33d82ea0c50f3bbe123c29b02] in branch 'acls-on-adouble'.
Related
Commit: <Commit _id='fda81828af6cecf33d82ea0c50f3bbe123c29b02' tree_id='e22e449d15570979f8050c29b97bb14486cbc51e' committed=I{'date': datetime.datetime(2013, 3, 14, 18, 54, 52), 'email': 'franklahm@googlemail.com', 'name': 'Frank Lahm'} authored=I{'date': datetime.datetime(2013, 3, 14, 18, 54, 52), 'email': 'franklahm@googlemail.com', 'name': 'Frank Lahm'} message="Setting POSIX ACLs on Linux\n\nThe VFS module for setting ACLs on Linux returned an error when\ntry to set an ACL for a file that doesn't have a ressource fork.\n\nFix this by checking for ENOENT errno and then returning with 0\nfrom the VFS stack.\n" parent_ids=I['2311c1e2f37a20e67782624e386093d6eaa6373c'] child_ids=I[] repo_ids=I[ObjectId('503b705bfd48f843173d5fd3')]>
Last edit: Mike 2013-03-15
Hello developers.
I've tested (Setting POSIX ACLs on Linux:
fda81828af6cecf33d82ea0c50f3bbe123c29b02)
and I still got the following error.
Please review the following patch.
And also I've got the following error.
I'll report later about this.
I've pasted Mike's post.
I'm not sure, but I can't read his message on this page.
Getting the same error when trying to copy certain files from an OS X Client to the Netatalk share being hosted on Linux:
Here is my afp.conf:
;
; Netatalk 3.x configuration file
;
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.
Hello developers.
I've tested (Setting POSIX ACLs on Linux:
fda81828af6cecf33d82ea0c50f3bbe123c29b02)
and I still got the following error.
Mar 16 07:20:25.113547 afpd[2122] {acl.c:111} (E:Default): stat(name,
&st) failed: No such file or directory
Please review the following patch.
And also I've got the following error.
Mar 16 07:30:14.021026 afpd[4765] {ad_flush.c:298} (E:Default):
sys_fsetxattr(ad_data_fileno(ad), AD_EA_META, ad->ad_data,
AD_DATASZ_EA, 0) failed: Permission denied
I'll report later about this.
diff --git a/libatalk/vfs/acl.c b/libatalk/vfs/acl.c
index c936f17..4d5c174 100644
--- a/libatalk/vfs/acl.c
+++ b/libatalk/vfs/acl.c
@@ -108,7 +108,7 @@ int remove_acl_vfs(const char *name)
if (S_ISDIR(st.st_mode)) {
EC_NULL_LOG_ERR(acl = acl_init(0), AFPERR_MISC);
EC_ZERO_LOG_ERR(acl_set_file(name, ACL_TYPE_DEFAULT, acl),
AFPERR_MISC);
@@ -129,6 +129,8 @@ int remove_acl_vfs(const char *name)
EC_ZERO_LOG_ERR(acl_set_file(name, ACL_TYPE_ACCESS, acl), AFPERR_MISC);
EC_CLEANUP:
+ if (errno == ENOENT)
+ EC_STATUS(0);
if (acl) acl_free(acl);
--
Hiroyuki Sato
Last edit: Ralph Böhme 2013-03-17
I've pulled your changes and did some basic rewrite: the ACL funs were still assuming adouble v2 layour. I've changed that to now assume adouble ea.
Rebased branch with new commit: [63533338753b46c35e2ed3426b058162855247e4].
Related
Commit: <Commit _id='63533338753b46c35e2ed3426b058162855247e4' tree_id='e51c3c8f9bca4879a7850ad58225735ec71d37ed' committed=I{'date': datetime.datetime(2013, 3, 17, 13, 7, 8), 'email': 'franklahm@googlemail.com', 'name': 'Frank Lahm'} authored=I{'date': datetime.datetime(2013, 3, 14, 18, 54, 52), 'email': 'franklahm@googlemail.com', 'name': 'Frank Lahm'} message="Setting POSIX ACLs on Linux\n\nThe VFS module for setting ACLs on Linux returned an error when\ntry to set an ACL for a file that doesn't have a ressource fork.\n\nFix this by checking for ENOENT errno and then returning with 0\nfrom the VFS stack.\n" parent_ids=I['2311c1e2f37a20e67782624e386093d6eaa6373c'] child_ids=I[] repo_ids=I[ObjectId('503b705bfd48f843173d5fd3')]>
Thanks!!
I'll check it later. please wait.
Hello Ralph and Frank.
I've tested. It works fine. Thanks!!.
Could you please tell me how to close this ticket?
I'm waiting for feedback from a customer who's testing whether this fixes the same problem he's experiencing on Solaris with ZFS. So let's keep this ticket open til then and til the branch is merge to develop (it is not yet).
Hello Ralph.
Thank you for your reply. OK Thanks.
By the way, the only administrator can close the ticket?
Best regards.
Merged rebased fix in [b9a9ac3498b7ae48c11b2bec6be1aff810cd37d2].
Related
Commit: <Commit _id='b9a9ac3498b7ae48c11b2bec6be1aff810cd37d2' tree_id='6b05b3b05c047e25f05fcae88db58672b4a58206' committed=I{'date': datetime.datetime(2013, 3, 22, 12, 13, 36), 'email': 'sloowfranklin@gmail.com', 'name': 'Ralph Boehme'} authored=I{'date': datetime.datetime(2013, 3, 14, 18, 54, 52), 'email': 'franklahm@googlemail.com', 'name': 'Frank Lahm'} message="Setting POSIX ACLs on Linux\n\nThe VFS module for setting ACLs on Linux returned an error when\ntry to set an ACL for a file that doesn't have a ressource fork.\n\nFix this by checking for ENOENT errno and then returning with 0\nfrom the VFS stack.\n" parent_ids=I['2297286a5be343d5a3b1838453f84612be1f7a9e'] child_ids=I['dd339062ffd3e02df0cf86f2d3e571268cb769d9', 'c608237210fbed8516b8426ef8ae804773f0cb25'] repo_ids=I[ObjectId('503b705bfd48f843173d5fd3'), ObjectId('5910acbc2cd81052b64b3380'), ObjectId('5e503de0dd85f4654ba114ee'), ObjectId('5e828a7a9d8bdd372301c28f')]>