Copying files dont follow ACL rules

Glauco Hass <[email protected]> Fri, 27 Jul 2007 02:29:46 -0300
Newsgroups gmane.linux.file-systems.acl.devel
Message-ID <[email protected]>
Hi, friends.
I was searching on the net for about a week, with no luck, that's why I 
subscribed here.

I'm having trouble setting ACL in a shared folder.

If I do this:

#setfacl -m d:u::rwx,d:g:share:rwx,d:o:r,d:m:rwx dir

the result of

#getfacl dir

will be

# file: dir
# owner: me
# group: me
user::rwx
group::rwx
other::r-x
default:user::rwx
default:group::rwx
default:group:share:rwx
default:mask::rwx
default:other::r--

what is exactly what I want.
But if I copy any file into dir, the result of getfacl will not have the 
expected result, as below:

# file: dir/copied_file
# owner: me
# group: me
user::rwx
group::rwx                      #effective:---
group:share:rwx      #effective:---
mask::---
other::---

My /etc/profile has umask 002, because group must have full access.
But "mask::---" is wrong, setting the user and share groups with 
absolutely no access to the file. What is wrong here?

As "dir" will receive photos from a digital camera and all users must 
see them, I am in trouble.

Thanks in advance and sorry my english.

Glauco
_______________________________________________
acl-devel mailing list
[email protected]
http://acl.bestbits.at/mailman/listinfo/acl-devel