+ Post New Thread
Results 1 to 3 of 3
Windows Server 2008 Thread, iCACLS .. Woops. in Technical; I've been using Cacls for a while where I have shared folders by graduation year and inside are the users ...
  1. #1
    jmair's Avatar
    Join Date
    Aug 2007
    Posts
    291
    Thank Post
    65
    Thanked 9 Times in 9 Posts
    Rep Power
    16

    iCACLS .. Woops.

    I've been using Cacls for a while where I have shared folders by graduation year and inside are the users folders named after their login. Cacls has worked great untill I started to play with inheritance.

    I somehow removed all inheritance and I think the owner of subfolders. I've been playing with it for some time and can't get those permissions just right again. the switch I used to mess up these folders was /inheritance:r


    Here is my current script.
    Code:
    for /D %%I in (*) DO iCACLS.exe "%%I" /T /grant "parkcounty.int\%%I":M "parkcounty.int\Domain Admins":F  "parkcounty.int\teachers":M
    pause
    I need

    StudentFolder
    +Domain Admin - Full
    +Student - Modify
    +Teacher - Modify
    On just this folder and all files and folders inside StudentFolder, but NOT to inherit from parent folder.


    Thanks in advance.

  2. #2
    jmair's Avatar
    Join Date
    Aug 2007
    Posts
    291
    Thank Post
    65
    Thanked 9 Times in 9 Posts
    Rep Power
    16
    ok. got it.

    At the parent folder, I changed the Owner and enabled it to change all subfoldes/files.
    I then enabled inheritable to replace all child files/folders with parent folders.
    I then went to the child folders and ran the below script. .. so far so good.
    Code:
    for /D %%I in (*) DO iCACLS.exe "%%I" /t /grant "parkcounty.int\%%I":(OI)(CI)M "parkcounty.int\Domain Admins":(OI)(CI)F "parkcounty.int\administrator":(OI)(CI)F "parkcounty.int\teachers":(OI)(CI)M
    pause

  3. #3

    Join Date
    Oct 2010
    Posts
    3
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Thanks....



SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 12
    Last Post: 22nd December 2011, 05:39 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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