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 ...
-
31st July 2009, 12:17 PM #1 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.
-
-
IDG Tech News
-
31st July 2009, 12:38 PM #2 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
-
-
31st July 2009, 01:08 PM #3 Have a look at Autoshare. It's free and easy to use, even for thousands of users!
-
-
31st July 2009, 01:12 PM #4 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.
-
-
31st July 2009, 05:47 PM #5 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: 
Similar Threads
-
Replies: 3
Last Post: 15th February 2008, 12:58 PM
-
Replies: 2
Last Post: 6th November 2007, 06:22 PM
-
By faza in forum Wireless Networks
Replies: 2
Last Post: 26th July 2007, 12: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
-
Forum Rules