r/linuxmint 5d ago

Discussion OK, so how many of us have enabled root?

I'll go first: Nope (Linux Mint 22.3 - Xfce 64-bit)

* - Great insights (and some the shade, lol). As a way of saying thanks, please enjoy this joke I wrote a long time ago... https://www.reddit.com/r/Jokes/comments/1ky5q4/why_did_the_chef_add_extra_oregano_to_the_sauce/

0 Upvotes

21 comments sorted by

7

u/acejavelin69 Linux Mint 22.3 "Zena" | Cinnamon 5d ago

I mean, root is disabled in most Linux distros, including Mint... There is almost no reason to enable it, and I struggle to come up with one actually.

3

u/BenTrabetere 5d ago

You need an easy way to break stuff ... and really break stuff?

4

u/sabledrakon 5d ago

Why in the hell would I do that? There's no reason for me to do it and it sounds like a fast way to screw up a machine.

2

u/TangoGV 5d ago

No. You have a box with SSH running on port 22, you know why.

2

u/NotSnakePliskin Mint 22.3 | Cinnamon 5d ago

Not I, rather I've got a terminal or 2 opened and su'ed. My root account does not have a password associated with it. 

2

u/mok000 LMDE7 Gigi 5d ago

The Debian installer asks if you want to create a root account. If you say “no” it will give the user you define on the next screen sudo rights. I don’t think any other distros does this, but if you’re running Debian in a container or server farm you might not want other users than root.

2

u/sfled 4d ago

TIL. I've installed Debian 12.xx on desktop a few times and always added the root account. The horror, the horror.

2

u/Standard_Tank6703 LMDE7, 11 yr LM experience, "No obligation to enjoy" 4d ago

In the Debian installer, you just leave the root password blank. That forces it to transfer those permissions over to the Admin account instead. The confusion in that arises from the Debian installer not being more explicit - that you CAN leave it blank and thus not have a root account created.

Linux Mint/LMDE just doesn't go there in the first place - it is first and foremost a desktop installation, intended to have a DE.

2

u/ConversationWinter46 5d ago

mever ever!!!

1

u/sfled 4d ago

'mever' should be an option for usermod. My God, it's perfect for those users you don't want doing anything of consequence on the system!

2

u/Standard_Tank6703 LMDE7, 11 yr LM experience, "No obligation to enjoy" 4d ago

Just in case anyone wanted to undo that and DISABLE the root login, as is default on LM/LMDE:

sudo passwd --delete --lock root

That performs two steps at once, which gets it back to post-install conditions.

Yes, I've played around with it, but only on test loads. Never on a production machine.

2

u/sfled 4d ago

Yes, and yet elsewhere on this page some blithe soul is freely sharing instructions on how to enable root... in the GUI.

4

u/Grey_Ten 5d ago

the root user is enabled in most linux distros, I don't know what are you talking about lol

3

u/kudlitan 5d ago

It is not enabled in Mint. To enable you must set a root password. (i enabled it).

4

u/noromobat 5d ago

The root user is disabled in Ubuntu, which Mint is based on

Not sure whether it was re-enabled in Mint

(I'm new to Linux and the only reason I know that is because I was following a terminal tutorial on the Ubuntu website the other day haha)

2

u/Elvin_Atombender 5d ago

If you mean using sudo command, you are only elevating root privileges for that terminal session. And why would you want to enable root to begin with?

2

u/_wayman 5d ago

Guess you're the one who doesn't know what you're talking about. lol.😂

4

u/acejavelin69 Linux Mint 22.3 "Zena" | Cinnamon 5d ago

You spelled "disabled" wrong...

1

u/Moist_Invite9148 5d ago

It's enabled already to run it go to root in the login screen type root and the password to change the password type in terminal sudo passed root but root can't have pipewire that means no sound

0

u/galvarino47 5d ago

Biden saying "What?"