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
If I remember correctly the default sudo timeout is set to 5 minutes on Yay, you should be able to increase it to something more reasonable
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’.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.
Come on! I’ve stopped logging on as root, can’t we just leave it at that?
Can’t programs steal sudo access if the timeout isn’t 0?
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.
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.
I get tired of typing the same command twice.
helenslunch doesn’t know about
sudo !!
Not even arrow keys
sudo -s
for auditabilitysudo vi
Yeah. After that everything can be done with
!sh
.sudoedit is what you’re looking for. Don’t elevate the text editor.
sudo -s vi &
run0
is the newsudo su
You’re going to start a fight with the
doas
people.And the people that don’t use systemd.
All five of them.