umask, ACL inheritance and setgid +s not working with copy from flash drive in nautilus
Rashkae
ubuntu at tigershaunt.com
Tue Sep 14 21:04:34 UTC 2010
Andy Graybeal wrote:
> On 09/14/2010 04:13 PM, Andy Graybeal wrote:
>>> Depends how you copy the file... in this case, it looks as though the
>>> copy tried to preserve the traditional Posix permissions and therefore
>>> ruined your mask. Was this copy done by nautilus? You need to copy
>>> files wihout preserving their original attributes (at least,
>>> permissions) if you want inheritance to work correctly.
>>>
>> I'm still processing what you said. The copy was done by nautilus. How
>> do I copy files without preserving their original attributes? I'm
>> sorry if this sounds like a lame question.
>>
>> -Andy
>>
> To follow up.. I just copied a file from my home folder (which doesn't
> have ACL's on it or anything) the file was set to a folder that does.
> It kept the original attributes of the file.
>
> The files original permissions were -rw-r-----, when i copied it, it
> kept those permissions.
>
> It does inherit the proper group though! yay for that.
>
> Is there a way to do what I'm asking? .. or am I headed down a bad
> direction?
I don't think you're heading in a bad direction.. I just don't know how
to do it....
If you simply use a cp command in a shell, the ACL's inherit properly
(unless, of course, you add an option to preserve permissions). Alas, I
have no idea to to control whether or not the various GUI file managers
preserve file permissions on copy, and this is where your problems come
from. (It doesn't help that default ACL seem to be something not at all
understood by many linux users here.)
More information about the ubuntu-users
mailing list