not really programming and probably butchered the execution on that cmd but this felt like the only place it would be funny to post it

  • Excrubulent@slrpnk.net
    link
    fedilink
    English
    arrow-up
    25
    ·
    edit-2
    3 days ago

    The way I do it is I have a script that adds an entry in file explorer called “Take Ownership”. I don’t have to use it often but when I do it’s a life saver, and it doesn’t blanket take ownership of the whole disk.

    Obviously an elevated super user like linux has would be much more secure, but it’s windows, they’re not interested in security if it isn’t about their share price.

    • sad_detective_man@leminal.spaceOP
      link
      fedilink
      English
      arrow-up
      11
      ·
      3 days ago

      in retrospect that’s actually a way better method. do you use the one from winearo? they strike me as untrustworthy but that is 100% based on vibes.

      • Excrubulent@slrpnk.net
        link
        fedilink
        English
        arrow-up
        8
        ·
        3 days ago

        Oof, yeah, those vibes are rancid. The website is covered in shady looking links and they want you to download an exe, which you don’t need for a simple registry edit which can be done with a text file.

        This link shows you how to make the .reg file: https://www.windowscentral.com/how-take-ownership-files-using-right-click-context-menu-windows-10

        For my money that’s way easier than doing it manually through the registry editor yourself, and you can inspect the code to see what it’s doing.

        If you want to see the manual steps to take ownership without the registry entry, it looks like this: https://www.windowscentral.com/how-take-ownership-files-and-folders-windows-10

        If that isn’t a dark pattern then I don’t know what is. They do not want you to have control over your machine, at all.

        • Blue_Morpho@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          2 days ago

          Preventing users from breaking their machines unless they really work to bypass the defaults is a good thing. It’s the same path all major Linux distros have followed by doing things like disabling the root account at install. The entire ethos of distros like NixOS is to not be able change your own OS unless you actively go out of your way.

          The important part is that you can change it.

    • Blue_Morpho@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 days ago

      Obviously an elevated super user like linux has would be much more secure,

      NTFS access control entries are more secure than traditional Unix owners. It’s why Linux copied NTFS style ACE file permissions years ago.