Google 网上论坛不再支持新的 Usenet 帖子或订阅项。历史内容仍可供查看。

[Samba] Difference Copy and Move at inheriting

已查看 6 次
跳至第一个未读帖子

Matthias Spork

未读,
2005年3月4日 12:50:192005/3/4
收件人
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

Matthias Spork

未读,
2005年3月8日 06:40:142005/3/8
收件人

Kaplan, Marc

未读,
2005年3月8日 12:00:132005/3/8
收件人
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

0 个新帖子