lafleur1977 Posted July 31, 2009 Posted July 31, 2009 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.
SYNACK Posted July 31, 2009 Posted July 31, 2009 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
Michael Posted July 31, 2009 Posted July 31, 2009 Have a look at Autoshare. It's free and easy to use, even for thousands of users!
DrPerceptron Posted July 31, 2009 Posted July 31, 2009 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.
Heebeejeebee Posted July 31, 2009 Posted July 31, 2009 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now