[MacPorts] #45737: dbus +no_root deleted my root account on MacOSX 10.5.8
#45737: dbus +no_root deleted my root account on MacOSX 10.5.8 ------------------------+-------------------------------- Reporter: newchief@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.2 Keywords: | Port: ------------------------+-------------------------------- Although installation of dbus with +no_root use flag ended with error message that +no_root should not be used on my system, still actions were taken! my "System Administrator (root)" user with uid 0 was replaced by "Message Bus (root)" with uid 503. As a result, I couldn't do "sudo" anymore! Apart from shell commands that require root, all other system administrative operations seem to work. I deleted "Message Bus (root)" user from list of users being logged as my usual user (which is Administrator of this system). Now sudo says there's no root user entry in password file (well, root IS listed in /etc/passwd file, but I guess it is not where MacOSX keeps user info). System is doomed, wihout sudo, no macports anymore. -- Ticket URL: <https://trac.macports.org/ticket/45737> MacPorts <https://www.macports.org/> Ports system for OS X
#45737: dbus +no_root deleted my root account on MacOSX 10.5.8 -------------------------+------------------------ Reporter: newchief@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.2 Resolution: | Keywords: Port: dbus | -------------------------+------------------------ Changes (by ryandesign@…): * owner: macports-tickets@… => mcalhoun@… * port: => dbus Comment: I have no idea how that could have happened. If you have any idea, let us know, but I don't see any code in the [browser:trunk/dports/devel/dbus/Portfile dbus Portfile] that could do that. -- Ticket URL: <https://trac.macports.org/ticket/45737#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#45737: dbus +no_root deleted my root account on MacOSX 10.5.8 -------------------------+------------------------ Reporter: newchief@… | Owner: mcalhoun@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.2 Resolution: | Keywords: Port: dbus | -------------------------+------------------------ Changes (by mcalhoun@…): * status: new => assigned Comment: What is meant by:
[M]y "System Administrator (root)" user with uid 0 was replaced by "Message Bus (root)" with uid 503.
You are saying that the root user was deleted?[[BR]] Does the command {{{ dscl . -read /Users/root }}} not return anything? -- Ticket URL: <https://trac.macports.org/ticket/45737#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#45737: dbus +no_root deleted my root account on MacOSX 10.5.8 -------------------------+------------------------ Reporter: newchief@… | Owner: mcalhoun@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.2 Resolution: | Keywords: Port: dbus | -------------------------+------------------------ Comment (by newchief@…): I have no ideas how it could happend. I posted this ticket as a warning that such things can happen. Now I'm in the middle of system reinstallation as I need it by tomorrow morning. -- Ticket URL: <https://trac.macports.org/ticket/45737#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#45737: dbus +no_root deleted my root account on MacOSX 10.5.8 -------------------------+------------------------ Reporter: newchief@… | Owner: mcalhoun@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.2 Resolution: | Keywords: Port: dbus | -------------------------+------------------------ Comment (by mcalhoun@…): A complete reinstallation is a huge pain, and I am sorry to hear that you have to go through it.[[BR]] I certainly appreciate the warning, but without more information, I do not know how to proceed.[[BR]] Most of what we needed to know is probably now lost with the reinstallation. I will post the question to the [https://lists.macosforge.org/pipermail /macports-dev/2014-November/028663.html developer mailing list]. -- Ticket URL: <https://trac.macports.org/ticket/45737#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#45737: dbus +no_root deleted my root account on MacOSX 10.5.8 -------------------------+------------------------ Reporter: newchief@… | Owner: mcalhoun@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.2 Resolution: | Keywords: Port: dbus | -------------------------+------------------------ Comment (by newchief@…): Yeah, reinstall is now completed and most of the ports I need are also built so there's nothing left from previous system. This time I've built dbus without +no_root and I can still do 'sudo'. From what I remember: Immediately after dbus +no_root failed to install (with the message that I shouldn't have started dbus installation with +no_root), I wanted to check something in ports directory. As usual, before going to /opt/local/var/macports (in a new shell started in a new window), I typed 'sudo -s'. I was asked for password (this was before I deleted "Message Bus (root)" user), typed it and... got regular user shell (with '$' prompt, not '#' that I expected). Although whoami said it is 'root', I coudln't do anything that requires 'root' assistance, e.g. I couldn't do 'mkdir /bin/something'. The rest now is a history. -- Ticket URL: <https://trac.macports.org/ticket/45737#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#45737: dbus +no_root deleted my root account on MacOSX 10.5.8 -------------------------+------------------------ Reporter: newchief@… | Owner: mcalhoun@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.2 Resolution: invalid | Keywords: Port: dbus | -------------------------+------------------------ Changes (by mcalhoun@…): * status: assigned => closed * resolution: => invalid Comment: With no insight from the mailing list, I am not sure what more can be done.[[BR]] I am therefore closing the ticket.[[BR]] With any luck, this is a highly unusual occurrence. -- Ticket URL: <https://trac.macports.org/ticket/45737#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#45737: dbus +no_root deleted my root account on MacOSX 10.5.8 -------------------------+------------------------ Reporter: newchief@… | Owner: mcalhoun@… Type: defect | Status: reopened Priority: High | Milestone: Component: ports | Version: 2.3.2 Resolution: | Keywords: Port: dbus | -------------------------+------------------------ Changes (by cal@…): * priority: Normal => High * status: closed => reopened * resolution: invalid => Comment: This is caused by both a problem in the dbus port and the way base checks for existing users. I found the code path that breaks this and will commit a fix shortly. Meanwhile do *not* try to install dbus +no_root in a root installation of MacPorts, because it *will* break your root user. -- Ticket URL: <https://trac.macports.org/ticket/45737#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#45737: dbus +no_root deleted my root account on MacOSX 10.5.8 -------------------------+------------------- Reporter: newchief@… | Owner: cal@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.3.2 Resolution: | Keywords: Port: dbus | -------------------------+------------------- Changes (by cal@…): * cc: mcalhoun@… (added) * status: reopened => new * owner: mcalhoun@… => cal@… -- Ticket URL: <https://trac.macports.org/ticket/45737#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
#45737: dbus +no_root deleted my root account on MacOSX 10.5.8 -------------------------+---------------------- Reporter: newchief@… | Owner: cal@… Type: defect | Status: assigned Priority: High | Milestone: Component: ports | Version: 2.3.2 Resolution: | Keywords: Port: dbus | -------------------------+---------------------- Changes (by cal@…): * status: new => assigned -- Ticket URL: <https://trac.macports.org/ticket/45737#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X
#45737: dbus +no_root deleted my root account on MacOSX 10.5.8 -------------------------+---------------------- Reporter: newchief@… | Owner: cal@… Type: defect | Status: assigned Priority: High | Milestone: Component: ports | Version: 2.3.2 Resolution: | Keywords: Port: dbus | -------------------------+---------------------- Comment (by cal@…): I committed an emergency workaround to the dbus port in r135848 and r135849. Proper fix in base to come. -- Ticket URL: <https://trac.macports.org/ticket/45737#comment:10> MacPorts <https://www.macports.org/> Ports system for OS X
#45737: dbus +no_root deleted my root account on MacOSX 10.5.8 -------------------------+---------------------- Reporter: newchief@… | Owner: cal@… Type: defect | Status: assigned Priority: High | Milestone: Component: ports | Version: 2.3.2 Resolution: | Keywords: Port: dbus | -------------------------+---------------------- Comment (by cal@…): Fixed in r135851. I'll backport this to the latest release branch, too. -- Ticket URL: <https://trac.macports.org/ticket/45737#comment:11> MacPorts <https://www.macports.org/> Ports system for OS X
#45737: dbus +no_root deleted my root account on MacOSX 10.5.8 -------------------------+----------------------------- Reporter: newchief@… | Owner: cal@… Type: defect | Status: closed Priority: High | Milestone: MacPorts Future Component: base | Version: 2.3.2 Resolution: fixed | Keywords: Port: dbus | -------------------------+----------------------------- Changes (by cal@…): * status: assigned => closed * component: ports => base * resolution: => fixed * milestone: => MacPorts Future Comment: Backported to the 2.3.x branch in r135852. This will be part of the next release, whether that's 2.3.4 or 2.4.0. -- Ticket URL: <https://trac.macports.org/ticket/45737#comment:12> MacPorts <https://www.macports.org/> Ports system for OS X
#45737: dbus +no_root deleted my root account on MacOSX 10.5.8 -------------------------+---------------------------- Reporter: newchief@… | Owner: cal@… Type: defect | Status: closed Priority: High | Milestone: MacPorts 2.3.4 Component: base | Version: 2.3.2 Resolution: fixed | Keywords: Port: dbus | -------------------------+---------------------------- Changes (by jmr@…): * milestone: MacPorts Future => MacPorts 2.3.4 -- Ticket URL: <https://trac.macports.org/ticket/45737#comment:13> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts