if I copy or create a file or directory, it inherits the permissions of
it's parent. If I move a file from one directory
to another, it will not inherit the permissions of the target-directory.
Why?
[daten]
comment = Daten
path = /samba/daten
inherit permissions = yes
inherit ACLS = yes
nt acl support = no
writeable = yes
hide unreadable = yes
veto files = /.*/
root preexec = /etc/samba/scripts/mk_sambadir
"/samba/daten/.recycle/%U" "%U" "%g"
vfs object = recycle
recycle:repository=.recycle/%U
recycle:versions=True
recycle:keeptree=True
Thanks for your responses.
matze
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
You can see the same thing with Windows, create a file named c:\a.txt,
then create a directory named c:\a.dir. Set some inheritance permissions
on c:\a.dir, create a new file named c:\a.dir\file1.txt. Notice that
file1.txt has inherited the permissions from a.dir. Now, do a move of
c:\a.txt to c:\a.dir. Look at the permissions of c:\a.dir\a.txt and
notice that a.txt did *not* inherit the permissions that are set on the
directory c:\a.dir.
Again, this is just the way that filesystems work.
-Marc