Welcome to Dream.In.Code
Become an Expert!

Join 149,504 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,369 people online right now. Registration is fast and FREE... Join Now!




I need script to be able to add FOLDER RIGHTS

 
Reply to this topicStart new topic

I need script to be able to add FOLDER RIGHTS

CodyOebel
3 Aug, 2007 - 10:00 PM
Post #1

New D.I.C Head
*

Joined: 25 Jul, 2007
Posts: 12


My Contributions

new.member


Group: New Members
Joined: 25 Jul, 2007
Posts: 8


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.


EXAMPLE:

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

now I want to add ww-killers\Guards to have full permission to everything in the c:\books
folder. Basically Full modify rights 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 Script To Be Able To Add FOLDER RIGHTS
3 Aug, 2007 - 11:12 PM
Post #2

New D.I.C Head
*

Joined: 25 Jul, 2007
Posts: 12


My Contributions
QUOTE(CodyOebel @ 3 Aug, 2007 - 11:00 PM) *

new.member


Group: New Members
Joined: 25 Jul, 2007
Posts: 8


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.


EXAMPLE:

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

now I want to add ww-killers\Guards to have full permission to everything in the c:\books
folder. Basically Full modify rights 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 !


Nm I figured it out myself.

It's used like such : cacls c:\YourFileDirectory /T /E /G "ww-killers\fat - mans:f"
Notice the spaces in the work group name.

If there is no space in the name , the quotations are not necessary.


User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 06:45PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month