Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.mac.system > #126152
| From | Lewis <g.kreme@gmail.com.dontsendmecopies> |
|---|---|
| Newsgroups | comp.sys.mac.system |
| Subject | Re: Fail to reset onwership to root after installation |
| Date | 2019-09-06 08:13 +0000 |
| Organization | Miskatonic U |
| Message-ID | <slrnqn459g.2blt.g.kreme@promini.lan> (permalink) |
| References | <BsSbF.83076$%g5.65530@fx21.iad> <aPSbF.306223$597.163663@fx17.iad> <qkp471$eh5$1@dont-email.me> <gtckjcFhpc2U1@mid.individual.net> <n1kcF.43637$A81.41674@fx15.iad> |
In message <n1kcF.43637$A81.41674@fx15.iad> JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
> On 2019-09-05 10:32, Jolly Roger wrote:
>> Because he's a bumbling fool who doesn't know what he is doing. Homebrew
>> does not make changes to /usr/bin/sudo - he fucked that up all by
>> himself.
> Any suggestions on how I could have changed the /usr/bin/sudo to lose
> its setuid flag so it would no longer work?
Something you did after disabling SIP and enabling the root account, on
a guess.
> I can't learn from my mistakes if I don't know what the mistake was.
You've been told many many times not to do this, and you haven’t learned
yet.
> Again, at the time, root was not enabled. And sudo worked prior to the
> homebrew installation and it is only after, when I tried to reset the
> ownership changes for a number of directories that I found sudo was no
> longer working.
Sorry but I do not believe you. Not for a second. No one does, I'll
wager.
The Brew installer is a script. You can look at it. You can see what it
does and does not do. It's in ruby, but it's reasonably readable even
if you don't know the language.
I said earlier brew doesn't use sudo, this is of course incorrect, it
does use sudo to make sure the permission on /usr/local are correct.
It does not used sudo (or chmod or anything else) ion files outside of
/usr/local/
#v+
#!/usr/bin/ruby
# This script installs to /usr/local only. To install elsewhere (which is
# unsupported) you can untar https://github.com/Homebrew/brew/tarball/master
# anywhere you like.
HOMEBREW_PREFIX = "/usr/local".freeze
HOMEBREW_REPOSITORY = "/usr/local/Homebrew".freeze
HOMEBREW_CORE_TAP = "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core".freeze
HOMEBREW_CACHE = "#{ENV["HOME"]}/Library/Caches/Homebrew".freeze
BREW_REPO = "https://github.com/Homebrew/brew".freeze
#v-
Pretty clear.
#v+
if File.directory? HOMEBREW_PREFIX
sudo "/bin/chmod", "u+rwx", *chmods unless chmods.empty?
sudo "/bin/chmod", "g+rwx", *group_chmods unless group_chmods.empty?
sudo "/bin/chmod", "755", *user_chmods unless user_chmods.empty?
sudo "/usr/sbin/chown", ENV["USER"], *chowns unless chowns.empty?
sudo "/usr/bin/chgrp", "admin", *chgrps unless chgrps.empty?
else
sudo "/bin/mkdir", "-p", HOMEBREW_PREFIX
sudo "/usr/sbin/chown", "root:wheel", HOMEBREW_PREFIX
end
#v-
Also surprisingly clear
--
Please to meet you, Rose. Now run for your life!
Back to comp.sys.mac.system | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Fail to reset onwership to root after installation JF Mezei <jfmezei.spamnot@vaxination.ca> - 2019-09-04 13:25 -0400
Re: Fail to reset onwership to root after installation JF Mezei <jfmezei.spamnot@vaxination.ca> - 2019-09-04 13:49 -0400
Re: Fail to reset onwership to root after installation André G. Isaak <agisaak@gm.invalid> - 2019-09-04 13:44 -0600
Re: Fail to reset onwership to root after installation Jolly Roger <jollyroger@pobox.com> - 2019-09-05 14:32 +0000
Re: Fail to reset onwership to root after installation André G. Isaak <agisaak@gm.invalid> - 2019-09-05 08:38 -0600
Re: Fail to reset onwership to root after installation Lewis <g.kreme@gmail.com.dontsendmecopies> - 2019-09-06 00:45 +0000
Re: Fail to reset onwership to root after installation Jolly Roger <jollyroger@pobox.com> - 2019-09-06 17:33 +0000
Re: Fail to reset onwership to root after installation Panthera Tigris Altaica <northentiger@outlook.com> - 2019-09-06 15:16 -0400
Re: Fail to reset onwership to root after installation Lewis <g.kreme@gmail.com.dontsendmecopies> - 2019-09-06 20:02 +0000
Re: Fail to reset onwership to root after installation Jolly Roger <jollyroger@pobox.com> - 2019-09-07 18:11 +0000
Re: Fail to reset onwership to root after installation JF Mezei <jfmezei.spamnot@vaxination.ca> - 2019-09-07 14:20 -0400
Re: Fail to reset onwership to root after installation nospam <nospam@nospam.invalid> - 2019-09-07 14:22 -0400
Re: Fail to reset onwership to root after installation Jolly Roger <jollyroger@pobox.com> - 2019-09-08 15:20 +0000
Re: Fail to reset onwership to root after installation JF Mezei <jfmezei.spamnot@vaxination.ca> - 2019-09-08 13:31 -0400
Re: Fail to reset onwership to root after installation Jolly Roger <jollyroger@pobox.com> - 2019-09-09 00:12 +0000
Re: Fail to reset onwership to root after installation Jolly Roger <jollyroger@pobox.com> - 2019-09-07 18:10 +0000
Re: Fail to reset onwership to root after installation ~BD~ <BD@nomail.afraid.org> - 2019-09-07 19:43 +0000
Re: Fail to reset onwership to root after installation JF Mezei <jfmezei.spamnot@vaxination.ca> - 2019-09-05 23:04 -0400
Re: Fail to reset onwership to root after installation Lewis <g.kreme@gmail.com.dontsendmecopies> - 2019-09-06 08:13 +0000
Re: Fail to reset onwership to root after installation Jolly Roger <jollyroger@pobox.com> - 2019-09-06 17:46 +0000
Re: Fail to reset onwership to root after installation JF Mezei <jfmezei.spamnot@vaxination.ca> - 2019-09-06 15:52 -0400
Re: Fail to reset onwership to root after installation André G. Isaak <agisaak@gm.invalid> - 2019-09-06 14:03 -0600
Re: Fail to reset onwership to root after installation Lewis <g.kreme@gmail.com.dontsendmecopies> - 2019-09-06 20:05 +0000
Re: Fail to reset onwership to root after installation Alan Baker <nunya@ness.biz> - 2019-09-06 15:57 -0700
Re: Fail to reset onwership to root after installation Benjamin Esham <usenet@esham.io> - 2019-09-06 19:24 -0400
Re: Fail to reset onwership to root after installation JF Mezei <jfmezei.spamnot@vaxination.ca> - 2019-09-07 13:43 -0400
Re: Fail to reset onwership to root after installation Lewis <g.kreme@gmail.com.dontsendmecopies> - 2019-09-07 20:32 +0000
Re: Fail to reset onwership to root after installation Benjamin Esham <usenet@esham.io> - 2019-09-07 16:39 -0400
Re: Fail to reset onwership to root after installation Jolly Roger <jollyroger@pobox.com> - 2019-09-08 15:19 +0000
Re: Fail to reset onwership to root after installation Jolly Roger <jollyroger@pobox.com> - 2019-09-06 17:38 +0000
Re: Fail to reset onwership to root after installation Lewis <g.kreme@gmail.com.dontsendmecopies> - 2019-09-04 19:06 +0000
Re: Fail to reset onwership to root after installation JF Mezei <jfmezei.spamnot@vaxination.ca> - 2019-09-04 15:46 -0400
Re: Fail to reset onwership to root after installation Lewis <g.kreme@gmail.com.dontsendmecopies> - 2019-09-04 23:54 +0000
Re: Fail to reset onwership to root after installation JF Mezei <jfmezei.spamnot@vaxination.ca> - 2019-09-05 23:02 -0400
Re: Fail to reset onwership to root after installation Lewis <g.kreme@gmail.com.dontsendmecopies> - 2019-09-06 07:59 +0000
Re: Fail to reset onwership to root after installation Jolly Roger <jollyroger@pobox.com> - 2019-09-06 17:36 +0000
csiph-web