Results 1 to 2 of 2

Thread: Setting file and folder permissions

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2010
    Posts
    7

    Setting file and folder permissions

    I have a specific set of permissions i need to apply for users.
    the parent folder has disabled inheritance so it doesn't pick up from root drive.
    When i use the code at the top to add the user in with the specific permissions i want it does indeed add the user in but also turns on inheriting permissions from the parent folder.

    I think i've tried every combination of true and false for the "FolderAcl.SetAccessRuleProtection" line but all that does is strip out all other access and leave me with the one i've just added

    Any ideas?

    EG Folders 1 and 2 are NOT to inherit from ROOT

    Folder 1 and 2 have distinct users/groups with permissions

    Subfolders 1 and 2 SHOULD inherit from the parent "Folder"

    Root\
    \Folder 1
    \Subfolder 1
    \Subfolder 2
    \Folder 2
    \Subfolder 1
    \Subfolder 2

  2. #2
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,715

    Re: Setting file and folder permissions

    -Moderator Actions: Spun off onto its own thread from here: https://www.vbforums.com/showthread.php?616021-
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width