Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,190 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,150 people online right now. Registration is fast and FREE... Join Now!




I need to set folder ACL's

 
Reply to this topicStart new topic

I need to set folder ACL's

CodyOebel
2 Aug, 2007 - 07:43 PM
Post #1

New D.I.C Head
*

Joined: 25 Jul, 2007
Posts: 12


My Contributions
ok.. I am on a network, and I have a certain group that I want to add into a particular folders security rights.

I have looked at DOS command subinacl , but am not interpreting it correctly for use, or maybe Im in the wrong direction.

so lets say we have a folder made on the local c:\ we will call this folder c:\books

now I want to give a user group name ww-killers\fat - mans full permission to everything in the c:\books folder
all through command line.

I'm hoping for a simple solution, but i dont mind working the neurons heh..
If anyone can post something usefull in c++, vb script, batch script I dont care, I am wanting to learn this, and I dont have internet at home and use internet at work to do as much research as I can cram.
Thanks !
User is offlineProfile CardPM
+Quote Post

CodyOebel
RE: I Need To Set Folder ACL's
3 Aug, 2007 - 11:10 PM
Post #2

New D.I.C Head
*

Joined: 25 Jul, 2007
Posts: 12


My Contributions
QUOTE(CodyOebel @ 2 Aug, 2007 - 08:43 PM) *

ok.. I am on a network, and I have a certain group that I want to add into a particular folders security rights.

I have looked at DOS command subinacl , but am not interpreting it correctly for use, or maybe Im in the wrong direction.

so lets say we have a folder made on the local c:\ we will call this folder c:\books

now I want to give a user group name ww-killers\fat - mans full permission to everything in the c:\books folder
all through command line.

I'm hoping for a simple solution, but i dont mind working the neurons heh..
If anyone can post something usefull in c++, vb script, batch script I dont care, I am wanting to learn this, and I dont have internet at home and use internet at work to do as much research as I can cram.
Thanks !



Never mind.. the whole time I have been using cacls incorrectly and not using quotations work group names that have spaces in them.
For those who need to know syntax is like so:

cacls c:\YourFileDirectory /T /E /G "ww-killers\fat - mans:f"

This would give the correct rights to the folder.

User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/2/08 01:25AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month