The information in this article applies to:
SUMMARYIt is sometimes necessary to assign permissions to a folder so that a particular User and the Administrators group can administer it, as in the case of Users Home Directories. RESOLUTION
Using the following 3 files (Addperm.cmd, Addperm2.cmd, and Yes.txt) you
can add the Administrators Group and the User (whose logon name must be the
same as the folder name) to the Access Control List (ACL) on the folder.
This method only uses CACLS; no resource kit utilities are needed.
ADDPERM.CMDEither re-type or Copy and Paste the following information into a file called ADDPERM2.CMD in the root directory of the drive that has the USERS directory. ADDPERM2.CMD
YES.TXTThe third file is a little more difficult.Open a Command Prompt (Cmd.exe) and change directories to the root directory of the drive you have saved the other two files to. Type the following: COPY CON YES.TXT <press the enter key> This will create a text file with the Y and ENTER needed to automate the CACLS command. To use the batch files type: addperm c:\USERS MORE INFORMATION
These batch files can easily be altered to add different permissions to the
directories. The /T switch instructs CACLS to change the permissions on all
subfolders if the users folder has them.
Additional query words: processing process automate
Keywords : ntdomain kbhowto |
Last Reviewed: January 20, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |