how to deny any file opening in a folder

ds_02 1 Reputation point
2022-09-16T03:14:06.697+00:00

how to deny any kind of file opening in a specific folder( like test) in windows server 8.
Either its a word, excel, autocad , text or any kind of file, should not get open in that particular folder and its subfolders.
but users can copy and paste the file & folders in test folder.

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.
5,275 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,896 questions
Windows Server Storage
Windows Server Storage
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Storage: The hardware and software system used to retain data for subsequent retrieval.
649 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Dillon Silzer 57,231 Reputation points
    2022-09-16T04:25:05.183+00:00

    Hi @ds_02

    With folder permissions it is not possible to allow them to write to the folder without allowing them to read (open) the files.

    My suggestion is you could set up a proxy folder where users dump the files, and you have a script that runs hourly and cuts and pastes files from the proxy folder to the folder where you don't want people to be able to read files from.

    ---------------------------------

    If this is helpful please accept answer.


  2. Limitless Technology 44,206 Reputation points
    2022-09-16T14:19:22.513+00:00

    Hi,

    Thank you for your question and reaching out.

    I understand that you're having issue with a file opening in a specific folder. For cases like this, I would recommend to take ownership of the file so that no one else will have access to this except the one who you assign as the owner. To take ownership of the file/folder, you may follow the steps below:

    1. Open File Explorer.
    2. Browse and find the file or folder you want to have full access.
    3. Right-click it, and select Properties.
    4. Click the Security tab to access the NTFS permissions.
    5. Click the Advanced button.
    6. On the "Advanced Security Settings" page, you need to click the Change link, in the Owner's field.
    7. Click the Advanced button.
    8. On the "Select User or Group" page, click the Find Now button.
    9. From the search result, select your user account (or the only user you want to have access with the file), and click OK.
    10. On the "Select User or Group" page, click OK.
    11. Click Apply.
    12. Click OK.
    13. Click OK again.
    14. Click OK one more time to complete this task.

    ----------------------------------------------------------------------------------------------------------------

    If the reply was helpful, please don’t forget to Upvote or Accept as answer. Thank you!


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.