+ Post New Thread
Results 1 to 5 of 5
Windows Thread, cacls in Technical; Hello, I have been trying to re-apply user permissions on home folders by using cacls and have done the following ...
  1. #1
    lafleur1977's Avatar
    Join Date
    May 2009
    Location
    Lancashire
    Posts
    171
    Thank Post
    128
    Thanked 4 Times in 4 Posts
    Rep Power
    12

    cacls

    Hello,

    I have been trying to re-apply user permissions on home folders by using cacls and have done the following script:

    cacls d:\sf_user /g user:f

    This works fine however I have 2 issues:

    1. It asks to confirm each line of the script as I have more than 1 folder to do.
    2. It replaces the inherited permissions with the new one.

    Can anybody help with this?

    Thanks.

  2. #2

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,271
    Thank Post
    884
    Thanked 2,749 Times in 2,322 Posts
    Blog Entries
    11
    Rep Power
    785
    You can set it to edit the existing perms by adding the /E switch but xcalcs is probably better as it is newer and has the /Q stitch which does it quietly. The other option is using setacl which is even opensource and can be triggered in batch or in vbs easily. I have ended up using this when xcalcs failed and it is much better IMO

  3. #3

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,345
    Thank Post
    242
    Thanked 1,602 Times in 1,278 Posts
    Rep Power
    346
    Have a look at Autoshare. It's free and easy to use, even for thousands of users!

  4. #4
    DrPerceptron's Avatar
    Join Date
    Dec 2008
    Location
    In a house
    Posts
    932
    Thank Post
    37
    Thanked 135 Times in 115 Posts
    Rep Power
    42
    pipe in the y character at some point and it'll automagically say yes for you.

    the following being an example from our last cacls script

    echo y|cacls \\nx1950-stu\students\intakeex\examaccount16 /E /G examaccount16:C Administrators:F Staff:C
    I'm not sure on replacing inherited permissions, I'm quietly confident if you slap in the /E it just edits and leaves the inherited permissions, but it's something I don't pay any attention to simply because the above is the same script that's been used for at least 6 years and the joys of robocopy meant I haven't played with the permissions on the folders for 3 years at least.

    If I wasn't lazy, I would probably look at XCACLS or something else, but luckily for me, I am.

  5. #5
    Heebeejeebee's Avatar
    Join Date
    Nov 2006
    Location
    Intergalactic Cruise
    Posts
    1,067
    Thank Post
    69
    Thanked 81 Times in 64 Posts
    Rep Power
    36
    If you're re-applying permissions because they've been lost somehow (a move to another machine without copying permissions perhaps), you will want to use the /t switch so that it does the change to all subfolders and files.

    HBJB



SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 3
    Last Post: 15th February 2008, 01:58 PM
  2. Help with CACLS permission
    By Kyle in forum Windows
    Replies: 2
    Last Post: 6th November 2007, 07:22 PM
  3. CACLS
    By faza in forum Wireless Networks
    Replies: 2
    Last Post: 26th July 2007, 01:06 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
  •