Active Directory permission for shared folder issue

Vojta Kovařík 0 Reputation points
2024-09-18T17:49:06.1566667+00:00

Hello,

I am trying to make the permission so that the user cannot delete the Parent folder, but can delete all folders and files inside.

If I set the permission to Folder1 folder to "this folder, subfolders and files", and then give them full control but un-tick delete, it doesn't work- user is still able to delete parent folder (Folder1).

How can I set set such permissions?

Thank you in advance.

I've uploaded video of setting this permission so you can see what I've done: https://www.dropbox.com/scl/fi/3o02rccc6jkcnndnq697x/Shared-folder-permission-setting.mp4?rlkey=0mtdvqzmtwkge8kdsyi5fuahf&st=do6zrae6&dl=0

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,644 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Vasileios Dionysopoulos 641 Reputation points
    2024-09-19T20:14:42.2433333+00:00

    Hello Vojta,

    To achieve the goal where a user can delete the contents (files and subfolders) of a parent folder but cannot delete the parent folder itself, you'll need to modify the NTFS permissions carefully. Here's a detailed step-by-step guide to configuring the permissions correctly:

    1. Set Permissions on the Parent Folder (Folder1)

    The goal is to allow users to modify and delete items inside the parent folder, but not delete the parent folder itself. Follow these steps:

    a. Right-click the Parent Folder (Folder1) and select Properties.

    b. Navigate to the Security tab and click on Advanced.

    c. Click on Disable inheritance and choose Convert inherited permissions into explicit permissions (this ensures you're working with explicit permissions only).

    d. Under the Permissions Entries, click on Add to create a new rule for the user or group you want to set the permissions for.

    e. In the new permissions dialog:

    • Choose the appropriate user or group.
    • Set the Type to Allow.
    • In the Applies to dropdown, select This folder only.
    • Check all the permissions except Delete and Delete Subfolders and Files.

    This step ensures that the user cannot delete the parent folder (Folder1) but still has access to other folder operations.

    1. Set Permissions for Subfolders and Files

    To allow the user to modify and delete files and subfolders inside the parent folder:

    a. Click Add again to create a second rule for the same user or group.

    b. In the new permissions dialog:

    • Choose the appropriate user or group.
    • Set the Type to Allow.
    • In the Applies to dropdown, select Subfolders and files only.
    • Grant Full control.

    This ensures that the user has full control over all the files and subfolders inside the parent folder, allowing them to delete everything inside but not the parent folder itself.

    1. Test the Permissions

    After setting the permissions:

    • Try deleting files and subfolders inside Folder1 to confirm the user can delete them.
    • Attempt to delete the parent folder (Folder1) itself. The user should get an "Access Denied" error, confirming they can't delete it.

    Summary of Permissions:

    Parent Folder (Folder1):

    • Allow all permissions except Delete and Delete Subfolders and Files for the user.
      • Applies to: This folder only.
      Subfolders and Files:
      - Grant **Full Control** for the user.
      
         - Applies to: **Subfolders and files only**.
      

    This setup should achieve the desired behavior where the user can manage all contents inside the folder, but cannot delete the parent folder itself.

    I hope I help.

    0 comments No comments

  2. Yanhong Liu 12,180 Reputation points Microsoft Vendor
    2024-09-20T05:48:29.58+00:00

    Hello

    Thank you for posting in Q&A forum.

    At the permission page, you can apply it to ' Subfolders and files only ' instead ' this folder, subfolders and files '

    or user will have permission for this folder.

    Best regards

    Yanhong

    =====================================

    If the answer is helpful, please click "Accept answer" and upvote it


  3. Vojta Kovařík 0 Reputation points
    2024-09-21T15:46:30.4166667+00:00

    Hello Vasileios,

    I've set up the permissions exactly like you said, but I'm still able to delete Parent folder.

    Here is a new video how I set up the permissions: https://www.dropbox.com/scl/fi/a23msg880o78wkpfx92ca/Permission-setting_21.9.24.mp4?rlkey=20bxag2svimthg1ycyky9jzxs&st=uqic5bv0&dl=0

    Thank you in advance.

    0 comments No comments

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.