-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I don't have an option to execute brew cask as sudo user #43204
Comments
|
I don't see how that solution can give me the privilege to execute the script unattended If I execute the command line and the installation of brew as root (with or without sudo) I can't make it work, I don't see the ability to launch it without typing the sudo password at any time. I use an agent to execute those scripts, and can be done with or without privileges. |
Specifically #19180 (comment) and #19180 (comment). |
Ok thanks, the issue there is that you have to type the password (at least one time), and we are deploying through an MDM tool, that executes scripts in a unattended way, I mean, you don't have the opportunity to type anything, and the other option is to write the admin pass in the script, and I found a big security issue there. I only see two options:
Thanks for your time |
Your particular case is pretty specific, so we’re likely not going to support that more than we already do in the pointed feature. |
General troubleshooting steps
--force
and the issue is still present.brew update-reset && brew update
and retried my command.brew doctor
, fixed as many issues as possible and retried my command.Description of issue
In order to execute silent and unattended scripts I don't have an option to pass the
password
question and my script gets paused waiting for the password.I want to know if there is a possibility to run
sudo brew cask
with a option like--run-as-sudo
and maybe a warning but let the script continue without asking the sudo passwordIf I remove the root check the sudo command works, maybe we can relax this option and develop the above flag.
Output of your command with
--verbose --debug
Output of
brew cask doctor
The text was updated successfully, but these errors were encountered: