Sudo Is Bloat. Use Doas Instead!

preview_player
Показать описание
The doas utility is a program originally written for OpenBSD which allows a user to run a command as though they were another user. Typically doas is used to allow non-privleged users to run commands as though they were the root user. The doas program acts as an alternative to sudo, which is a popular method in the Linux community for granting admin access to specific users.

REFERENCED:

WANT TO SUPPORT THE CHANNEL?

SOCIAL PLATFORMS:
💬 IRC: irc://freenode #distrotube

DT ON THE WEB:

FREE AND OPEN SOURCE SOFTWARE THAT I USE:

Your support is very much appreciated. Thanks, guys!
Рекомендации по теме
Комментарии
Автор

Thanks man. I managed to save 3 MB on my 512 GB SSD.

Randomizermx
Автор

alias please="sudo" for a much more polite terminal experience

Автор

"doas is bloated, just use su instead"

stargirl
Автор

Me: takes a step
DistroTube: that's bloat just float

InvalidUser_
Автор

I don't know if I will use this, but one worry with "bloated" software even if it's just a few megs, is attack surface for security vulnerabilities. So saying "but I have a terabyte drive!" is not a good criticism against bloat worries.

blublubblub
Автор

Linux is bloat! Build your own microprocessor and do low level programming instead.

DetectiveAme
Автор

doas and sudo are both bloat. Run everything as root 😂

yaz
Автор

Have I been looking for an alternative to sudo? The thought never remotely crossed my mind. Am I now interested in an alternative because you made a video about it? Absolutely!

AkamiChannel
Автор

Okay, so basically you're trying to tell me that sudo is bloated and complicated? Fine, let's go further.
There is more minimal alternative to sudo named doas. Yeah, okay.
You're telling me that doas is better option for a person who doesn't know much about Linux. Well... no, because if someone is a newcomer to Linux enviornment, they most likely will not be using Terminal much unless they have to.
Moreover, as you clearly displayed in the video, when updating your system you need type "sudo pacman (dash)Syu" on Arch-based distros whereas you need to type "doas (2 dashes) pacman -Syu" with the other one, which requires more conscious effort especially if you got used to using sudo.
Plus, you don't need to know everything about the command to do basic tasks like creating a file as root.
I'm not saying that one or the other is better, because I don't know much about either of those, but I don't think this I will be making the change you proposed or even recommend it to anyone.
Anyway, I enjoy watching your content and wish you the best. Cheers

gobliniarz
Автор

If sudo is bloat then what to tell about Flatpaks and Snaps...

MyszkaAgresorka
Автор

I thought this was meme vid. And maybe it is. But it was also kinda cool. Ty!

uweeby
Автор

Great video. I appreciate your work you do. It's been a while since I was on the front lines with alpha software and your video make me want to dive back in. I may hit your patreon because your channel is deserving of support

crAckZ
Автор

As an OpenBSD & Linux user, I must say this is a good post. You should also do video on tmux (vs screen), unless you already have one? The OpenBSD team have also boosted tmux (amongst many other things).. and it's very powerful, especially when customised.


Thanks for the the post.

randomness
Автор

Of course there are applications dependent on sudo, so to avoid any issues, presuming you don't want to have sudo installed alongside doas, which seem to rather defeat the purpose, you'd need to somehow fool your package manager into thinking that it is already installed, and then you'd need to make an alias for doas, with the -- and input parameters, which is perfectly possible to do, or alternatively, and probably preferably, create a wrapper script that can be invoked when needed. However, even then there are likely to be issues from time to time, as certain applications making use of sudo, require certain sudo specific functionality.

So ya, it is very interesting, but would not recommend.

theignorantphilosopher
Автор

In the official repositories of Arch Linux there is opendoas, with the advantage that isn't necessary to use the double dash flag.

sorathpanzer
Автор

Every since the "cat/grep debacle" any title that has "X is bloat, use Y instead" only reads as a meme to me.

zongzoogly
Автор

I feel specially nerdy because I already knew what Doas is. Had no idea it was a thing on Linux though.

JHACbiz
Автор

sudo is now bloat guys, i don't even know what's next lmao

hicfool
Автор

I've used doas a few times since seeing this video. Not too bad. Sometimes when I am not thinking about it I will inadvertently fallback to sudo and I'll think to myself, 'darn. I should have used doas'.

Phydoux
Автор

I don't think I like 'Doas' at all. To do a system update I have to type 'Doas -- pacman -Syyu' whereas with sudo I type 'sudo pacman -Syyu'. Doas seems more confusing as I have to type '--' if I am using flags for pacman as an example unlike sudo.

johnnyblack