Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.mac.system > #126137 > unrolled thread
| Started by | JF Mezei <jfmezei.spamnot@vaxination.ca> |
|---|---|
| First post | 2019-09-04 13:25 -0400 |
| Last post | 2019-09-06 17:36 +0000 |
| Articles | 16 on this page of 36 — 9 participants |
Back to article view | Back to comp.sys.mac.system
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
Page 2 of 2 — ← Prev page 1 [2]
| From | JF Mezei <jfmezei.spamnot@vaxination.ca> |
|---|---|
| Date | 2019-09-06 15:52 -0400 |
| Message-ID | <cOycF.272589$BJ1.171611@fx43.iad> |
| In reply to | #126152 |
On 2019-09-06 04:13, Lewis wrote: > Something you did after disabling SIP and enabling the root account, on > a guess. SIP account disabled right after the upgrade in order to be able to change launch deamon PLISTs etc. sudo worked before installing homebrrew. sudo stopped working after installation of homebrew when I wanted to reset ownership of /usr/local directories that homebrew changed. root account enabled AFTER sudo stopped working. So enabling root could not have broken sudo since it was broken before. So again. what type of command could have rendered sudo inoperative while keeping its owner root/wheel ?
[toc] | [prev] | [next] | [standalone]
| From | André G. Isaak <agisaak@gm.invalid> |
|---|---|
| Date | 2019-09-06 14:03 -0600 |
| Message-ID | <qkue1v$f2b$1@dont-email.me> |
| In reply to | #126161 |
On 2019-09-06 1:52 p.m., JF Mezei wrote: > On 2019-09-06 04:13, Lewis wrote: > >> Something you did after disabling SIP and enabling the root account, on >> a guess. > > SIP account disabled right after the upgrade in order to be able to > change launch deamon PLISTs etc. And why did you need to do that? If you really did need to, why didn't you immediately reenable it? > sudo worked before installing homebrrew. > sudo stopped working after installation of homebrew when I wanted to > reset ownership of /usr/local directories that homebrew changed. And why did you want to do that? It changed them for a reason. André > root account enabled AFTER sudo stopped working. So enabling root could > not have broken sudo since it was broken before. > > So again. what type of command could have rendered sudo inoperative > while keeping its owner root/wheel ? > -- To email remove 'invalid' & replace 'gm' with well known Google mail service.
[toc] | [prev] | [next] | [standalone]
| From | Lewis <g.kreme@gmail.com.dontsendmecopies> |
|---|---|
| Date | 2019-09-06 20:05 +0000 |
| Message-ID | <slrnqn5eve.tes.g.kreme@promini.lan> |
| In reply to | #126161 |
In message <cOycF.272589$BJ1.171611@fx43.iad> JF Mezei <jfmezei.spamnot@vaxination.ca> wrote: > On 2019-09-06 04:13, Lewis wrote: >> Something you did after disabling SIP and enabling the root account, on >> a guess. > SIP account disabled right after the upgrade in order to be able to > change launch deamon PLISTs etc. this is absurd. > sudo worked before installing homebrrew. > sudo stopped working after installation of homebrew when I wanted to > reset ownership of /usr/local directories that homebrew changed. I've showed you the source code. You can look at the source code yourself. > root account enabled AFTER sudo stopped working. So enabling root could > not have broken sudo since it was broken before. You have a history of enabling root. > So again. what type of command could have rendered sudo inoperative > while keeping its owner root/wheel ? Many stupid things you could have done. Which one did you do? No idea. It is a FACT that hamebrew could not have done this. -- Indecision is the key to flexibility.
[toc] | [prev] | [next] | [standalone]
| From | Alan Baker <nunya@ness.biz> |
|---|---|
| Date | 2019-09-06 15:57 -0700 |
| Message-ID | <qkuo76$8u7$4@gioia.aioe.org> |
| In reply to | #126161 |
On 2019-09-06 12:52 p.m., JF Mezei wrote: > On 2019-09-06 04:13, Lewis wrote: > >> Something you did after disabling SIP and enabling the root account, on >> a guess. > > SIP account disabled right after the upgrade in order to be able to > change launch deamon PLISTs etc. There is no SIP "ACCOUNT", dimwit. > > sudo worked before installing homebrrew. > sudo stopped working after installation of homebrew when I wanted to > reset ownership of /usr/local directories that homebrew changed. > > root account enabled AFTER sudo stopped working. So enabling root could > not have broken sudo since it was broken before. > > So again. what type of command could have rendered sudo inoperative > while keeping its owner root/wheel ? > >
[toc] | [prev] | [next] | [standalone]
| From | Benjamin Esham <usenet@esham.io> |
|---|---|
| Date | 2019-09-06 19:24 -0400 |
| Message-ID | <k08qkjhx.fdwr6c@bdesham.net> |
| In reply to | #126161 |
JF Mezei wrote:
> sudo worked before installing homebrrew.
> sudo stopped working after installation of homebrew when I wanted to
> reset ownership of /usr/local directories that homebrew changed.
>
> root account enabled AFTER sudo stopped working. So enabling root could
> not have broken sudo since it was broken before.
>
> So again. what type of command could have rendered sudo inoperative
> while keeping its owner root/wheel ?
Do you have your command-line history saved? I believe it's saved by default
on macOS. If you run
history | grep -w sudo
do you see anything... weird?
(If you don't keep track of your command-line history I would highly
recommend turning it on. I find it to be a huge time saver, and it can be a
life saver as well if you happen to screw something up and need to remember
what you did.)
--
Benjamin Esham
https://esham.io
[toc] | [prev] | [next] | [standalone]
| From | JF Mezei <jfmezei.spamnot@vaxination.ca> |
|---|---|
| Date | 2019-09-07 13:43 -0400 |
| Message-ID | <f%RcF.86656$G14.84270@fx13.iad> |
| In reply to | #126166 |
On 2019-09-06 19:24, Benjamin Esham wrote: > Do you have your command-line history saved? I believe it's saved by default > on macOS. If you run > > history | grep -w sudo 424 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 425 brew install php 426 pecl install pecl_http 427 where pecl 428 which pecl 429 ls /etc/php.ini 430 locate php.ini 431 which php 432 echo PATH 433 php 434 php -v 435 which php 436 locate php 437 locate pecl 438 brew install pecl 439 pear install pecl/solr 440 ls -l /usr/local 441 sudo chown root /usr/bin 441 is where sudo failed for first time. it worked prior to 425.
[toc] | [prev] | [next] | [standalone]
| From | Lewis <g.kreme@gmail.com.dontsendmecopies> |
|---|---|
| Date | 2019-09-07 20:32 +0000 |
| Message-ID | <slrnqn84v1.2vg9.g.kreme@promini.lan> |
| In reply to | #126188 |
In message <f%RcF.86656$G14.84270@fx13.iad> JF Mezei <jfmezei.spamnot@vaxination.ca> wrote: > 441 is where sudo failed for first time. it worked prior to 425. Suuuuure it did. -- Personal isn't the same as important
[toc] | [prev] | [next] | [standalone]
| From | Benjamin Esham <usenet@esham.io> |
|---|---|
| Date | 2019-09-07 16:39 -0400 |
| Message-ID | <k0a0erha.5lrlrb@bdesham.net> |
| In reply to | #126188 |
JF Mezei wrote: > On 2019-09-06 19:24, Benjamin Esham wrote: > >> Do you have your command-line history saved? I believe it's saved by default >> on macOS. If you run >> >> history | grep -w sudo > > 424 /usr/bin/ruby -e "$(curl -fsSL > https://raw.githubusercontent.com/Homebrew/install/master/install)" > 425 brew install php > 426 pecl install pecl_http > 427 where pecl > 428 which pecl > 429 ls /etc/php.ini > 430 locate php.ini > 431 which php > 432 echo PATH > 433 php > 434 php -v > 435 which php > 436 locate php > 437 locate pecl > 438 brew install pecl > 439 pear install pecl/solr > 440 ls -l /usr/local > 441 sudo chown root /usr/bin > > 441 is where sudo failed for first time. it worked prior to 425. Hmm. Nothing jumps out at me there, unfortunately. Benjamin -- Benjamin Esham https://esham.io
[toc] | [prev] | [next] | [standalone]
| From | Jolly Roger <jollyroger@pobox.com> |
|---|---|
| Date | 2019-09-08 15:19 +0000 |
| Message-ID | <gtkkgsF7vneU2@mid.individual.net> |
| In reply to | #126196 |
On 2019-09-07, Benjamin Esham <usenet@esham.io> wrote: > JF Mezei wrote: >> On 2019-09-06 19:24, Benjamin Esham wrote: >>> Do you have your command-line history saved? I believe it's saved by default >>> on macOS. If you run >>> >>> history | grep -w sudo >> >> 424 /usr/bin/ruby -e "$(curl -fsSL >> https://raw.githubusercontent.com/Homebrew/install/master/install)" >> 425 brew install php >> 426 pecl install pecl_http >> 427 where pecl >> 428 which pecl >> 429 ls /etc/php.ini >> 430 locate php.ini >> 431 which php >> 432 echo PATH >> 433 php >> 434 php -v >> 435 which php >> 436 locate php >> 437 locate pecl >> 438 brew install pecl >> 439 pear install pecl/solr >> 440 ls -l /usr/local >> 441 sudo chown root /usr/bin >> >> 441 is where sudo failed for first time. it worked prior to 425. > > Hmm. Nothing jumps out at me there, unfortunately. If you think he's telling you everything, I have a really nice bridge you may be interested in... -- E-mail sent to this address may be devoured by my ravenous SPAM filter. I often ignore posts from Google. Use a real news client instead. JR
[toc] | [prev] | [next] | [standalone]
| From | Jolly Roger <jollyroger@pobox.com> |
|---|---|
| Date | 2019-09-06 17:38 +0000 |
| Message-ID | <gtfjs7F6237U5@mid.individual.net> |
| In reply to | #126150 |
On 2019-09-06, 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? With root enabled and SIP disabled, you could have done all sorts of things to cause it. > I can't learn from my mistakes if I don't know what the mistake was. Then you had better stop doing all sorts of shit incorrectly, and log what you do so you can retrace your steps. > Again, at the time, root was not enabled.i SIP was disabled. And I don't believe you that root wasn't enabled at the time. You have a long track record of lying here. -- E-mail sent to this address may be devoured by my ravenous SPAM filter. I often ignore posts from Google. Use a real news client instead. JR
[toc] | [prev] | [next] | [standalone]
| From | Lewis <g.kreme@gmail.com.dontsendmecopies> |
|---|---|
| Date | 2019-09-04 19:06 +0000 |
| Message-ID | <slrnqn02pj.1km3.g.kreme@promini.lan> |
| In reply to | #126137 |
In message <BsSbF.83076$%g5.65530@fx21.iad> JF Mezei <jfmezei.spamnot@vaxination.ca> wrote: > I tried installing "homebrew" with the big ruby command. > Part of the text om the pre-installation was: >==> The following existing directories will have their owner set to jfmezei: > /usr/local/bin > /usr/local/share > /usr/local/share/info > /usr/local/share/man > /usr/local/share/man/man1 > /usr/local/share/man/man8 > So I killed it and took snapshot of the directories so I could later > reset their owners back to original. You are, still, a fool. > bike:local $ sudo chown -v root:wheel /usr/local/bin > sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set How shocking, you fucked up your sudo executable. This does sound like something you would do. > I enabled "root" account Further evidence you are a fool who does stupid things and then wonders why things are broken. > Why would a sudo command not let me set the user back to root ? Can you read the error message or not? It clearly tells you what you fucked up. > What would be the "official" way to do this? Reformat, reinstall, stop fucking with things you don't understand. > (right now, I will just restore from backup the whole /usr/local tree to > undo the damage done by the homebrew installation. Homebrew did no damage at all, that was all you. > I thought homebrew would be a clean intall but it appears to be the same > fucken headackes as trhe macports with messing with the system, multiple > copies, changing dorectories etc. Nope. None of that is true. This is classic PEBKAC. -- Blatant mistakes are the best kind. - John W Baxter
[toc] | [prev] | [next] | [standalone]
| From | JF Mezei <jfmezei.spamnot@vaxination.ca> |
|---|---|
| Date | 2019-09-04 15:46 -0400 |
| Message-ID | <8wUbF.155961$Sh3.80632@fx44.iad> |
| In reply to | #126139 |
On 2019-09-04 15:06, Lewis wrote: > Homebrew did no damage at all, that was all you. Funny how sudo failed after running that installation which specified it would change a lot protections and ownership fo files. I clearly didn't expect this and initially though tthat it was the files it documeteed as changing that had been changed in a way that I couldn't change back. Did not suspect that "sudo" itself which had worked prior to trying to install homevrew would have been corrupted. All this because the SSL on my Xserve is now too old and I have to try to get a simple goddammed extensions (pecl_http) on my high sierra (for PHP scripts). It had taken me minutes to install on the xserve/snow leopard and on this machine, it now expects me to install a whole much of stuff. I got pear, then pecl, then that asked me to istall autoconf and other stuff. All this to get a simple goddammed file http.so that is built for that PHP version.
[toc] | [prev] | [next] | [standalone]
| From | Lewis <g.kreme@gmail.com.dontsendmecopies> |
|---|---|
| Date | 2019-09-04 23:54 +0000 |
| Message-ID | <slrnqn0jkt.1vbc.g.kreme@promini.lan> |
| In reply to | #126141 |
In message <8wUbF.155961$Sh3.80632@fx44.iad> JF Mezei <jfmezei.spamnot@vaxination.ca> wrote: > On 2019-09-04 15:06, Lewis wrote: >> Homebrew did no damage at all, that was all you. > Funny how sudo failed after running that installation which specified it > would change a lot protections and ownership fo files. You are a fool and cannot read. Homebrew does not touch anything outside of /usr/local. *YOU* fucked up your system. YOU enabled the root account (a class-A moron move). YOU disabled SIP. YOU fucked things up. sudo is not in /usr/local/, it is in /usr/bin/. Note the difference. -- 'What good is a candle at noonday?' --Sourcery
[toc] | [prev] | [next] | [standalone]
| From | JF Mezei <jfmezei.spamnot@vaxination.ca> |
|---|---|
| Date | 2019-09-05 23:02 -0400 |
| Message-ID | <N_jcF.43636$A81.22864@fx15.iad> |
| In reply to | #126144 |
On 2019-09-04 19:54, Lewis wrote: > You are a fool and cannot read. Homebrew does not touch anything > outside of /usr/local. *YOU* fucked up your system. YOU enabled the root > account Root account enabled after sudo chown to reset onwership changes done by homebrew failed. It was disabled at the time homebroew was being installed and mucked with onwership of many directories. > sudo is not in /usr/local/, it is in /usr/bin/. Note the difference. And somehow, something got changed it sudo stopped working. As a post mortem: installing a PECL extemnsion to PHP which had taken minutes in 2013 on Snow Leopard server ended up wasting over a day for me and failed. While I did eventually managed to get PECL (and all the sub software neeed just to install it) and managed to install the pecl_http extension so a PHP script rinning on Snow Leopard server could run on my desktop too seemed to succeed, the newer version of PHP recognized the presence of extension, but saw no functiosn available. As a result, I had to rewrite the script to not use any of those functions. (and then realized the CRTC changed its web site in significant way, requiring the scriot to be changed much more), but that is another story. BTW, "save page as HTML" no longer works on many browsers because many pages are json/javascript drivenm and they only save the initial html. In teh case of CRTC, it only ontaiones the first 50 submissions. So it requires tricks to go into tools to copy the generated HTML and paste it into a text editor to get the generated data to be parsed by my PHP script.
[toc] | [prev] | [next] | [standalone]
| From | Lewis <g.kreme@gmail.com.dontsendmecopies> |
|---|---|
| Date | 2019-09-06 07:59 +0000 |
| Message-ID | <slrnqn44ed.2blt.g.kreme@promini.lan> |
| In reply to | #126149 |
In message <N_jcF.43636$A81.22864@fx15.iad> JF Mezei <jfmezei.spamnot@vaxination.ca> wrote: > On 2019-09-04 19:54, Lewis wrote: >> You are a fool and cannot read. Homebrew does not touch anything >> outside of /usr/local. *YOU* fucked up your system. YOU enabled the root >> account > Root account enabled after sudo chown to reset onwership changes done by > homebrew failed. No. That did not happen. > It was disabled at the time homebroew was being > installed and mucked with onwership of many directories. Homebrew does not use the root account or sudo. >> sudo is not in /usr/local/, it is in /usr/bin/. Note the difference. > And somehow, something got changed it sudo stopped working. "Somehow" is "you fucked something up" and not "homebrew did this" -- Forget the Joneses. I can't keep up with The Simpsons.
[toc] | [prev] | [next] | [standalone]
| From | Jolly Roger <jollyroger@pobox.com> |
|---|---|
| Date | 2019-09-06 17:36 +0000 |
| Message-ID | <gtfjo5F6237U4@mid.individual.net> |
| In reply to | #126149 |
On 2019-09-06, JF Mezei <jfmezei.spamnot@vaxination.ca> wrote: > On 2019-09-04 19:54, Lewis wrote: > >> You are a fool and cannot read. Homebrew does not touch anything >> outside of /usr/local. *YOU* fucked up your system. YOU enabled the root >> account > > Root account enabled after sudo chown to reset onwership changes done by > homebrew failed. It was disabled at the time homebroew was being > installed and mucked with onwership of many directories. You've enabled it multiple times before. Don't lie. No telling what you've previously fucked with and fucked up as root on your systems. >> sudo is not in /usr/local/, it is in /usr/bin/. Note the difference. > > And somehow, something got changed it sudo stopped working. PEBKAC. You fucked up. You won't admit it though. -- E-mail sent to this address may be devoured by my ravenous SPAM filter. I often ignore posts from Google. Use a real news client instead. JR
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | comp.sys.mac.system
csiph-web