Yeah I only use sudo once, for the su.
… but why? “sudo -i” is a thing. Why get another program involved?
Some people just want to watch the world burn.
I don’t think many people know about this feature
Personally it’s because my fingers are already on “s” and “u”.
It’s easier to just call su once and run every single command as root rather than having to randomly use sudo for some commands and not for others (/s if it’s not obvious)
But you can do that without involving ‘su’.
I don’t use sudo.
Ever.
It’s disabled by default in slackware, and I don’t know why it’s even there.Tell me how you can run rm rf / no preserve root without su, I’m waiting.
Is this some kind of joke going over my head or something?
Run “sudo -i” then run “rm -rf --no-preserve-root”
Yeah I’m just joking around. I pretty much never use su except in rare cases
Straight to jail.
I just delete every user but root.
I’ve seen that piece, mostly in beginner instructions, for a root shell. But does it even make sense? Why run a elevated su? Just run su.
I think some distros don’t expose or create a root password and make you do sudo su. I might be wrong.
Shut the front door!
In a lot of situations it’s actually bad to use sudo because it can impact settings that make programs or file ownership go to root instead of the user.
sudo -i -u user -s /usr/bin/bash
But rm -fr / * seems not to work for removing the French language pack. Can someone confirm if it works with sudo?
Works fine with sudo, removes all the French bloat.
I see French bloated my system to the fullest!
Glad you fixed it. Don’t forget to reboot.
Ah, I see your problem, you need to add
--no-preserve-root.See the French are super into wine - and grape vines are notoriously hard to get rid of, so if you want to really get rid of the French language pack, you need to rip that grapevine out by the root (e.g. don’t preserve the root). Otherwise, the French language pack will just grow back harder and Frenchier than before.
Sacrebleu!
Mondieu!
How could I have forgotten that?
How else will the OS know I’m serious ?
“Yes, Do as I say!”
Oh, you mean better use doas everywhere? Got it.
sudon’t tell me what to do
su:

Don’t need sudo if you’re always root.
Now excuse me. I need to call the bank and find out why my checking account is suddenly $0.
And yet half the time when I’m root I preface with sudo. I can’t stop myself!
IMO the “year of the Linux desktop” will come when distros are designed for people who shouldn’t even be allowed to use sudo.
Let me introduce you to atomic distros.
I moved my father on Bluefin 1.5 years ago from his antique MacBook Air. He doesn’t know
sudoexists. He has never heard ofujust. He doesn’t even command line. He hasn’t had to do a single update because it all happens in the background. He just… uses it.doesn’t even have to be atomic, I rescued my wife’s shit laptop using Ubuntu Mate (snaps booing in background) and she has never seen the command line unless I open it. It’s been like that for over a year at least.
Yes, but contrary to atomic distros, it’s not explicitely designed to be as administration free as possible.
sudo man sudo
I mean, yeah, it’s your computer. Just login on the root account, nothing bad ever comes of that, not even once, nope.
It’s a lesson many of us learn the hard way.

sudo bash
sudo -i
ooo what’s that one do?
Starts an interactive session as root (or another user when combined with -u)
It provides a login shell - like
su -So you get the full environment from that user
…Yes, I know.
Not everything is all about you, dude.
sudo -istarts a login shell as the specified user. Login shell means it’ll read that user’s bashrc/zshrc/whatever other login files and apply those. If no user is specified, then it’ll login as root, so you get a root shellGives you a shell where you basically are sudo for every command.
Sudo !!
👌👌👌 perfection
I came here to look for this.
So for all that time one could do THIS?
Pfft. Real men always log in as root.
You got that right. https://www.garyshood.com/root/





















