Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove inherited user group permission

Status
Not open for further replies.

EagleTempest

Technical User
Jun 15, 2004
125
CA
VB 2005 .Net 2

I have a subfolder that has a user group, called CAD Users, with Full Control permissions on Files Only and these permissions are inherited from the parent folder. How can I remove this particular user group from this folder.

I've tried:
Code:
Dim dInfo As New DirectoryInfo(Filename)

Dim dSecurity As DirectorySecurity = dInfo.GetAccessControl

dSecurity.RemoveAccessRule(New FileSystemAccessRule("PTR\CAD Users", FileSystemRights.FullControl, AccessControlType.Allow))

dInfo.SetAccessControl(dSecurity)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top