On a server I have a public key auth only for root account. Is there any point of logging in with a different account?

  • thefartographer@lemm.ee
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago
    1. Swiss cheese slices: make them holes too tight.
    2. When you run everything as root, if you fuck your shit, your shit’s fucked.

    “Best practices” tend to come from other people’s whoopsies. But it’s always good to question things, too.

  • truthfultemporarily@feddit.org
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago

    Its a concept called defense in depth. Without root login now you require the key AND sudo password.

    Also, outside of self hosted you will have multiple people logging in. You want them to log in with their own users for logging and permission management.

  • deadbeef79000@lemmy.nz
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    That server’s root access is now vulnerable to a compromise of the systems that have the private key.

    • BCsven@lemmy.ca
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      Only the server should have the private key. Why would other systems have the private key?