Scripts Thread, Subinacl problems in Coding and Web Development; Afternoon all,
I'm wanting to edit ACL on some folders and subfolders/files, purely to add the user to the list ...
-
18th June 2008, 04:43 PM #1
- Rep Power
- 14
Subinacl problems
Afternoon all,
I'm wanting to edit ACL on some folders and subfolders/files, purely to add the user to the list with change permissions and ensure the domain admins group is also in there with full control. I assumed the code below would work but it won't. Username is the same as the folder name, problem I'm having as it simply won't run it from a batch file, goes off in a mood.
Any idea what I'm doing wrong? I'm fairly sure I did something similar last year without problems!
for /D %%i in (*) do ( subinacl /file %%i /grant=mydomain\%%i=C "/grant=mydomain\domain admins=f" /setowner=mydomain\%%i
subinacl /subdirectories %%i\* /grant=mydomain\%%i=f "/grant=mydomain\domain admins=f"/setowner=mydomain\%%i )
-
-
IDG Tech News
SHARE:
Similar Threads
-
By Maximus in forum Networks
Replies: 7
Last Post: 11th June 2009, 02:38 PM
-
By joe90bass in forum MIS Systems
Replies: 2
Last Post: 26th February 2008, 02:40 PM
-
By boomam in forum Networks
Replies: 10
Last Post: 16th January 2008, 07:11 PM
-
Replies: 3
Last Post: 21st November 2006, 09:33 PM
-
By barryfl in forum ICT KS3 SATS Tests
Replies: 47
Last Post: 10th April 2006, 04:50 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