• DarienGS@lemmy.world
    link
    fedilink
    English
    arrow-up
    100
    arrow-down
    8
    ·
    edit-2
    1 year ago

    What’s wrong with this? Every OS has permissions that stop users from messing with system files.

    • stappern@lemmy.oneOP
      link
      fedilink
      English
      arrow-up
      50
      arrow-down
      33
      ·
      edit-2
      1 year ago

      this is not the system folder, different drive, old windows install and no not every os has this. luckly…

        • stappern@lemmy.oneOP
          link
          fedilink
          English
          arrow-up
          4
          arrow-down
          7
          ·
          1 year ago

          i just deleted what i needed with another os, i didnt want to format it i needed some space and wanted to keep some folders

      • lemmyvore@feddit.nl
        link
        fedilink
        English
        arrow-up
        61
        arrow-down
        1
        ·
        1 year ago

        If you try to access an old Linux install you could run into the exact same problem. Both Linux and Windows nowadays use filesystems with permissions embedded into them, so if the user on the new install doesn’t match the old one you’ll have a problem.

        • stappern@lemmy.oneOP
          link
          fedilink
          English
          arrow-up
          5
          arrow-down
          31
          ·
          1 year ago

          but i just tried i can delete system folders from a different linux drive with no problems

            • bob_wiley@lemmy.world
              link
              fedilink
              English
              arrow-up
              2
              ·
              1 year ago

              This breaks the system, depending on your current directory when running it. I had an intern do this to a server while in /. We were able to recover through some tomfoolery, but only because he was still logged in. No one else could get into the system after he destroyed the permissions.

          • redcalcium@lemmy.institute
            link
            fedilink
            English
            arrow-up
            13
            ·
            1 year ago

            Certainly not without using sudo right? It’s the same in the windows land, the UAC dialog is windows’ equivalent of sudo.

            • stappern@lemmy.oneOP
              link
              fedilink
              English
              arrow-up
              9
              arrow-down
              8
              ·
              1 year ago

              correct, but why wasnt i given a UAC prompt here? it just says Try again and Cancel

              • redcalcium@lemmy.institute
                link
                fedilink
                English
                arrow-up
                9
                ·
                1 year ago

                Probably due to some sort of idiot-proof protection to prevent people from deleting their windows folder from explorer. Try running a CMD shell as administrator and delete it from the command line instead.

      • Aasikki@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        10
        arrow-down
        4
        ·
        1 year ago

        Why wouldn’t you just format the drive if it had an old windows install?

      • Fushuan [he/him]@lemm.ee
        link
        fedilink
        English
        arrow-up
        11
        arrow-down
        2
        ·
        1 year ago

        laughs because it has the same level of protection as other OSs and thus is quite secure in that regard, right?

        • vojel@feddit.de
          link
          fedilink
          English
          arrow-up
          1
          arrow-down
          14
          ·
          1 year ago

          Laughs in Linux because if I really want to mess things up it wont stop me unless I am not root. Administrator on Winshit means nothing at all, no control over your system.

          • Fushuan [he/him]@lemm.ee
            link
            fedilink
            English
            arrow-up
            10
            arrow-down
            1
            ·
            1 year ago

            You do realize that in this very post they explain that if you mount an old linux drive with another user, you can’t delete stuff either until you remove the flags or change the owner of the old drives’ files?

            You can do the same in windows, too.

            They are not trying to access their own Windows folder, but that of an old drive.

            • vojel@feddit.de
              link
              fedilink
              English
              arrow-up
              1
              arrow-down
              8
              ·
              1 year ago

              Maybe you didnt see I responded to a comment that says that every OS has such dumb mechanisms as mentioned in the post which is def not true. I use Arch btw.

              • Fushuan [he/him]@lemm.ee
                link
                fedilink
                English
                arrow-up
                4
                ·
                1 year ago

                You mention Linux in your comments, but this same thing happens in Linux too! It’s the third time I’m writing this in this comment chain, I’m gonna assume you are a troll since you can’t be this dense. The top comment of this post explains why this also happens in Linux, I mentioned it first and then have you an example. If you can’t ocess that information it’s not my problem. Have a nice day.

  • nottheengineer@feddit.de
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    1
    ·
    1 year ago

    That’s why I carry a ventoy with debian LTS. I went with the full KDE pack, so I get the KDE partition manager in a live boot environment.

    I highly recommend it.

  • Striker@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    I have decided to close this comment section due to ops toxic behaviour. Honestly, I should of intervened much sooner

    • stappern@lemmy.oneOP
      link
      fedilink
      English
      arrow-up
      9
      arrow-down
      4
      ·
      edit-2
      1 year ago

      AH!

      you wish

      [gb@DESKTOP-PO3H6KM d]$ sudo rm -rf Windows/ rm: cannot remove ‘Windows/addins/FXSEXT.ecf’: Permission denied rm: cannot remove ‘Windows/apppatch/AcRes.dll’: Permission denied rm: cannot remove ‘Windows/apppatch/DirectXApps_FOD.sdb’: Permission denied

      its still mounted through windows so same limitations, you would have to pass the drive to WSL and then delete

      like this : in powershell GET-CimInstance -query “SELECT * from Win32_DiskDrive”

      and then wsl --mount \.\PHYSICALDRIVE3 changing the drive number of course

    • stappern@lemmy.oneOP
      link
      fedilink
      English
      arrow-up
      12
      arrow-down
      55
      ·
      1 year ago

      but linux does exactly what you want , ive never been pulled a number like this.

      • Tolstoy@lemmy.world
        link
        fedilink
        English
        arrow-up
        21
        arrow-down
        1
        ·
        1 year ago

        I don’t use Linux but I assume you’re the kind of person typing sudo before every command ^^

        • Vilian@lemmy.ca
          link
          fedilink
          English
          arrow-up
          3
          arrow-down
          7
          ·
          edit-2
          1 year ago

          how? it’s to delete a file in other driver, it don’t get in your way

        • stappern@lemmy.oneOP
          link
          fedilink
          English
          arrow-up
          3
          arrow-down
          24
          ·
          1 year ago

          but its true? theres lots that you cant say against linux but you cant say it doesnt do exactly what you want.

          • Muddybulldog@mylemmy.win
            link
            fedilink
            English
            arrow-up
            16
            arrow-down
            1
            ·
            1 year ago

            Nearly 30 years of LINUX experience. I can definitely say on a regular basis that LINUX doesn’t do exactly what I want.

          • virku@lemmy.world
            link
            fedilink
            English
            arrow-up
            5
            arrow-down
            2
            ·
            1 year ago

            If you know exactly what you want and how to do it.

            I spent countless hours trying to make my display driver working in Linux years ago. I knew what I wanted, but it was impossible. For me at least. I know many who has similar experiences.

            • Vilian@lemmy.ca
              link
              fedilink
              English
              arrow-up
              1
              arrow-down
              3
              ·
              edit-2
              1 year ago

              where are talking about files, not drivers from others companies that depend on their support

              • virku@lemmy.world
                link
                fedilink
                English
                arrow-up
                6
                ·
                1 year ago

                No op just said Linux does exactly what you want. My point is that it sometimes is very hard to know how to do what you want. I am not saying Windows is any better in this regard though.

          • BROMETHIUS@lemmy.world
            link
            fedilink
            English
            arrow-up
            4
            ·
            1 year ago

            I want it to play rocket league. Without using wine or proton.

            There are some things that Linux won’t allow you to do natively. I understand it’s better because it’s open, but come on.

          • AirBreather@lemmy.world
            link
            fedilink
            English
            arrow-up
            15
            ·
            1 year ago

            you cant say it doesnt do exactly what you want.

            As someone (a different guy than whom you’re replying to) who has primarily used Linux-based systems in personal settings for about 15 years or so, I can and will say that.

            For the most part, Linux-based systems tend to do exactly what you tell them to do. Whether or not this is exactly what you want, however, is a slightly different point.

      • ZephrC@lemm.ee
        link
        fedilink
        English
        arrow-up
        8
        arrow-down
        2
        ·
        1 year ago

        Linux does exactly what you tell it to. If all your experience is with systems designed by engineers trying to guess what you really want, that can be confusing and intimidating.

  • krondo@lemmy.world
    link
    fedilink
    English
    arrow-up
    17
    arrow-down
    3
    ·
    1 year ago

    Uga uga i dont know anything to do with computers but linux good windows bad give me upvote now uga.

  • Pantsofmagic@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 year ago

    The one folder where this is really painful is the WindowsApps for Windows store stuff. I had one situation where I reinstalled Windows and I had a couple of hundred gigs of games in a WindowsApps folder. The new install wouldn’t use the folder, so it became wasted space. The new install also wouldn’t let me delete / reclaim the directory no matter how much dicking around with permissions I did. I think I had to kill it from either Linux or a USB Windows installer command prompt.

    • Redex@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 year ago

      Yeah, I don’t agree with the post, I think for an OS like Windows, which is used by a lot of non-techy people, things like OP’s post should be the norm, you shouldn’t be able to brick your sistem easily.

      But I feel your pain for windows apps, they’re such fucking cancer. I had the same problem when I tried to uninstall Sea of Thieves because the installer / Microsoft Store app was broken.

  • tomi000@lemmy.world
    link
    fedilink
    English
    arrow-up
    20
    arrow-down
    3
    ·
    1 year ago

    I dont even know anymore. These “Windows bad” posts get so stupid by now I can only assume it is satite at this point. Im just waiting for “Task Bar is 20px high instead of 21, literally unusable”

    • TheGreenGolem@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 year ago

      Yeah, like linux doesn’t do this shit all the time. Permission denied always. I’M YOUR FUCKING GOD, DON’T EVER DARE TO GIVE ME PERMISSION DENIED.

    • GiuseppeAndTheYeti@midwest.social
      link
      fedilink
      English
      arrow-up
      10
      ·
      edit-2
      1 year ago

      Linux is so cool, but boggles my mind. I just simply don’t have enough time to really get a good grasp on the terminal and commands associated with it. It took me 3 days worth of attempts from 8am when my fiance leaves for work to 5pm to finally get a pi-hole set up in tandem with a self hosted VPN with wireguard. I just got it up and working on Wednesday this week. I know there’s a tutorial on the pi-hole website, but with no Linux terminology experience it was tough to know what I was supposed to be typing into the terminal. Several times I was typing:

      sudo -i
      cd /etc/wireguard
      umask 077
      name="client_name"
      echo [interface] > "name"
      

      I thought the name= line would tell the terminal that I wanted to replace all the following lines that “name” appeared in with “client_name” automatically. Then I figured out that they were just telling me that I needed to replace “name” in their terminal commands with what I wanted to name the associated files I was creating lol. It was a real man…I’m a fucking moron moment.

      • intensely_human@lemm.ee
        link
        fedilink
        English
        arrow-up
        5
        ·
        1 year ago

        The first progress is always the slowest.

        It won’t always take you an entire day to get anything done in Linux. That’s just the pace you’re at as a beginner. As your knowledge expands you move faster.

        • GiuseppeAndTheYeti@midwest.social
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 year ago

          That makes total sense. I never really considered that I have been learning Windows over the past 20 years. It was just learning “computer”. And I really appreciate the compliment to my dedication on it! I’m really happy with the result and I learned more about linux/networking/LePotato/Pi-hole than I would have guessed at the beginning of this whole project. From battling with Wireguard server configuration…ufw and portforwarding…client configuration…back to ufw…IP configuration…keys…etc. Troubleshooting was a maze sometimes 😂. One more thing before I go.

          About the name thing. Say I type:

          name="Gerald"
          wg genkey > ${name}.key
          

          Would my output then be a key generated by Wireguard and named “Gerald.key”? Or would it need to be:

          wg genkey > "${name}.key"
          

          Or like in your example:

          wg genkey > $name.key
          

          I think I’m mostly getting caught up in when the quotations are necessary and when they’re not.

    • 1984@lemmy.today
      link
      fedilink
      English
      arrow-up
      5
      arrow-down
      1
      ·
      edit-2
      1 year ago

      It’s not very commonly used though. I have seen this command only a few times. I don’t feel like Linux users are missing stuff like this, so they dont use it.

      But thanks for the long comment, was a nice read. :)

  • Mininux@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    61
    arrow-down
    1
    ·
    edit-2
    1 year ago

    I hate windows too but this is something normal that also happens on Linux. Take a drive from another system and you won’t be able to edit its protected files without root access.

      • KyuubiNoKitsune@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        edit-2
        1 year ago

        That’s really bad logic and you’re missing the point here. trusted installer is the owner of the folder. The fact that it’s an old windows drive or that your an admin makes absolutely no difference. It’s a file system ACL, those ACLs don’t just magically disappear from the drive when it’s no longer the system drive.

        Take ownership of the folder, add your account or the everyone security identifier with full access permissions and then delete it.

        I’m sorry to say this but the fact that you’re complaining about this is more a reflection on your lack of understanding of how file system ACLs work, in any OS, than anything else.

        The braincells were not there to begin with, you didn’t lose them. <= that’s a joke, I’m not trying to be mean.

            • stappern@lemmy.oneOP
              link
              fedilink
              English
              arrow-up
              3
              arrow-down
              16
              ·
              1 year ago

              because a non administrator shouldnt be able to mount drives and other admin operations. an admin should be able to do anything on that machine

              • SuperFlue@kbin.social
                link
                fedilink
                arrow-up
                9
                ·
                1 year ago

                ACL’s are an integral part of most filesystems.
                So yes the drive absolutely has a say in this (technically the NTFS filesystem) in combination with the OS’s filesystem driver.
                The Windows folder is set to be owned by the TrustedInstaller SID (S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464) which is a “well known” Security Identifier.
                This identifier is the same accross Windows systems in a similar way root is UID 0 on Linux.
                Therefore the access rights for TrustedInstaller persists across Windows installs, and also other rights that are defined on the filesystem object.

                Linux uses mainly POSIX ACL which is “fairy simple”, while NTFS ACL can be very complex.
                Should also note that the the UNIX and UNIX-like world there is also NFSv4 ACL which is comparable to NTFS ACL.

                But the basic idea persists across almost all filesytem ACL.
                The user that is running the command must have the right user ID (that is UID/GID in Linux and SID in Windows) that has the correct access rights to do the action you want.

                With Windows administrator rights you can indeed delete everything if you really want.
                But then you have to give your administrator account the right access tokens or you need to impersonate the account in question (both of which are possible if you have an local administrator account, but does require the techincal know-how).

                In Windows a lot of these things are in place both to prevent users from shooting themselves in the foot, but also to provide defence-in-depth against malware.

          • Muddybulldog@mylemmy.win
            link
            fedilink
            English
            arrow-up
            19
            ·
            1 year ago

            The drive doesn’t have a say. The permissions surrounding the TrustedInstaller account have a say. The account existed on your first Windows install and also on your new one hence the permissions and associated restrictions persevere. This is expected behavior.