Word to the unwise and the terribly unprogrammed; don’t change permissions on your deck

Long story short, I did something dumb like;

sudo su (Password) chown deck -r /

Don’t do it

Just

Don’t

You’ll change who owns Sudo And if 0 doesn’t own Sudo

Nobody does

  • BirdWithThighHighs@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    10 months ago

    Out of curiosity, what were you trying to accomplish by running that command? I’ve been a daily Linux user for about 4 years and I’m having some trouble figuring out any reason your user account could need to own the entire filesystem.

    • mmm1808@alien.topB
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      Maybe they thought they could avoid using sudo on system files by owning them?

    • slingwebber@alien.topOPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      To be real chief, I was trying to circumvent “most” permissions by doing said thing. I wanted to drag and drop freely wherever I wanted.

      (I was trying to add Krita shit to pykrita)

      Turns out, no, you don’t and should not own the entire file system.

      • m0ritz2000@alien.topB
        link
        fedilink
        English
        arrow-up
        1
        ·
        10 months ago

        you could just allow root-login, set a root password and login as root. But please dont do that. The same goes for adding your user to the root group.

        • Dr_Allcome@alien.topB
          link
          fedilink
          English
          arrow-up
          1
          ·
          10 months ago

          I mean sure, someone who runs that command shouldn’t permanently be logged in as root, but from a security standpoint it doesn’t really matter on a steamdeck. Doesn’t have any protection if someone else gets their hands on it anyways.

          • Waagh2deth@alien.topB
            link
            fedilink
            English
            arrow-up
            1
            ·
            10 months ago

            If you didn’t understand the steam OS very well you’re asking for trouble switching out of it… It’s pretty tailored to the deck

          • rurigk@alien.topB
            link
            fedilink
            English
            arrow-up
            1
            ·
            10 months ago

            If you have any problems you can ask me or in the official discord of Nobara

      • Grimmjow91@alien.topB
        link
        fedilink
        English
        arrow-up
        1
        ·
        10 months ago

        Oh you sweet summer child. You wanted chmod 777 still don’t recommend but it will do what you want v

  • errepunto@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    10 months ago

    This is the best and the worst of Linux: you can do anything you want, even it destroys everything.

    But you can learn a lot about your mistakes.

  • MetroYoshi@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    10 months ago

    Let’s post some more fun commands that you should definitely run on your machine (very fun)

    sudo rm -rf /

    :(){:|:&};:

    sudo mkfs.ext4 /dev/nvme0

  • SaberJ64@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    10 months ago

    You could try bazzite next instead of SteamOS.

    You’ll need a usb hub or the SD dock, a keyboard mouse and a pendrive with bazzite.

    It’s a better alternative than the official SteamOS. Compresses the whole drive too. It only doesn’t work with the 64gb emmc drive

  • Ivan_Kulagin@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    10 months ago

    I once accidentally did chmod -R 777 / instead of ./ on my laptop. Nothing visibly broke but I’ve decided to reinstall the system just incase

    • errepunto@alien.topB
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      My most epic failure: I wrote “rm -r /lib” instead of “rm -r ./lib”

      The point, the damn point…

  • pyro57@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    10 months ago

    Ooof dude, read another comment about how you wanted to “drag and drop with out auth” and “the steam deck is your PC” that auth is there for a reason if you need to move files around just do it in the terminal with sudo, or open a dolphin window temporarily with sudo. Being root all the time or having your standard user have access to ALL files is a security nightmare. One accidental click on a bad .desktop file, elf binary, or script and boom your whole system is owned along with everything you do on it. With needing sudo for everything only your home folder is compromised… Which is still bad but not as bad.

    Honestly I’d highly recommend checking out distrobox instead of mucking around too much in steamos’s root file system. There’s a handful of things I do to my steamos root system every update, and I have those scripted but its really not meant to be messed with since it installs a new root every update.

    Actually speaking of that, steamos uses an A/B root system… Oh wait… /etc is excluded… So yeah the sudoers file would be shares never mind.

    • slingwebber@alien.topOPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      I appreciate your thorough review. Yeah, I was actually thinking about trying a new Distro on the deck for shits and giggles. I have had this thing since launch, and I’ve borked Steam OS enough times perhaps my next step is to try an OS that doesn’t tell me No as much.

      • Grimmjow91@alien.topB
        link
        fedilink
        English
        arrow-up
        1
        ·
        10 months ago

        Have to start somewhere. I learned though their comments they wanted to stop being asked for passwords when moving files around. What OP wanted was chmod 777 also a Terrible idea but the system would be usable. Horribly insecure but useable.