[Samba] Difference Copy and Move at inheriting

2005-03-08 Thread Matthias Spork
Hello,
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
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Difference Copy and Move at inheriting

2005-03-08 Thread Kaplan, Marc
This is just the way filesystems work. Doing a move of a file/directory
does no kind of re-evaluation of permissions/ACLs, because it's
essentially just doing a rename. 

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

 -Original Message-
 From: [EMAIL PROTECTED]
[mailto:samba-
 [EMAIL PROTECTED] On Behalf Of Matthias
 Spork
 Sent: Tuesday, March 08, 2005 3:36 AM
 To: samba@lists.samba.org
 Subject: [Samba] Difference Copy and Move at inheriting
 
 Hello,
 
 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
 
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/listinfo/samba
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Difference Copy and Move at inheriting

2005-03-04 Thread Matthias Spork
Hello,
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