this post was submitted on 27 Apr 2025
33 points (100.0% liked)

Arch Linux

8658 readers
3 users here now

The beloved lightweight distro

founded 5 years ago
MODERATORS
 

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.

top 15 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 3 points 1 month ago* (last edited 1 month 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.

[โ€“] [email protected] 7 points 1 month ago (1 children)

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.

[โ€“] [email protected] 2 points 1 month ago (1 children)

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.

[โ€“] [email protected] 2 points 1 month 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.

[โ€“] [email protected] 5 points 1 month ago (1 children)

why exactly do you prefer run0?

with sudo I can allow certain actions I do myself (e. g. system upgrade or change timezone) to proceed without a password, but require a password for everything else. this is important because some scripts elevate privileges via sudo. if I allowed all sudo without password I might be ruined byone badly written script...

[โ€“] [email protected] 6 points 1 month ago (1 children)

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.

[โ€“] [email protected] 4 points 1 month ago* (last edited 1 month ago)

OH GOD THAT SMILE WILL HAUNT MY NIGHTMARES ๐Ÿ˜ฑ ๐Ÿ˜ฑ ๐Ÿ˜ฑ

[โ€“] [email protected] 41 points 1 month ago (1 children)

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.

[โ€“] [email protected] 13 points 1 month ago

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

[โ€“] [email protected] 3 points 1 month ago
[โ€“] [email protected] 3 points 1 month 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?

[โ€“] [email protected] 8 points 1 month ago (1 children)

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.

[โ€“] [email protected] 5 points 1 month ago

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