Can I remove sudo from Arch?

a year ago by daggermoon to c/archlinux

Ever since I found out about run0 I've been using that. I don't like having redundant software installed. Is it possible to safely remove sudo from an Arch Linux system? Sorry if this is a stupid question.

Gyroplast 43 points a year ago

In principle, yes, although the optional base-devel group depends on sudo, as do hundreds of AUR packages, and yet other projects you install tend to just assume you have a sudo binary around. Removing sudo will not break your system, but lead to well-deserved anger towards people not declaring their dependencies. :)

If you're ready to deal with the occasional application or script croaking, and subsequently fixing it, you should be fine removing sudo. I would personally consider building a dummy package replacing sudo, including a simple run0 wrapper at /usr/bin/sudo, to have a clean and transparent replacement.

path: 0 16702097, hotness: undefined, score: 43, children: 1
exu 13 points a year ago

Any AUR package implicitly requires base-devel, so there's no requirement to list sudo explicitly.

path: 0 16702097 16704247, hotness: undefined, score: 13, children: 0
semi 9 points a year ago

Since it doesn't come installed by default on a fresh system, my guess would be that you won't break anything fundamental, but this is pure speculation.

path: 0 16701954, hotness: undefined, score: 9, children: 1
Hamartiogonic 6 points a year ago

My thoughts exactly. My bare bones installation didn’t come with one. I had to specifically install it myself.

path: 0 16701954 16703640, hotness: undefined, score: 6, children: 0
CsXGF8uzUAOh6fqV 7 points a year ago

I'm on Artix and I have removed sudo after installing doas. I do have a symlink sudo -> /usr/bin/doas in /usr/bin. Have had this configuration for about a year, nothing broke.

path: 0 16707713, hotness: undefined, score: 7, children: 2
daggermoon 3 points a year ago

I'm a systemD fan myself but I think it's cool that people still use other innit systems. Is there any issues with gaming on Artix? I used it once but didn't really try gaming. I really liked using Void Linux on an old netbook.

path: 0 16707713 16720739, hotness: undefined, score: 3, children: 1
CsXGF8uzUAOh6fqV 2 points a year ago

I started out on Void, then to Arch and finally to Artix. The Artix experience really feels like a mix of Arch and Void to me. As for gaming, I'm really not a big gamer at all, not having played for years. I do remember playing Minecraft without issues as well as a few Steam games such as CSGO. So it's fine as far as I can tell.

path: 0 16707713 16720739 16724284, hotness: undefined, score: 2, children: 0
gi1242 5 points a year ago
path: 0 16704693, hotness: undefined, score: 5, children: 2
daggermoon 7 points a year ago

Honestly I like that it's part of SystemD. I need SystemD for Arch but I don't need sudo. Also, the sudo logo is scary as fuck.

path: 0 16704693 16720761, hotness: undefined, score: 7, children: 1
phantomwise 5 points a year ago

OH GOD THAT SMILE WILL HAUNT MY NIGHTMARES 😱 😱 😱

path: 0 16704693 16720761 16724534, hotness: undefined, score: 5, children: 0
j4k3 3 points a year ago

I think you would need to blacklist it in pacman... however that is done. Otherwise it might just reinstall. It will probably break some script checks in random places, but it is not really a big hassle there. I get the same kinds of random errors with toolbox and distrobox containers that are often missing packages.

Some lower quality script (like I write) might do a check for sudo without error handling, but most will just test on uname or environment variables as far as I'm aware.

Why do you like this run0 more?

path: 0 16701983, hotness: undefined, score: 3, children: 0
Thorned_Rose 3 points a year ago path: 0 16702023, hotness: undefined, score: 3, children: 0
Rodneyck 2 points a year ago

I think it depends on the distro, some have it as a dependency of their whatever, but should not be a problem on minimal install distro's or pure Arch itself.

path: 0 16709671, hotness: undefined, score: 2, children: 0
pacology -8 points a year ago

You can also just use the root user and not bother with any of the sudo nonsense.

path: 0 16708125, hotness: undefined, score: -8, children: 1
raldone01 4 points a year ago

😏

path: 0 16708125 16715726, hotness: undefined, score: 4, children: 0
archlinux
archlinux

@lemmy.ml

login for more options
9917
424
145

The beloved lightweight distro

go to feed...