Is there a way to force the directories permissions on a file,
regardless of how the file is transfered to the directory?
Thanks all,
M
I believe it's because there are *file* permissions and *directory*
permissions. When you move, the file permissions travel with the file. When
you copy, a new file is first created in the directory, inheriting by
default the permissions from the directory.
See also Microsoft KnowledgeBase article Q102024, titled "File Permissions
Inherited from Directory When Copied" at:
http://www.microsoft.com/kb/articles/q102/0/24.htm
>Is there a way to force the directories permissions on a file,
>regardless of how the file is transfered to the directory?
Don't think so.
--
-- Dave Bryan
dbr...@mail.bcpl.lib.md.us
David C. Miller <$dav...@microsoft.com> wrote in article
<01bc2e81$bd828e00$aaa4369d@davidmi1>...
> There are a number of circumstances that can occur when coping and moving
> files:
> 1. Move files from one location to another on the same partition. The
> permissions will remain the same for the files. This is because the files
> do not move, the directory entries are just changed to reflect the new
> location in the file hierarchy.
>
> 2. Move files from one location to another on a different logical or
> physical drive. The permissions of the files in the new location are
> inherited from the new folder. This is because the files are not really
> moved, they are copied to the new location and then deleted from the
> source.
>
> 3. Copy the files to another location. Again the new files will inherit
the
> permissions from the new location. The file attributes are not copied,
only
> the file is copied.
>
> This information also applies to the compression attribute of a file as
> well.
>
> I hope this helps!
> --
> +-------------------------------------------------------------------+
> | David C. Miller - KB7ZJY - Renton, WA USA |
> | Microsoft Certified Systems Engineer |
> | Home - dav...@wolfenet.com - Work - dav...@microsoft.com |
> | The opinions expressed in this message are my own. |
> | Check out http://www.wolfenet.com/~davidmi |
> |In order to prevent spamming I have added a $ to my e-mail address |
> | Remove the $ prior to replying to this message. |
> +-------------------------------------------------------------------+
>
> J. David Bryan <dbr...@mail.bcpl.lib.md.us> wrote in article
> <5g2vi8$4tv$3...@news.abs.net>...