chocolatey-licensed-issues icon indicating copy to clipboard operation
chocolatey-licensed-issues copied to clipboard

config - adminOnlyExecutionForAllChocolateyCommands Not Invoking Error Message

Open ryanrichter94 opened this issue 3 years ago • 2 comments

What You Are Seeing?

When adminOnlyExecutionForAllChocolateyCommands is set to enabled. Any read Chocolatey command such as choco list and search will execute and display info as normal and any choco write command such as choco config set or choco source add will execute until a permissions issue prevents the command from running when trying to write to a file within the ProgramData folder such as the bin folder or config file. These commands should stop before ever executing when any Chocolaty command is tried to be run.

Alternatively, there is a second bug - when you have adminOnlyExecutionForNewCommand, it shuts down the use of all commands.

What is Expected?

When a Chocolatey command is tried to be run with this config value enabled the following error message should be displayed in shell: Execution of 'choco' commands are limited to administrators only. Please speak with your admins if you feel this is in error."

References

┆Issue is synchronized with this GitLab issue by Unito

ryanrichter94 avatar Jun 09 '21 19:06 ryanrichter94

Is there any progress on this matter? As it's a bug in a payed part of chocolatey, which stops documented features from working, a fix would be highly appreciated.

thoscut avatar Oct 05 '21 09:10 thoscut

We haven't prioritised this issue as yet. Once we triage and reproduce the issue, we work towards a fix for a future version of Chocolatey Licensed Extension.

pauby avatar Oct 05 '21 17:10 pauby