• Zink@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    4 months ago

    Ah ah ah! You didn’t say the magic word!

    sudo edit the file!

    Ah ah ah! You didn’t say the secret word right after!

  • GreenKnight23@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    4 months ago

    had a friend that was having problems with his PC and windows kept bitching about he didn’t have permissions. he ripped out the harddrive with it still powered on and threw it off his balcony into the lake screaming, “I fucking own you!”

    epic moment in my life to witness such an event.

  • chonglibloodsport@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    4 months ago

    Think about this: let’s say you run a program. Do you want that program to be able to take over the computer and read all your files from now on and send the data to a remote third party?

    Probably not.

    Permissions were created to stop programs from doing that. By running most software without admin permissions you limit the scope of the damage the software can cause. Software you trust even less should be run with even fewer permissions than a normal user account.

    The system is imperfect though. A capability-based system is better. It allows the user to control which specific features of the operating system a running program is allowed to access. For example, a program may request access to location services in order to access your GPS coordinates. You can deny this to prevent the program from tracking you without otherwise preventing the software from running.

    • dbx12@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      4 months ago

      You forgot the fact that there might be other people using the same computer and they shouldn’t be able to access the others files.

      • chonglibloodsport@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        4 months ago

        No I didn’t. Most computers on the planet (phones, tablets, laptops) have only 1 user. The whole multi-user system isn’t obviously useful for these computers.

        Everyone knows that multiple user accounts need permissions to prevent users from accessing each other’s files. I didn’t bring it up because it was too obvious.

  • “Own me? Maybe my physical form - but I don’t have to do shit for you if you don’t treat me with respect! Want to edit that file without my permission? Go ahead and do it yourself - take a magnetic needle and open up the HDD case yourself!”

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      4 months ago

      So… Go try that and notice Windows is basically always encrypted at rest nowadays.

      You can always decap your TPM and use a STM to read the static charges on its memory… But, good luck doing that.

  • Destide@feddit.uk
    link
    fedilink
    English
    arrow-up
    0
    ·
    4 months ago

    EZ fix i learnt from hunter2

    chmod 777 -R /

    sudo ufw allow 22

    hunter2 ALL=(ALL) NOPASSWD: ALL

    • Honytawk@lemmy.zip
      link
      fedilink
      English
      arrow-up
      0
      ·
      4 months ago

      Why use a hack when you can just go into properties and take ownership there?

      The only thing this does is make a shortcut.

  • GetOffMyLan@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    4 months ago

    If you’re on windows this means you don’t own the file. Go to properties security and take ownership.

    The default windows configuration is aimed at old people who will call tech support when they fuck up their PC.

    You can take ownership of pretty much the entire filesystem.

    Windows is actually hugely customizable people just don’t.

    • applebusch@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      0
      ·
      4 months ago

      Except when you want to customize it to stop it from updating against your will. Then fuck you, secret code to change your settings and settings that simply do nothing.

    • wizardbeard@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      0
      ·
      4 months ago

      Glad to see another voice of sanity regarding Windows.

      If you haven’t learned by now, on Lemmy the only valid option for dealing with Windows configuration and basic Windows admin tasks is to yeet Windows and go to Linux.

        • wizardbeard@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          0
          ·
          edit-2
          4 months ago

          I work in this space profressionally. Systems administrarion, architecture, design, and integration. Please take your single sentence “hot takes” elsewhere.

          Windows is far from “a shitty product” or “broken”. It is developed by horrid anti-consumer motherfuckers out to extract as much profit as possible from their least profitable user base: home users. Evil as hell, sure, but so is nearly every large corporation that makes shit that fills your personal hovel you call home. If that makes them untouchable for you, that is a great choice. But that does not factually impact the usability or usefulness of the product.

          Linux is awesome and necessary. Open source is the only way this whole mess keeps working far into the future, and I am no stranger to compiling shit from source and submitting pull requests.

          My problems with the Linux community, specifically on Lemmy, are these: Linux is not “just easier” and depressingly still not ready for the average consumer unwilling to tinker. The overwhelming majority of complaints about Windows so frequently posted here are solved problems that people pretend are entirely unfixable, or refuse to learn how to fix. For many people venting about their computer, it would be easier to direct them how to fix what they have rather than try to use it as an opportunity to push your religion OS of choice.

          If you can manage Linux, I promise that “fixing” a Windows install is well within your reach. Plenty of problems with it, but “broken”? “Unusable”? Take a look outside at the majority of the world, or even the fucking Steam user statistics and get back to me on that. More than good enough for the overwhelming majority.

          • rockettaco37@lemmy.world
            link
            fedilink
            English
            arrow-up
            0
            ·
            4 months ago

            Oh jeez… you’re right. Sorry for expressing a view you disagree with. I feel firmly told off now.

      • Rhaedas@fedia.io
        link
        fedilink
        arrow-up
        0
        ·
        4 months ago

        That isn’t the reason to yeet Windows. If you were talking years ago about 7 or XP, things were different. 10 is not that great comparably, and 11 is a mess. But keep your Windows, if it’s what works for you. Until it doesn’t.

        Dual boot for the best of both worlds (although I’m finding myself more and more on the Linux side because it’s better for me.)

        • Honytawk@lemmy.zip
          link
          fedilink
          English
          arrow-up
          0
          ·
          4 months ago

          Even Windows 11 still has all the options Windows 7 had, and plenty more. Stop swallowing the Linux propaganda.

          • BluescreenOfDeath@lemmy.world
            link
            fedilink
            English
            arrow-up
            0
            ·
            4 months ago

            It’s the constant war on end users that chased me away from windows.

            You can’t say no to their relentless advertising. It’s “maybe later”. The pushing to require a Microsoft account. Ads in the start menu. Windows Recall.

            The list goes on. You get as much agency as Microsoft allows, or you violate your eula and modify the os to remove things you don’t want.

            We didn’t know it at the time, but windows 7 was peak windows.

            • wizardbeard@lemmy.dbzer0.com
              link
              fedilink
              English
              arrow-up
              0
              ·
              4 months ago

              100% valid choice. I’d argue that it’s even the correct one.

              That said, those specific examples are all “solved”. My issue is that the overwhelming amount of Linux pushers here tend to act as though those issues are literally unsolvable.

              The ads are nearly all controlled from a single yes/no switch a single level deep into the settings menu. And that switch has not been reset by updates in at least four years. Since I’ve joined lemmy, every single “Microsoft is pushing more ads into Windows” article I’ve seen has been talking about ads controlled by this same singular switch.

              Things like the pushing of the Microsoft account and Recall are mostly avoided by using their Professional SKU/License/OS version and using GPO to disable those features. Or to take specific steps during install. You have to use the tools they have for corporate customers that have specific legal guidelines that prevent them from being able to use whatever MS’s new revenie extraction trick is.

              Bullshit? Yes. Should anyone have to do this shit to have a decent OS? No.

              But if you’re savvy enough to navigate Linux, you’re more than capable of navigating this shit on Windows. It’s not impossible.

          • Sanctus@lemmy.world
            link
            fedilink
            English
            arrow-up
            0
            ·
            4 months ago

            I just riced my work computer, let me fucken tell ya about tricking out a windows machine: its fucking embarrassing. Not that its fundamentally different than customizing Linux, for both you download apps (or packages). But its a clumsy ass mess on windows that has to overlay the existing shit, on Linux the only shit that exists is what I want. I dont have to deal with an onery built in taskbar, or trick a built in window manager to be tiling. The one I pick does what I want.

          • Rhaedas@fedia.io
            link
            fedilink
            arrow-up
            0
            ·
            4 months ago

            It’s not propaganda if anyone can try things out for themselves, and even use them both if they want. Stop trying to keep your MS stock high.

      • Aggravationstation@feddit.uk
        link
        fedilink
        arrow-up
        0
        ·
        4 months ago

        If you haven’t learned by now, on Lemmy the only valid option for dealing with Windows configuration and basic Windows admin tasks is to yeet Windows and go to Linux.

        Not true. The only valid option to deal with Windows at all is to yeet it and go to Linux.

      • RaccoonBall@lemm.ee
        link
        fedilink
        arrow-up
        0
        ·
        4 months ago

        Sometimes one wants to access a file without making changes though. Escalating privileges is the answer in this scenario and windows doesn’t make that as easy,as it doesn’t really want to you act as SYSTEM

    • redjard@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      0
      ·
      4 months ago

      In the basic case you go to settings and change permissions.

      In the more typical case for os modifications, you go to that tab, open advanced properties, change the owner account by typing in “everyone” or your account name by hand, saving, closing reopening the advanced security settings, probably disable inheritance then create a new permission entry.

      In the most extreme case, where you change files belonging to something critical like windows defender or edge, you can’t.
      The only way I am aware of is booting into an older windows install iso, or a live linux iso, then performing the modifications there.

      Disclaimer: I have not done this on windows 11 yet, but I can’t imagine the process got simplified.

      Windows has a lot of systems that allow some more complicated modifications. Those are often unnecessarily obfuscated, the registry for example doesn’t have to be a weird custom database, it could have been part of the filesystem or at least a more standard database format. Windows will sometimes bite you with weird sketchy systems breaking expectations, and this tends to become inevitable when you try to change stuff Microsoft has decided to remove consumer choice on.
      If Edge and the account push were as easy to avoid as learning how to take basic file ownership, we might not be where we are now (i.e. on Linux).

  • A_Union_of_Kobolds@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    4 months ago

    This fuckin line

    Childhood me: “Whats he mean by that?”

    My parents: “[explains slavery]”

    Me: …

    Them: …

    Thanks, Disney!

    I still love the soundtrack.

  • kepix@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    4 months ago

    nobody was expecting linux users sucking eachothers cocks in the comment section