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

Linux

48199 readers
896 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
[–] WalrusByte@lemmy.world 12 points 7 months ago (3 children)

From what I hear, doas is more secure. I don't think it matters though, as long as you keep your system updated. I use sudo still.

[–] zephr_c@lemm.ee 9 points 7 months ago

It's really only more secure in the sense that in general more complicated programs have more things that can go wrong with them. Either bugs, or just user error.

That is a valid concern, and most people don't need or use any of sudo's extra features, so it's completely reasonable to switch to doas because of that, but it's not like there's some glaring security flaw in sudo that most people really need to worry about. Especially if they're not doing weird things in the config, which would mostly be the same people who could easily switch to doas anyway.

[–] whyisthesheep@thelemmy.club 5 points 7 months ago

Thank you I think I will stick with sudo.

[–] Yuki@kutsuya.dev 3 points 7 months ago (2 children)
[–] youRFate@feddit.de 9 points 7 months ago

Afaik much smaller code base and as such easier to audit.

[–] whyisthesheep@thelemmy.club -2 points 7 months ago* (last edited 7 months ago) (2 children)

I think it's because sudo only requires a password the first time on each shell.

[–] bleistift2@feddit.de 8 points 7 months ago (2 children)

sudo maintains ‘sudo state’ for 15 minutes. After that you need to enter the password again.

[–] whyisthesheep@thelemmy.club 5 points 7 months ago (1 children)

15 minutes that's good to know thanks.

[–] taladar@sh.itjust.works 3 points 7 months ago

It is a configurable value so don't rely on it being 15 minutes everywhere.

[–] lemann@lemmy.dbzer0.com 2 points 7 months ago

TIL, thanks for this info

[–] stsquad@lemmy.ml 6 points 7 months ago (1 children)

It's entirely configurable but I think by default sudo will "cache" your authentication for a period of time so multiple commands in the same session only need the password entered once. You can even configure sudo to not need a password for certain commands (although obviously you need to be careful you're not opening a hole in your security).

[–] walthervonstolzing@lemmy.ml 2 points 7 months ago

doas is likewise configurable; though the mechanism that keeps track of the timeout is different on OpenBSD (where doas originated) & Linux ---- and there used to be some reservations about the latter implementation.