+ Post New Thread
Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
Windows Server 2008 R2 Thread, Folder Permissions Question in Technical; Spend the time to figure this out with the DOS FOR command and the ICACLS command. YOU CAN DO IT! ...
  1. #16

    Join Date
    Jul 2012
    Location
    Boerne Texas USA
    Posts
    45
    Thank Post
    0
    Thanked 9 Times in 9 Posts
    Rep Power
    6
    Spend the time to figure this out with the DOS FOR command and the ICACLS command. YOU CAN DO IT!
    Experiment in a test directory for a while and you will make it work and have a powerful new tool in your belt.
    1) in the "for" command the %a is the variable.(could be %b or %c etc) If you run this in a .bat file you will have to use %%a (weird quark)
    2) since you borked the permissions you need to do this to reset:

    CD /d E:\Homedrives
    for /D %a in ("*") do icacls "%~fa" /grant:r "MCA\ICT Teachers File Access":(OI)(CI)(IO)(M) "MCA\%~a":(F) SYSTEM:(F) Administrators:(F) /Inheritance:R /C /Q

    This removes inheritance (from E:Homedrives) and explicitly puts then new permissions at the user folder level. These permissions inherit down from there. The "%~fa" is means use the full path name of the directory the "%~a" means just use the folder name (which is the logon name) This assumes that the users folder name is their logon name.
    Good luck!

    Last edited by jklight; 1st February 2013 at 09:40 PM.

  2. Thanks to jklight from:

    TheScarfedOne (3rd February 2013)

  3. #17
    Darylrese's Avatar
    Join Date
    Sep 2010
    Location
    Portsmouth
    Posts
    422
    Thank Post
    10
    Thanked 7 Times in 6 Posts
    Rep Power
    9
    Hey guys

    Just to let you know as a quick fix i set the parent permissions on the home driver folder, set everything underneath to inherit then set the user permissions one by one at the user folder level. Next time i will look into doing it with ICACLS.

    Many thanks

  4. #18

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,172
    Thank Post
    868
    Thanked 2,699 Times in 2,288 Posts
    Blog Entries
    11
    Rep Power
    772
    Quote Originally Posted by Darylrese View Post
    Hey guys

    Just to let you know as a quick fix i set the parent permissions on the home driver folder, set everything underneath to inherit then set the user permissions one by one at the user folder level. Next time i will look into doing it with ICACLS.

    Many thanks
    Personal opinion, SetACL is easier to use.

SHARE:
+ Post New Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Interesting Folder Permissions Question
    By WiPPaH in forum Windows Server 2000/2003
    Replies: 8
    Last Post: 9th February 2010, 04:36 PM
  2. Replies: 5
    Last Post: 12th January 2007, 09:26 PM
  3. Folder Permissions
    By wesleyw in forum Windows
    Replies: 6
    Last Post: 9th January 2007, 08:25 PM
  4. DPS Folder Permissions
    By ajbritton in forum ICT KS3 SATS Tests
    Replies: 2
    Last Post: 18th December 2006, 11:09 AM
  5. Replies: 15
    Last Post: 12th October 2006, 09:37 PM

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
  •