-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
sudo access proposed changes #10521
Comments
Hi! Once we have the data about each cask, we could add something like e.g.
What do you think? |
why not inverted behaviour. ie. we internally check if user has sudo access if not just print message that the cask need sudo not downloading. Or we can investigate a possibility of asking user credentials simmilar to how osx ask's both username and password. and see if we can use those to perform installation. But in that case managing uninstall will be a big pain of its own. |
That’s easy to do but calls a GUI — which breaks automation — so it’s a no-go. I agree with not needing a flag to specify this behaviour; it should work by default. |
I can understand the part about GUI and automation stuff and suggested only as a last alternative. |
That's basically what we do already, even though it's just a side-effect of 3rd party tools we use as those require su perms (typically Also it's worth pointing out that "sudo perms" is a relative term, because it really depends what you, as a user have access to. Some things are obvious, but some are not. e.g. imagine a situation when |
You example is a good point. Guess we might need that flag after all. |
Seems like there isn’t much interest in this for now. With so much more stuff with higher priorities, I’ll close it. We can always revisit this later. |
Issue raised earlier in homebrew but as suggested by homebrew folks Homebrew/legacy-homebrew#38509 raising issue here.
I have a setup where the user with brew setup doesn't have sudo access. While mac takes it gracefully by allowing a username as well as password prompt, brew assumes that sudo is enabled for user and the step fails after a long download of file.
Here are two options i am suggesting.
example if you install say virtualbox via brew then it need to install a couple of drivers which require them to have sudo access or i suppose any
.pkg
file is executed via installer with sudo permission. I hope this makes it a bit more clear. thats where we can make a check if the user doesn't have sudo why bother downloading the package. its just a waste of bandwidth and extra time.The text was updated successfully, but these errors were encountered: