this post was submitted on 23 Mar 2024
102 points (95.5% liked)

Linux

48328 readers
659 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I see people talking about doas saying it's just like sudo but with less features. I'm just wondering if there is any situation where you should use doas or if it's just personal preference.

you are viewing a single comment's thread
view the rest of the comments
[–] Communist@lemmy.ml 12 points 8 months ago (14 children)

I just use doas because sudo has a bunch of features i don't care about or use, and doas does everything i need while being significantly smaller.

[–] fuckwit_mcbumcrumble@lemmy.world 10 points 8 months ago (13 children)

Does the size of a 6kb program really make that much of a difference?

Side note: If I'm reading this right (ignoring dependencies) sudo is 6kb while doas is 14kb.

[–] fahfahfahfah@lemmy.billiam.net 16 points 8 months ago (1 children)
[–] atzanteol@sh.itjust.works 18 points 8 months ago (1 children)

Damn, that's like 4 floppies!

[–] pmk@lemmy.sdf.org 5 points 8 months ago (1 children)

The concern is not storage space, but potential bugs leading to security issues. For OpenBSD this is very important, and so they made doas.

[–] atzanteol@sh.itjust.works 1 points 8 months ago (1 children)

I understand the concern - but it's not warranted. LOC is a bad predictor of security. And fwiw /usr/bin/sudo on my system is only 227K.

The OpenBSD team does fantastic work. I'm assuming doas will be a good tool and probably more secure that sudo generally. But "size" isn't the best way to determine that. It's not even a good way.

[–] pmk@lemmy.sdf.org 2 points 8 months ago

Tedu (author of doas) wrote about it in 2015:
"There were some concerns that sudo was too big, running too much code in a privileged process. And there was also pressure to enable even more options, because the feature set shipped in base wasn’t big enough. (As shipped in OpenBSD, the compiled sudo was already five times larger than just about any other setuid program.)"
https://flak.tedunangst.com/post/doas

load more comments (11 replies)
load more comments (11 replies)