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
Thanks for the advice, moron
The nice part about learning this on a raspberry pi is you can nuke it without much consequence…
Just keep everything in a docker-compose.yml on github and life is good
Better to learn that on a Steam Deck than your PC.
It IS my PC, aside from this crappy laptop I use as an inbetween storage system
💀
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.
Maybe they thought they could avoid using sudo on system files by owning them?
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.
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.
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.
Why not just add the arch repos or use other distro like Nobara
I’m actually going to try Nobara today and see how it goes
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
If you have any problems you can ask me or in the official discord of Nobara
Oh you sweet summer child. You wanted chmod 777 still don’t recommend but it will do what you want v
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.
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
Wait, what happens if you mkfs the whole disk?
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
I once accidentally did
chmod -R 777 /
instead of./
on my laptop. Nothing visibly broke but I’ve decided to reinstall the system just incaseMy most epic failure: I wrote “rm -r /lib” instead of “rm -r ./lib”
The point, the damn point…
It would have kept working but you would have the most insecurite system possible.
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.
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.
You wanted to change the owner of root why?
Isn’t it obvious? OP has no F’n clue what they’re doing.
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.