this post was submitted on 13 Aug 2026
16 points (100.0% liked)

Linux

14717 readers
167 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 3 years ago
MODERATORS
 

I'm currently running Alpine 3.24 on a headless mini PC for Pi-Hole, which I've installed using the native install script, and I'm wondering if I can uninstall sudo and replace it with doas-sudo-shim.

Pi-Hole's installer made me install sudo even though I already had doas, and I don't see the point of keeping sudo installed if I don't need it. From what I understand, doas is more secure and has a smaller attack surface.

top 6 comments
sorted by: hot top controversial new old
[–] mmmm@sopuli.xyz 9 points 5 days ago* (last edited 5 days ago)

For starters I'd file a bug against pihole so they support both doas and sudo or drop them altogether and make you use either sudo or doas when executing the script. A hard dependency on sudo is really weird imho.

[–] Redjard@reddthat.com 3 points 4 days ago

I have had a desktop and a laptop on a basic compatibility script, that only implements sudo <command>, for a long time, and not had any issues.
And I installed and compiled a bunch of random stuff.
I would be very surprised if there were issues.

I recommend you set up some log file to log calls to sudo, so you can judge how much that layer is even needed.

[–] frongt@lemmy.zip 1 points 5 days ago (1 children)
[–] mrbigmouth502@piefed.zip 3 points 5 days ago (2 children)

I've considered trying that to see what happens.

[–] frongt@lemmy.zip 3 points 5 days ago

Someone's gotta be the first

Just dew it brah