• bitchkat@lemmy.world
    link
    fedilink
    English
    arrow-up
    34
    ·
    11 hours ago

    Had an idiot “fix” a permission problem by running “sudo chmod -R 777 /”

    And that is why sudo privileges were removed for the vast majority of people.

    • MTK@lemmy.world
      link
      fedilink
      arrow-up
      5
      arrow-down
      1
      ·
      5 hours ago

      seems reasonable to me, root is just a made up concept and the human owns the machine.

    • bigbuckalex@lemmy.zip
      link
      fedilink
      arrow-up
      10
      ·
      8 hours ago

      Oh… That sounds like a nightmare. How do you even fix that? There’s no “revert the entire filesystem’s permissions to default” button that I’m aware of

      • bitchkat@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        47 minutes ago

        I think they had to reinstall. It was part of a Hadoop cluster and that was extra finicky.

      • justme@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        4
        ·
        8 hours ago

        If you are lucky your system is atomic or has other roll back feature. Otherwise it’s reinstall time.

        I guess you could set up a fresh system, run a script that goes through each folder checking the permission and setting it on the target system.