The main topic is a technical issue with folder security settings on Windows 10 and Windows Server 2019. When certain settings are enabled (denying appending data, deleting files, and deleting folders), there are problems with file copying - the first att

rockguo 0 Reputation points
2023-07-28T08:24:07.9366667+00:00

There is a bug with Windows 10 and Windows Server 2019. When the advanced security settings of a folder are enabled to deny appending data, deleting files, and deleting folders, the first attempt to copy a file fails, but the second attempt is successful. The problem reoccurs after restarting the computer, while on Windows Server 2008 R2, it functions normally.

When using the options shown in the attached image, copying a file to the folder prompts a duplication message and creates a file with a size of 0kb. However, a second file can be successfully copied. After restarting the system, the first file can't be copied again.

The same settings work fine on Windows Server 2008 R2.

Of course, unticking the box to deny (creating folder/appending data) allows successful copying, but I need this configuration.

The issue can be reproduced on both Windows 10 and Windows Server 2019.

I would appreciate if you could help me understand the reason for this. Thank you.

图片

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,537 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,091 Reputation points
    2023-07-28T14:31:54.79+00:00

    Hello there,

    Let's break down the problem and explore some potential solutions:

    Security Settings: The mentioned security settings are likely part of the access control list (ACL) permissions for the folder in question. These settings can be configured to restrict certain actions for specific user accounts or groups.

    Symptom: The problem occurs when attempting to copy files to a folder with these restrictive permissions. The "appending data" permission prevents users from adding data to existing files, "deleting files" permission prevents users from deleting files, and "deleting folders" permission prevents users from deleting folders.

    Potential Cause: When copying a file to a folder, the system may first try to create a temporary file with the content to be copied. After creating the temporary file, it would attempt to delete the original file (if the "Move" operation is selected) or delete the temporary file (if the "Copy" operation is selected). Since the permissions deny the ability to delete files, this process is likely to fail, resulting in the observed issue.

    I used AI provided by ChatGPT to formulate part of this response. I have verified that the information is accurate before sharing it with you.

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer–

    0 comments No comments