Submitted by emma in technology
the other day i had to reinstall debian on my home server, as it acted strangely even after i took out the bad ram. i wouldn't be surprised if some operating systems files had become corrupted. the server was running debian 12, and now it would be running debian 13.
well, this upgrade brought with it a new version of systemd that contains the much discussed run0. this is a replacement for sudo that, instead of having a special filesystem flag that makes the kernel unconditionally execute it as root, it has non-privileged processes negotiate with systemd over ipc whether you can have a root shell or not. this eliminates a whole class of theoretical vulnerabilities that might apply to sudo, as that has to run as root before it can even reject access.
(if you didn't understand any of this, the short version is: run0 is sudo 2.)
well, i wanted to give it a shot, so i enthusiastically ran run0 /some/command. it asks for my password. i have to go to my password manager to get it.
a microsecond before i pasted the password in the terminal, the password prompt had timed out and removed itself. i was now staring at my password in plain text in the terminal. had i been quick to hit enter, it would also have worked itself into my shell history. sudo's password prompt, on the other hand, will never time out.
imagine if i were like a streamer showing off my terrible homelabbing skills, and this was a server publicly available on the internet. a hypothetical viewer could have gained access with the password visible on stream, locked me out, and then used my server to mine bitcoin or whatever. doesn't seem too far-fetched to me! but at least they've rooted out a bunch of vulnerabilities that may or may not exist.
i think they've overlooked the forest for the trees here. also i think this is a good lesson about the dangers of changing things that worked fine just to gain some theoretical benefit (in fairness, they aren't the only ones doing that). also, i find my 'run this thing as root' muscle memory is so strong that i would keep prefixing run0 with sudo, so i'd rather run0 have been a drop-in replacement for sudo instead.
so in conclusion, i don't think it's good.
hollyhoppet wrote (edited )
also 'run0' has a higher net distance of typing from home row which is really a concern for comfort imo