this post was submitted on 01 Jul 2023
33 points (94.6% liked)

linuxmasterrace

2166 readers
1 users here now

A community for Linux enthusiasts.

May your htop stats be low and your beard grow long

Welcome to !linuxmasterrace@feddit.de former r/linuxmasterrace members and existing Lemmyverse citizens: Feel free to join the newly created !linuxmasterrace@feddit.de community.

Let’s make the full transition to the decentralized Fediverse!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] blackstrat@lemmy.fwgx.uk 10 points 1 year ago (7 children)

Why should I use doas instead of sudo? It's not even less typing.

[–] zicrons@sopuli.xyz 4 points 1 year ago (4 children)

It is a much simpler program than sudo. A simpler and less complicated implementation means less vulnerabilities.

sudo had some serious vulnerabilities in the past: https://www.helpnetsecurity.com/2021/01/27/cve-2021-3156/

[–] blackstrat@lemmy.fwgx.uk 3 points 1 year ago* (last edited 1 year ago) (3 children)

Can you actually remove sudo from a system without breaking stuff? I can image there's some stuff, scripts etc that depends on it. Unless you can alias it away?

[–] zicrons@sopuli.xyz 3 points 1 year ago

I use my Linux system without sudo, it does break some (badly written) scripts. You can fix it by either creating a symlink in your path or replacing sudo to doas on those scripts.

But I rarely encounter these issues. Usually system applications won't be affecting by a missing sudo binary, as their privileges are typically managed by polkit or similar.

load more comments (2 replies)
load more comments (2 replies)
load more comments (4 replies)