Solved

Folder Rights

Posted on 2008-06-12
6
197 Views
Last Modified: 2011-09-20
HI,
i have created a few security groups in my AD
group 1
group 2
group 3
group 4
i need to apply permissions to m sublfolders with the security groups i have created.
my folder struture is like this
c:\main folder\subfolder\inner sub\
the main folder should have read access to all the users in my domain
the subfolder has the permission same as the main folder
the inner sub also has only read rights for all my users .
inside the inner sub i have 10 folder each with different rights
say folder 1 - only group 1 and group 2 has read access an group 3 and 4 has write access.
say folder 1 - only group 2 and group 4 has read access an group 1 and 3 has write access.
 
i have many folder to do.. how can i run a script and change it automatocally.

Cheers:)
Kamal
0
Comment
Question by:kamalgopi
  • 3
  • 2
6 Comments
 
LVL 16

Expert Comment

by:speshalyst
ID: 21768636
do you have a definite pattern of how these folder permissions will look like?
Other wise i dont see how you can automate it..
0
 
LVL 16

Expert Comment

by:speshalyst
ID: 21768648
you might wanna try this tool...  there is a lotta documentiona and expamples..

http://setacl.sourceforge.net/

Hope it heps
0
 
LVL 11

Author Comment

by:kamalgopi
ID: 21768957
i have clearly given everything on my post. which part u cannot understand.
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 16

Expert Comment

by:speshalyst
ID: 21769590
This part..
inside the inner sub i have 10 folder each with different rights
say folder 1 - only group 1 and group 2 has read access an group 3 and 4 has write access.
say folder 1 - only group 2 and group 4 has read access an group 1 and 3 has write access.

Can you explain futher ..
0
 
LVL 15

Accepted Solution

by:
fishadr earned 500 total points
ID: 21769849
There are two free utilities from Microsoft which will do this for you:
XCACLS.EXE
http://support.microsoft.com/kb/318754

or SUBINACL.EXE:
http://support.microsoft.com/kb/265360/en-us
http://www.analogduck.com/main/subinacl#Examples

XCACLS
============================================
So first grant them full permissions by using...
xcacls C:\<path>\*.* /G Group1:F /E

permisisons:
 R  Read
 C  Change (write)
 F  Full control
 P  Change Permissions (Special access)
 O  Take Ownership (Special access)
 X  EXecute (Special access)
 E  REad (Special access)
 W  Write (Special access)
 D  Delete (Special access)

SUBINACL
====================================================
In this example is to grant Domain1\User1 the PACEs of Execute and Take Ownership on the file C:\Test.txt. Type the following at the command line:

subinacl /file C:\TEST.TXT /grant=domain1\user1=xo

PACE       Description
F       Full Control
C       Change
R       Read
P       Change Permissions
O       Take Ownership
X       eXecute
E       Read eXecute
W       Write
D       Delete

The following has info on both:
http://support.microsoft.com/kb/265360/en-us

It is pretty easy to use. Give it a try and post back if you have any issues
0
 
LVL 15

Expert Comment

by:fishadr
ID: 21887852
How you getting on with this one - Need any more help?
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Suggested Solutions

I have never ceased to be amazed how many problems you can encounter on a fresh install of a Windows operating system.  This is certainly case in point& Unable to complete ANY MSI installation.  This means Windows Updates are failing and I can't …
Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now