Hi, we are using ACLs (GPFS filesystem) - configured by default ACLs. When a file is copied from another share, ACLs are set correct. When a file is moved(!) from another folder / share the file keeps the ACLs from the source location. But we want to set the ACLs as needed on the destination share. How can we do that? smb.conf for the destination share: ---- [share] inherit acls = yes inherit owner = yes inherit permissions = yes ---- Thanks Alex
> > we are using ACLs (GPFS filesystem) - configured by default ACLs. When > a file is copied from another share, ACLs are set correct. When a file > is moved(!) from another folder / share the file keeps the ACLs from > the source location. But we want to set the ACLs as needed on the > destination share. How can we do that? >That is the behavior of Windows and as such it is the correct behavior of Samba. ACLs are kept and a file is moved, ACLs are set to those of the destination when a file is copied.
Am 15.04.2011 12:56, schrieb Miguel Medalha:> >> >> we are using ACLs (GPFS filesystem) - configured by default ACLs. When a file is copied from another share, ACLs are >> set correct. When a file is moved(!) from another folder / share the file keeps the ACLs from the source location. But >> we want to set the ACLs as needed on the destination share. How can we do that? >> > > That is the behavior of Windows and as such it is the correct behavior of Samba. > ACLs are kept and a file is moved, ACLs are set to those of the destination when a file is copied.really? when I try this on a windows system (on local drives) the permissions are set / inherited correct.
> really? when I try this on a windows system (on local drives) the > permissions are set / inherited correct. >You can confirm this anywhere on the net: when a file is moved, it keeps the original permissions; when a file is copied, it acquires the permissions of the destination. It seems to me that you are mixing different issues. You say you observed a different behavior. Can you give me an example of what you observed? Thank you.
> really? when I try this on a windows system (on local drives) the > permissions are set / inherited correct. >Well, I just did that on a Windows XP system, local drive, and the behavior is the one I described.
Am 15.04.2011 13:53, schrieb Miguel Medalha:> >> really? when I try this on a windows system (on local drives) the permissions are set / inherited correct. >> > > You can confirm this anywhere on the net: when a file is moved, it keeps the original permissions; when a file is > copied, it acquires the permissions of the destination. > > It seems to me that you are mixing different issues. You say you observed a different behavior. Can you give me an > example of what you observed? Thank you.on Windows (local drives): move a file from A to B and the permissions are inherited from folder B -> correct on samba server: move a file from A to B (with the same windows client) and the permissions are kept as set when file was stored in A -> not correct
Am 15.04.2011 13:58, schrieb Miguel Medalha:> >> really? when I try this on a windows system (on local drives) the permissions are set / inherited correct. >> > > Well, I just did that on a Windows XP system, local drive, and the behavior is the one I described.I am using Windows 7
Am 15.04.2011 13:59, schrieb Alexander F?disch:> > > Am 15.04.2011 13:58, schrieb Miguel Medalha: >> >>> really? when I try this on a windows system (on local drives) the permissions are set / inherited correct. >>> >> >> Well, I just did that on a Windows XP system, local drive, and the behavior is the one I described. > > I am using Windows 7You are right. On Windows XP permissions will be kept... So there is another handling on Windows 7. But unfortunately not when moving data to samba. I tried to move a file from Windows 7 to a share on Windows 2008 -> permissions are inherited from destination folder
Did you investigate the "map acl inherit" parameter?