-
Notifications
You must be signed in to change notification settings - Fork 910
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explicitly set ACEs for Chocolatey's default folder installation to Administrators, removing inherited permissions and ensuring container and object inheritance flow from explicit ACE settings. Only remove inheritance for the default install folder, if being installed elsewhere, leave inherited permissions alone. Additionally, only set the current user to have modify access if there is an environment variable set to allow this behavior - `$env:ChocolateyInstallAllowCurrentUser="true"`. Based on conversations and code examples from @jberezanski. Jakub wrote the Get-LocalizedWellKnownPrincipalName to return the localized user name for Well-Known SIDS.
- Loading branch information
1 parent
6d7ebba
commit 680dc88
Showing
1 changed file
with
62 additions
and
12 deletions.
There are no files selected for viewing
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