I’m in jail because I was not in the sudoer file
then at first day of work:
just use sudo su, we don’t have all day here.
Tell me you use Ubuntu without telling me you use Ubuntu.
Wait till you try this on Debian or non Ubuntu variants.
sudo steam
Sometimes your package manager asks you for root password every minute while doing few hours long update and cancelling process if you don’t enter anything for few minutes, “yay” aur manager looking at you, and you got to do other things than sit and look in the monitor all day long, things like cleaning house or touching grass for example
Wasn’t it 2017 where they had the race condition in
sudo su
as the command elevates up to root and drops back down?Every other year,
sudo su
was not unsafe but merely ghetto. ‘sudo su’ is the dutch-rudder of ‘sudo’.Come on! I’ve stopped logging on as root, can’t we just leave it at that?
just worked a job where I did not have privlages to sudo commands. except su. had to sudo su so I could run a script.
Real pros shuffle across the carpet to build a static charge and do their system administration by electrical fault injection.
REAL pros use butterflies!
Dammit, emacs.
Can’t programs steal sudo access if the timeout isn’t 0?
Still not as bad as
chmod -R 777
.Once had a friend run
sudo chmod -R 777 /
on a (public) Minecraft server we were running back in highschool. It made me die a bit on the inside.Doesn’t it break a lot of things? Half the stuff refuses to work when some specific files have too permissive chmod.
Really only SSH and sudo broke. sudo would still work but you’d have to re-enter your password every time. It was a painful experience and I’m glad I know better now.
Goodbye ssh access
Jesus, every time I have to run glx or vaapi under a container I end up having to do this then cringe.
from the chmod or from the containers?
As a one time noob I may have done this once or more.
To get one thing working I borked everything.
Understanding permissions is pretty basic. But understanding permission requirements for system and user apps and their config and dirs can be a bit overwhelming at first.
Thinking a little change to make your life simpler will break something else doesn’t always register immediately.
Shit, even recently, wondering why my SSH keys were being refused and realising that somehow i set my private keys world readable.
Thank god SSH checks file and dir permission.
Guilty as charged, officer.
sudo -s
for auditabilityI get tired of typing the same command twice.
helenslunch doesn’t know about
sudo !!
Not even arrow keys
sudo vi
Yeah. After that everything can be done with
!sh
.(Edit: This is a joke. There’s a lot of reasons not to do this.)
sudoedit is what you’re looking for. Don’t elevate the text editor.
sudo -s vi &