• Guenther_Amanita@feddit.deM
    link
    fedilink
    arrow-up
    8
    arrow-down
    3
    ·
    8 months ago

    Yes. The root user has access to all personal data, including your home folder.

    If someone gets physical access to the PC, he can log in as root easily and mess with your data. If he just plugs in your hard drive, he can’t see anything relevant.

    • russjr08@outpost.zeuslink.net
      link
      fedilink
      English
      arrow-up
      17
      ·
      8 months ago

      I wonder if the question is in reference to unlocking the root account and setting a password for it. I don’t know of any distros that actually have an unlocked root account and leave its password as empty, but I suppose its not completely impossible.

      That being said, if an attacker gets physical access to your PC, its game over anyways. If your drive isn’t encrypted with something like LUKS, then they can just boot up a live USB of whatever distro they want, mount the drive, and have easy access to its contents.

      Ideally if you want to protect your PC against physical attacks, you’ll at the minimum want some sort of drive encryption enabled, and preferably with Secure Boot enabled with your own keys enrolled if your machine supports it.

        • russjr08@outpost.zeuslink.net
          link
          fedilink
          English
          arrow-up
          6
          ·
          8 months ago

          A lot of distros “lock” the root account, a locked account cannot be logged into. You can generally do this way say, usermod -L account_name to lock an account, or usermod -U account_name to unlock one (there are numerous ways to do).

          I couldn’t remember if setting a password for an account auto-unlocked it, I believe at one point this was the case but wasn’t 100% sure.

            • russjr08@outpost.zeuslink.net
              link
              fedilink
              English
              arrow-up
              3
              ·
              8 months ago

              I actually can’t recall off the top of my head, however if you can login with su then it shouldn’t be a problem either way.

              But to the root (ha!) of your original question, yes definitely make sure to set a password for the root account.

  • MajorHavoc@lemmy.world
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    8 months ago

    If you can share what operating system you’re using, you may get more specific answers.