Let’s hear your most controversial Linux takes. No holding back. ![]()
That systemd is fine ![]()
Nailed it!! I think that’s probably one of the biggest. ha
To run a command as root instead of sudo god forbid you insult the purists
I could care less about “purists”. I believe in deliberately TRYING to break things. I don’t mean physically destroying hardware or physical things, I mean trying to break software. My rule is to always have alternatives and backups, so I follow my own rule before I set out on any destructive path.
What I gain from these exercises without fail is a better understanding on how things work. Who needs Reddit for anything? I’ve looked there a few times, but it isn’t a place where I care one way or another what anyone thinks!
Reddit is definitely up for the prize of “Worst Place on the Internet” TBH
Enable a root account when you install Debian. I have seen that go from out-of-favor to controversial to a hill someone would die on. 'S batchit.
I’d be the hill to die on, I don’t use sudo, to me it’s a security hazard. If I hack my way into a system the first thing I’d try is to run sudo to see if I have escalation privileges (I’m working on getting my CEH cert btw) so forcing the users to be part of the super users group (su) or running as root (su -) is a better option in my eyes. Yes it makes me wonder about the “security based” distros that don’t have you create a root account when installing, I’d like tyo know their secret for hardening sudo.
Ha, now that’s a proper downvote-worthy opinion Tim, and it goes nicely with @machiner’s point about people defending the Debian root account.
That said, if you land on a box as a normal user, trying su is just as easy as running sudo -l, and with su everything hangs on one shared root password and you lose the record of who ran what.
For example Kali, they actually dropped root by default back in 2020 and went with a regular user plus sudo. The “secret” to hardening sudo is pretty boring really: always require a password, keep the timeout short, turn on use_pty and logging, only give it to users who actually need it, limit commands where it makes sense, and no root login over SSH.
Good luck with the CEH btw!
@machiner I think Slax, Alpine and Puppy Linux still default to root. Correct me if I’m wrong.
Always require a password = okay, no brainer
I’d use the defaults Debian sets for timeouts
I have no idea about setting up use_pty & logging… there’s an idea for an article for you ![]()
users that actually need it= what if it’s a single user system? That and limiting commands kind of fall into only install what your going to use category (the belief that unused programs are available to be exploited and the exploit goes unnoticed because it’s never used)
No root login over SSH= People do that?! holy tuna the morons ![]()
I mean - I wanna root when I wanna root and I remember when, whatsit, Ubuntu, defaulted to sudo, removing the root password option. I thought that was heavy-handed. Didn’t matter as I was running Debian. Still, it caused a ruckus. Many distros default to sudo.
I don’t know about those distros you mentioned, hydn, as I haven’t tried any of those in a long time
I use sudo, though, because it’s pretty handy to me. And, without a care in the world, I use the NOPASSWD:ALL argument and sometimes people feel a way about that. This here box is just mine. I go right to: visudo immediately after an install and add my user right below the root entry and I don’t think about it again.
As far as allowing root login over ssh, heh, that’s just crazy. Keys. Don’t even allow a password login.
If you ssh as user, make sure you can run sudo on the remote device. ![]()
What’s Reddit? I’ve never heard of it.
IF the system is ALL yours you can even set the NOPASSWD stuff to allow your user NOT to have to constantly require a password; I won’t share the details here; those interested will have to learn how to do that on their own!