4 ms·
> I think having persistent access is the file system equivalent of logging in and working entirely from root. Except that those system files are already prote
by Wowfunhappy 7y ago
> I think having persistent access is the file system equivalent of logging in and working entirely from root.
Except that those system files are already protected behind root privileges, so they're only read-write if I have root. And, one reason the root privilege system works is because temporarily gaining root when necessary isn't painful.
I indeed don't change root files on a daily basis, but when I do, I don't want to have to go through an extended rigamarole every single time. Typing in my password should be enough.
I totally respect that Apple wants to keep normal users out of this stuff. I just want a way to remove the safety wheels one time, instead of again and again.
- pwinnski 7y agoI've shot myself in the foot enough to appreciate an ever-lengthening list of hurdles I need to jump to do so again. I would be protesting if there were no way to make the rootfs read-write, but as it is I'm happy with having to perform a command or two when I want to write. I suspect you can do that in a launchd script, but however much more involved it is than typing my password, I'm probably fine with leaving it as-is.
- chrisfinazzo 7y agoDisabling SIP, at least from Apple's POV does most of what you want. They've also implored people to be good UNIX citizens and make liberal use of /usr/local, which they explicitly give you - the user of the hardware - ownership of.
- saagarjha 7y ago> They've also implored people to be good UNIX citizens and make liberal use of /usr/local, which they explicitly give you - the user of the hardware - ownership of. /usr/local is root:wheel by default. macOS provides it to you as a place to put your software, but it not give your user ownership of this directory.
- stephenr 7y ago> but it not give your user ownership of this directory. Admin users can sudo, sudo should be used to install software. Your thinking is the shenanigans that Brew does, making `/usr/local/whatever` writable by anyone, without a password. This is not how smart people install software. Edit: wow what a typo. One character completely reversed the intend meaning of the last sentence.
- saagarjha 7y ago> This is now how smart people install software. On the contrary, I think what Homebrew does with regards to permissions is fundamentally incorrect. /usr/local, being shared, should be owned by root, and it should require administrator permissions to install software there.
- stephenr 7y agoGah, sorry typo in my comment, it should say "not", but it says "now. Anyway, I agree, it should be root owned and use sudo/similar to install. Sorry for the confusion!
- fiddlerwoaroof 7y agoIf I shared my Mac with anyone I’d agree, but as it is, my Mac is a single-user machine and I’d rather run brew as myuser:mygroup to avoid running the install scripts as root.
- stephenr 7y agoWith Brew it's a moot point - you can't choose to do otherwise, it will refuse to run as root, and has no capability to do the "normal" `make && sudo make install` pair, where you build as user and install as root.
- fiddlerwoaroof 7y agoI'd rather not run a random `make install` (or, in Brew's case, as random ruby script) as root, though.