General discussion

Locked

xcacls syntax

By dgburroughs ·
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

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

xcacls syntax

by Joseph Moore In reply to xcacls syntax

So, say you have 3 users, BOB, JIM & TOM, and 3 folders:
\HOME\BOB
\HOME\JIM
\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 \HOME\BOB /T /Y
XCACLS /P JIM:F \HOME\JIM /T /Y
XCACLS /P TOM:F \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

Back to Windows Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums