5 ms·
A few points: - The default user created at setup of OSX is in the admin group. - Certainly the 'has run sudo' is a bit of a restriction, but even running som
by traviscj 13y ago
A few points:
- The default user created at setup of OSX is in the admin group.
- Certainly the 'has run sudo' is a bit of a restriction, but even running something like the Homebrew install script runs sudo. (Maybe 'users that run Homebrew without understanding sudo' is an even smaller restriction, but a few members of my research group live in exactly this intersection!)
- Do you habitually read every line of source code your computer would execute before you run that code?
- zackkitzmiller 13y agoHomebrew fails if you attempt to run it with sudo.
- traviscj 13y agoSee my comment above. I'm not referring to running 'sudo homebrew ...', I'm talking about the installation, which has to run sudo to change some permissions in HOMEBREW_PREFIX.
- wcchandler 13y agoI was unaware of being placed in the admin group by default. Is the admin group similar to the wheel group or is there also a wheel group for sudo access? And yes, I very seldom run scripts copied from somebody else so when I do, I make sure I know what is being run. Granted, I'm a Linux and Windows user so the OSX philosophy might be different.
- 4ad 13y agoThe admin group is what it's used for sudo by default.
- eli 13y agoYou mean installing Homebrew itself? Because if you're running "sudo brew install foo" you're doing it wrong.
- traviscj 13y agoYes. And nope, I'm not referring to 'sudo brew install'. The main homebrew page says, 'run this ruby script'. The ruby script is available at: https://raw.github.com/mxcl/homebrew/go https://raw.github.com/mxcl/homebrew/go The script includes a sudo command. To be fair, I hadn't read the script in detail when I wrote my post, just far enough to see there was a definition of a sudo function. On review, it looks like they either call it to chmod/chgrp HOMEBREW_PREFIX (sometimes), or run sudo to create the directories.
- eli 13y agoFair enough. I think everyone agrees that the "download and execute a random gist" method of installation is not great.
- plorkyeran 13y agoI don't see any reason why it's worse than running a binary installer, and people seem to object to that a lot less for some reason.