• Possibly linux@lemmy.zip
    link
    fedilink
    English
    arrow-up
    19
    ·
    edit-2
    11 months ago

    That’s why I log in as root and edit all files to have open permissions. Next I disable all security settings and kernel security mitigations.

    After that my system is finally mine.

        • BestBouclettes@jlai.lu
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          11 months ago

          Here is the breakdown:

          • chmod is the command to change the mode of the files (-rwxrwxrwx)
          • -R is the recurse flag,
          • a means “all”, you can also have u, g or o (respectively user, group and others) instead.
          • + is add (you can remove with -),
          • rw is the permissions (rw of rwx)

          I prefer changing permissions this way instead of using absolute values (0777 for instance) as it’s easier to reverse if you made a mistake.

      • psud@aussie.zone
        link
        fedilink
        arrow-up
        1
        ·
        11 months ago

        I’m picturing all the services complaining their keys are insecure, their configs are insecure

  • gmtom@lemmy.world
    link
    fedilink
    arrow-up
    13
    arrow-down
    1
    ·
    11 months ago

    I get this at my job too. “Acess denied, please contact the IT administrator” bitch I AM the IT administrator!

    • voxel@sopuli.xyz
      link
      fedilink
      arrow-up
      9
      ·
      11 months ago

      linux has the same gile ownership system, maybe even less advanced than windows (windows file perms are unnecessarily convoluted)

      • Cethin@lemmy.zip
        link
        fedilink
        English
        arrow-up
        9
        arrow-down
        2
        ·
        11 months ago

        True, but in Linux is pretty trivial to change the ownership (or just use “sudo” if that’s sufficient. Windows it takes longer to do these things.

      • Hello Hotel@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        edit-2
        11 months ago

        My only hickup is SElinux, otherwise the permission system on linux is annoying but admin friendly minus stuff like /dev/mem always being denied and libfuse understanding and miscommunicating the risks of the “allow users (with correct permissions) to access another user’s fuse partition” setting. (And its not user privicy, its DOS prevention)

        • voxel@sopuli.xyz
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          11 months ago

          tbf /dev/mem is mapped to physical memory, access to most of which is completely denied by the memory controller in the cpu (while it’s in usermode), no matter rhe access level

    • Honytawk@lemmy.zip
      link
      fedilink
      arrow-up
      5
      ·
      11 months ago

      In windows you can just update the security settings and do anything you want with it.

      It is a feature not a bug, that regular non-tech users can’t just go about deleting their System32.

  • Cyo@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    11 months ago

    That was what gave me the final push to switch from Windows to GNU/Linux

    • Honytawk@lemmy.zip
      link
      fedilink
      arrow-up
      1
      ·
      11 months ago

      You don’t need additional tools, all of that is baked into Windows.

      It is just a little hidden because they don’t want non-tech users to accidentally delete system files.

    • SorryQuick@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      11 months ago

      Been a while since I touched windows but from what I remember, anything you modify/delete as TrustedInstaller gets reverted back every update.

      • spudwart@spudwart.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        11 months ago

        The Windows Way, changing all preferences back to default after an update.

        “Use Edge or else.”

        Now I use Linux, or else.

  • Marxism-Fennekinism@lemmy.ml
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    edit-2
    11 months ago

    Worst when you plug in an external drive on Linux and the user the files belong to is different so it doesn’t let you access it.

    IMO, the rule should be that the user who mounts specifically a removable drive should have complete access to it regardless of existing file permissions, or, meeting in the middle, maybe have a command that requires sudo, which will grant complete access to the drive, something like sudo takeover-volume /mnt/usbdrive so you don’t have to sudo every single command that needs a file without your name on it. (I’m aware you can also just use sudo chown -R you /mnt/usbdrive but I think there should be a way to let a user access everything in a drive without changing the actual ownership.)

  • unalivejoy@lemm.ee
    link
    fedilink
    English
    arrow-up
    2
    ·
    11 months ago

    Windows gives a permission error if you try to delete or edit a file that’s being executed. It has no complaints about moving it though.

    • Neato@kbin.social
      link
      fedilink
      arrow-up
      1
      ·
      11 months ago

      That’d be fine, though? Not an OS expert but if you move it, the computer knows where it goes any can pause and read/writes and utilize RAM for it’s in-use version. But if it tries the same thing when you deleted it, it’s going to have nowhere to put the results of whatever it’s doing. Also if the computer is just reading a file, it may assume you might not want to delete it.