this post was submitted on 23 Mar 2024
103 points (95.6% liked)

Linux

48069 readers
766 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.

top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 7 months ago

Well, I use sudo-rs, so...

[–] [email protected] 5 points 7 months ago

Security may be more likely to approve some users having doas, sudo is a no go in many restricted environment.

[–] [email protected] 3 points 7 months ago

BTW I use pkexec

[–] [email protected] 7 points 7 months ago

You feel smarter... Yeah, that's pretty much it.

[–] [email protected] 8 points 7 months ago

Well, i believe in all showcased cases from people here, they are NOT replacing sudo entirely (Except if some are from BSD or if I'm incorrect with this assumption). They are just replacing their user habit with doas and use that command instead. In the end, all unix scripts or apps expect using sudo (If not, su) so... ### What's even the need to ?

  • Size : Installed on top of the already system present sudo.
  • Security : Only perhaps if you made a sudo alias to doas (But since it isn't entirely 1:1 identical, if anyone have a cleaner way of implementing that, I'm all hear)
  • Simplicity : You now have two tools. A easy to use keycard, and a key. The second is more complicated to use, so you use it rarely but it's still two tools instead of one.
  • Less dependencies : Again, unless you can actually replace it ENTIRELY, it's just an added tool (Still almost dependency free)

Really looking to corrections if i do some

[–] [email protected] 2 points 7 months ago

I just have a root terminal on the side.

[–] [email protected] 6 points 7 months ago

I find the config syntax cleaner.

[–] [email protected] 8 points 7 months ago

Doas has about 90% of features with 10% of code size of sudo.

And rdo/ssu have ~140 lines of C code. Anyone knows similiar?

[–] [email protected] 16 points 7 months ago (1 children)

Doas is more secure, sudo has had a few critical vulnerabilities in the past, because the codebase is much larger. Sudo has like a million features that most people don't need, but they significantly increase attack surface.

[–] [email protected] 17 points 7 months ago

Doas is more secure, sudo has had a few critical vulnerabilities in the past, because

.. it's newer. You wanted to say "it's newer." It has nowhere near the history, and looks better because it's newer.

Please, now, trot out the "use sudo if you're old" memes, because we grew that skin extra thick over the systemd counter-hate.

[–] [email protected] 5 points 7 months ago (1 children)

doas uses like 10MIB less of mem than sudo.

[–] [email protected] 8 points 7 months ago (1 children)

What's the point of using MiB if you're just gonna say "like" lol

[–] [email protected] 2 points 7 months ago (1 children)

Because it is not exactly 10MiB. Should have used about instead of like though.

[–] [email protected] -4 points 7 months ago (1 children)

I mean just say MB if you're not being exact

[–] [email protected] 8 points 7 months ago* (last edited 7 months ago) (1 children)

MiB and MB are not the same thing. Just that many CLI tools in linux use MiB instead so I just got used to typing MiB lol.

[–] [email protected] 5 points 7 months ago (2 children)

The difference between MB and MiB is 24 kilobytes

My point is that if you're already estimating, the difference is negligible

[–] [email protected] 3 points 7 months ago (1 children)

24 kibibytes. I dislike the annoying difference between kiB and kB, etc, etc as I also think in kB and MB as the binary values because that's how I was taught for many years.

[–] [email protected] 0 points 7 months ago (1 children)

Again. If you're not being accurate then theres no point jn being precise

[–] [email protected] 1 points 7 months ago

You're replying to the wrong person. I added some info over the difference between your comment and someone else's acktually comment.

I don't care either way; an approximation in MiB and MB is the same difference to me. The other person and yourself have got into a debate about nothing in my opinion.

[–] [email protected] 1 points 7 months ago* (last edited 7 months ago)

I'm not arguing for or against your point. But it's actually a difference of 48.576 kB to be pedantic

[–] [email protected] 16 points 7 months ago (1 children)

doas, afaik, was originally made for FreeBSD, so some of its features aren't compatible with/haven't been implemented for Linux. That may or may not be an important issue for you to consider.

[–] [email protected] 14 points 7 months ago

OpenBSD actually, but close

load more comments
view more: next ›