• dubyakay@lemmy.ca
        link
        fedilink
        arrow-up
        2
        ·
        6 months ago

        Would the genie get stuck in an endless loop, trying to find the owner of the three wishes for wish 2?

        • Shardikprime@lemmy.world
          link
          fedilink
          arrow-up
          1
          arrow-down
          1
          ·
          5 months ago

          Fortunately the wisher is indistinguishable from a behavioral perspective of a P-Zombie, so they can still make wishes

    • Bytemeister@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      6 months ago

      Pretty sure you can do that for home as well, just as long as you aren’t in S mode.

      Otherwise, admin console and clear the file permissions.

      All that being said, for your average user, if you are trying to delete a file and windows says you don’t have permission, it’s probably best to leave it alone.

    • b000rg@midwest.social
      link
      fedilink
      English
      arrow-up
      2
      ·
      6 months ago

      Can you delete Xbox games installed by another administrator? I ran into that problem a few years ago because I reinstalled W10 and had it keep “personal files” which apparently included my Xbox games. I couldn’t touch them at all, but I had W10 Home. I wonder if my problem could’ve been mitigated more easily than a full wipe of the drive? 🤔

      • 🇰 🌀 🇱 🇦 🇳 🇦 🇰 🇮 @pawb.social
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        6 months ago

        I’m pretty sure I can. It just takes a little more effort actually going into the permissions tab of the files because Windows doesn’t have an equivalent to CHMOD AFAIK.

        Though, I am pretty sure you can do those basic permission options without Pro or Enterprise. You just need to be on an administrator account. Other things, like messing with actual system files, requires the Group Policy Editor.

        • dubyakay@lemmy.ca
          link
          fedilink
          arrow-up
          1
          ·
          6 months ago

          Windows has icacls and Get/Set-Acl for permissions. You can also manipulate ownership, although it’s quite convoluted. Just doing takeown is the easiest.

          I’m conflicted on linux vs windows in this regard. I liked ACLs in Windows, but if a software/installer decided to mess it up, it was messed up good, and required lots of manual intervention.

        • floquant@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          1
          ·
          6 months ago

          On any Windows system based on the NT kernel (XP+), there’s an additional access level above “Administrator”: NT Authority\SYSTEM. Some malware can make files hidden or write protected even to Administrator, and afaik there isn’t a legitimate way to obtain that authority

  • axEl7fB5@lemmy.cafe
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    5 months ago

    idk tf chown does, use sudo instead. im not going to read man chown either.

    sudo su
    # do shenanigans in the cli/tui. gui is for noobs
    # nvim, ls, touch, stroke, tease, rm
    
    • Eyedust@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      2
      ·
      5 months ago

      So I’m not the best at this, but this is my best guess (I have no experience in sysadmin, as I’ve only ever been the sole user of my PC and prefer not to network anything).

      Owner #1, smackyboi, has ownership of a file called smutgame.AppImage. This means they can choose who accesses smutgame, if it can execute, if it can be read or written by certain groups, etc.

      Owner #2, luvurealgood, on the system via their own account (or networked computer in the case of server storage) can’t change these settings unless smackyboi says they could, because they’re the owner and can add luvurealgood to the admin group for the file if they want. Smackyboi suddenly writes, sudo chown luvurealgood smutgame.AppImage.

      Now luvurealgood owns that file and can make every change they want to it, including removing smackyboi from accessing it, as they’re no longer the owner. They can lock down the file and forbid it from being executed, etc etc. I believe anyone who is in the admin group of that file can do anything to it as well, except change it’s ownership if its already owned.

      This is just from pieces of info and my tiny experience in Windows sysadmin shenanigans. Someone swoop in and correct me if I got anything wrong.

  • kepix@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    5 months ago

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

  • Passerby6497@lemmy.world
    link
    fedilink
    English
    arrow-up
    23
    ·
    6 months ago

    My work laptop had a pop-up from an application that basically said “we couldn’t restart last time, so you e got 15 minutes until we reboot your computer” with no way to cancel or prevent the reboot.

    Me: the fuck you are

    * proceeds to kill the service and process from admin command line*

    Get fucked fortinet, I’ll reboot when I’m gods damned ready

    • Honytawk@lemmy.zip
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      6 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.

  • chonglibloodsport@lemmy.world
    link
    fedilink
    arrow-up
    11
    arrow-down
    4
    ·
    6 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
      2
      ·
      6 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
        3
        ·
        6 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.

    • Honytawk@lemmy.zip
      link
      fedilink
      English
      arrow-up
      12
      ·
      6 months ago

      You needed permission from the SYSTEM or TrustedInstaller account.

      Which you can give to yourself if you are admin.

      • Jankatarch@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        6 months ago

        Last time I did that it didn’t work so I figured I will restart and it will recognize then. Windows got a 30 minute update.

        When I logged back in my account was gone and still asked for a password. My old password didn’t work.

        Recovery option also fucked my grub. (Probably just the EFI now that I think about it.)

        • naticus@lemmy.world
          link
          fedilink
          English
          arrow-up
          7
          ·
          6 months ago

          That last bit about GRUB is why I never put Windows on the same drive as my Arch, btw install. If they both have their own EFI partitions, Windows doesn’t mess with Linux.

  • jet@hackertalks.com
    link
    fedilink
    English
    arrow-up
    15
    ·
    6 months ago

    Can’t shutdown there is a running program

    /Me finger immediately goes to the power switch

    • slaneesh_is_right@lemmy.org
      link
      fedilink
      English
      arrow-up
      7
      ·
      6 months ago

      I still remember the biggest brainfart moment as a child. I was playing video games on my computer, and kinda just looked around. On the pc was a turbo button, so i pressed it, turbo makes games faster. I looked again and one button said power. I wonder what that doe… I’m dumb.

  • “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
      3
      ·
      6 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.