chocolatey / chocolatey-licensed-issues

Issues for Licensed Editions of Chocolatey
19 stars 13 forks source link

config - adminOnlyExecutionForAllChocolateyCommands Not Invoking Error Message #229

Open ryanrichter94 opened 3 years ago

ryanrichter94 commented 3 years ago

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

thoscut commented 2 years ago

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.

pauby commented 2 years ago

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.