Created
June 2, 2011 20:55
-
-
Save ferventcoder/1005305 to your computer and use it in GitHub Desktop.
DropkicK Security settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DeploymentStepsFor(File, s => | |
{ | |
s.Security(o => | |
{ | |
o.ForPath(settings.InstallPath, p => | |
{ | |
p.GrantRead(settings.UserGroupA); | |
p.GrantReadWrite(settings.UserGroupB); | |
p.Grant(Rights.ReadWrite, settings.UserGroupA); | |
p.Grant(Rights.ReadWrite, WindowsIdentity.GetCurrent().Name); | |
p.RemoveInheritance(); | |
p.Clear() | |
.Preserve(settings.UserGroupA) | |
.Preserve(settings.UserGroupB) | |
.Preserve(WindowsIdentity.GetCurrent().Name) | |
.RemoveAdministratorsGroup() | |
.RemoveSystemAccount() | |
.RemoveUsersGroup(); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a gist from https://github.com/chucknorris/dropkick/blob/master/product/dropkick.tests/TestObjects/SecurityDeployment.cs