Bug 437765

Summary: mv command does not inherit ACLs on moved files
Product: [openSUSE] openSUSE 11.1 Reporter: Forgotten User Drfk9mafMw <forgotten_Drfk9mafMw>
Component: BasesystemAssignee: Brandon Philips <bphilips>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: forgotten_qMyteedNxa
Version: Beta 2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: shell script used to prepare a collaboration directory
shell script to strip all ACLs and extra attributes from a directory

Description Forgotten User Drfk9mafMw 2008-10-22 14:40:53 UTC
When moving a file from e.g. $HOME without ACLs to a collaboration share which uses ACLs for permission management, the default ACLs are not inherited.

This makes the usage of ACLs pretty much useless unless the users are forbidden to move files...

I will attach the script we use to set acls recursively on a folder in order to have proper permissions.
Comment 1 Forgotten User Drfk9mafMw 2008-10-22 14:45:34 UTC
Created attachment 247179 [details]
shell script used to prepare a collaboration directory
Comment 2 Forgotten User Drfk9mafMw 2008-10-22 14:46:25 UTC
Created attachment 247181 [details]
shell script to strip all ACLs and extra attributes from a directory
Comment 3 Forgotten User Drfk9mafMw 2008-10-22 14:51:09 UTC
This is not a new behavior but exists at least since openSUSE 10.2. Other basic commands seem to work, especially copying.
Comment 4 Forgotten User qMyteedNxa 2008-10-26 17:27:16 UTC
isn`t that the same even on windows - i.e. moving files within the same partition doesn`t make those files have the correct acl`s
Comment 5 Forgotten User Drfk9mafMw 2008-10-28 19:37:08 UTC
I have no idea about Windows... All I care is unixoids in a Samba network :)

If the ACL implementation really copies bad Windows behavior to the point that it omits default ACLs upon moving, I'd very much vote for an additional option for the command. Would that be possible? I am thinking about something like mv --inherit-acls
Comment 6 Brandon Philips 2008-10-29 06:08:43 UTC
"The mv command conceptually moves filesystem objects, and doesn't create new 
objects. Thus default acls are not inherited, just as the umask has no effect. 
This behavior is by design." Bug 120975

Closing as INVALID.

*** This bug has been marked as a duplicate of bug 120975 ***