Discussion Locked

xcacls syntax

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
using xcacls, how do you grant each user rights to his own folder and noone else's. I can't seem to find the correct syntax and/or wildcard to use

1 reply

by joseph moore

So, say you have 3 users, BOB, JIM & TOM, and 3 folders:
D:\HOME\BOB
D:\HOME\JIM
D:\HOME\TOM
and you want only BOB to open the BOB folder, JIM to open the JIM folder, and TOM to open the TOM folder. No one can open the other folders.
Ok.
Here is the XCACLS syntax:

XCACLS /P BOB:F D:\HOME\BOB /T /Y
XCACLS /P JIM:F D:\HOME\JIM /T /Y
XCACLS /P TOM:F D:\HOME\TOM /T /Y

That should overwrite the existing ACLs (/P is the overwrite switch, whereas /G adds to the ACL and /E edits the ACL) with the permissions to the specified folder and all subfolders/files (/T adds the subfolder/file ACL write ability). /Y does it without prompting for a Yes/No.

hope this helps

This discussion is closed to new replies.