Two days ago, I did a fresh Arch install, everything went fine, then I changed my mind about my HDD partitioning and reformatted it, and installed Arch again, the install boots okay and all, but NetworkManager was down, when I investigated it, I found out that dbus service fails to start here is what systemctl status dbus returns:

dbus-broker-launch[383]: launcher_add_services @ …/dbus-broker-35/src/launch/launcher.c +805 dbus-broker-launch[383]: launcher_run @ …/dbus-broker-35/src/launch/launcher.c +1416 dbus-broker-launch[383]: run @ …/dbus-broker-35/src/launch/main.c +152 dbus-broker-launch[383]: main @ …/dbus-broker-35/src/launch/main.c +178 dbus-broker-launch[383]: Exiting due to fatal error: -107

I’ve run journalctl with some filtering and found this too:

systemd-tmpfiles[327]: Detected unsafe path transition / (owned by 999) -> /var (owned by root) during canonicalization of var/lib/dbus systemd-tmpfiles[327]: Detected unsafe path transition / (owned by 999) -> /run (owned by root) during canonicalization of run/dbus

I ran ls / -l and found out that my boot partition is owned by a user named 999 and group adm (what the hell is this?)

I’ve tried installing dbus-daemon-units and remove dbus-broker and dbus-broker-units, now I got a different problem which was that dbus was timing out on start, so the problem might not be caused by dbus itself, I really don’t want to reinstall Arch again, I’m chrooting into my install for internet connection too

  • Max-P@lemmy.max-p.me
    link
    fedilink
    arrow-up
    2
    ·
    4 months ago

    Yes I only created / and /boot from the Mint live boot

    So that’s why the wrong IDs came from. Technically the filesystem doesn’t know about names, it knows about IDs, and software just look at /etc/passwd and /etc/groups to go ID<>name.

    / should be 0755 (drwxr-xr-x). Boot, you can chown it all to root and 0755 for directories and 0644 for files safely. The reason you can’t for the root is, you’ll likely break executable state or SUID bits that sudo needs to be sudo.

    • notTheCat@lemmy.mlOP
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      4 months ago

      you can chown it all

      The permissions inside the partition were set correctly, it was only the “root” of the partition that went off, I only created the partition using Mint, while Arch did the whole installation and wrote all the files

      Either way I chown both / and /boot to root:root and chmod both / and /boot to 0755 (looked these up from my other Arch machine) and the bugs are gone