Sudo Is Bloat. Use Doas Instead!

  Рет қаралды 55,063

DistroTube

DistroTube

Күн бұрын

Пікірлер: 385
@MorsMeld
@MorsMeld 4 жыл бұрын
Doas I say, not as sudo.
@not_homer_simpson
@not_homer_simpson 4 жыл бұрын
Hahhahaahaha this is Genius mate! You made my day.
@Randomizer92mx
@Randomizer92mx 4 жыл бұрын
Thanks man. I managed to save 3 MB on my 512 GB SSD.
@jjbailey01
@jjbailey01 4 жыл бұрын
Security wise, would you rather audit the sudo code base, or the doas code base?
@champfisk5613
@champfisk5613 4 жыл бұрын
Lmao
@jeremydoerksen5988
@jeremydoerksen5988 4 жыл бұрын
@@jjbailey01 Agreed
@bokabu9664
@bokabu9664 4 жыл бұрын
😂
@RaduUrsache
@RaduUrsache 3 жыл бұрын
@@jjbailey01 none, its insane to ask this to everyday users.
@stargirl3352
@stargirl3352 4 жыл бұрын
"doas is bloated, just use su instead"
@aperson4475
@aperson4475 4 жыл бұрын
CustomizationPro switch user is bloated, uninstall every operating system in your pc instead.
@Tomab89
@Tomab89 4 жыл бұрын
@@vuraniute9571 switch user is bloated, permanently use root instead.
@goll6964
@goll6964 4 жыл бұрын
@Digital Crow Computers are bloated, we gotta go back to the good old days and do math on abacuses.
@qprrwfjysfjjjwrlwwgqxhwjj275
@qprrwfjysfjjjwrlwwgqxhwjj275 4 жыл бұрын
@@goll6964 abacus is bloated, use fingers for math
@marcello4258
@marcello4258 4 жыл бұрын
@@devikakrishna4464 your head is bloated just wait until the problem solves itself
4 жыл бұрын
alias please="sudo" for a much more polite terminal experience
@SwiatLinuksa
@SwiatLinuksa 4 жыл бұрын
Good!!!! :))
@muydale
@muydale 4 жыл бұрын
please rm -rf /*
@aiosquadron
@aiosquadron 4 жыл бұрын
Anónimo DON'T DO IT. It will wipe your computer.
@jarnobot
@jarnobot 4 жыл бұрын
alias please='echo sudo $(history -p !!) && sudo $(history -p !!)'
@santiagolerin
@santiagolerin 4 жыл бұрын
I replaced sudo !! With fuck, so when I forget to use sudo, i can be rude to my computer
@DetectiveAme
@DetectiveAme 4 жыл бұрын
Linux is bloat! Build your own microprocessor and do low level programming instead.
@_yuri
@_yuri 4 жыл бұрын
human lifeform is bloat become a bacteria
@GertBoers
@GertBoers 4 жыл бұрын
@@_yuri Or a fungus. ;)
@zeroday5441
@zeroday5441 4 жыл бұрын
@@GertBoers Nah that would be the Orks of the Warhammer 40K
@rothbardfreedom
@rothbardfreedom 4 жыл бұрын
Matter is bloated, only energy waves are valid.
@DetectiveAme
@DetectiveAme 4 жыл бұрын
@@rothbardfreedom The Bing Bang was bloat! Before the universe existed things were truly minimal.
@1yaz
@1yaz 4 жыл бұрын
doas and sudo are both bloat. Run everything as root 😂
@Waitwhat469
@Waitwhat469 4 жыл бұрын
users are bloat, have only root as user lol
@elsandosgrande
@elsandosgrande 4 жыл бұрын
@@Waitwhat469 Did you get that idea from Kali Linux?
@mehmetalibayram7869
@mehmetalibayram7869 4 жыл бұрын
root is bloat just use installer shell
@mehmetalibayram7869
@mehmetalibayram7869 4 жыл бұрын
@Nicefisher cd is bloat cuz of cd tray just use grub or bios commandline.
@mehmetalibayram7869
@mehmetalibayram7869 4 жыл бұрын
@Nicefisher HAHAHAHAHAHAHAHA
@blublubblub
@blublubblub 4 жыл бұрын
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.
@jjbailey01
@jjbailey01 4 жыл бұрын
Exactly. Malicious code is easier to hide in a bloated code base.
@jjbailey01
@jjbailey01 4 жыл бұрын
At least you have an informed opinion and make your choice knowing that. Too many people make the blind assumption that the worry about bloat is strictly about filesize. The more complex the system, the more error prone it is. Needless complexity is an invitation for failure. In this day and age of terabyte drives and multicore processors, no intelligent person is going to be against bloat because of storage space and clock cycles. There is still a valid and practical reason to detest bloat. Bloated software is more prone to bugs and security flaws. This is exactly why the OpenBSD project wrote doas and kicked sudo to the curb.
@VastyVastyVoid
@VastyVastyVoid 3 жыл бұрын
@@jjbailey01 not exactly. Bloat does matter in itself. Sure, simply running it won't register. So it's fine. Right? Now stick it in a loop. Then loop that loop. Pretty soon we're talking real money. And there's always cache misses to consider.
@VastyVastyVoid
@VastyVastyVoid 3 жыл бұрын
@@TheTurnipKing True. It comes down to what you mean by "well". Me, I consider composability an important metric here, more important than having tons of extra functionality. If you want a flexible sudo, find a way to build it without making it a monolith.
@D00000T
@D00000T 3 жыл бұрын
@@jjbailey01 you’re right but this is also sudo, not some huge piece of software. It really isn’t hard for the developers of sudo to just maintain a good security testing habit since its really not a huge program or a super complicated one. Also you have to be a bit more realistic on the potential of security risk from bloat. Comparing how different users manage their computer is a better measure of security risk than comparing windows to linux security risk which in turn is a better measure than the program you use to access super user privileges in the linux terminal. There are a lot of other factors that have a higher risk of causing harm to your system than sudo with some that you can’t even change
@InvalidUser_
@InvalidUser_ 4 жыл бұрын
Me: takes a step DistroTube: that's bloat just float
@AkamiChannel
@AkamiChannel 4 жыл бұрын
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!
@Mr.Finkel
@Mr.Finkel 4 жыл бұрын
it's taking all my will power to not install doas. "sudo is not bloat, sudo is not bloat, sudo is not bloat" :)
@gronki1
@gronki1 4 жыл бұрын
Actually I'm still not interested in replacing sudo 🤔
@jjbailey01
@jjbailey01 4 жыл бұрын
I had already switched to doas long before this video. I have absolutely no intent of turning back.
@MyszkaAgresorka
@MyszkaAgresorka 4 жыл бұрын
If sudo is bloat then what to tell about Flatpaks and Snaps...
@okgfwij
@okgfwij 4 жыл бұрын
Exactly.
@sorathpanzer
@sorathpanzer 4 жыл бұрын
In the official repositories of Arch Linux there is opendoas, with the advantage that isn't necessary to use the double dash flag.
@sorathpanzer
@sorathpanzer 4 жыл бұрын
@femboy fox Yes, originally from OpenBSD guys.
@derisis13
@derisis13 3 жыл бұрын
Does it support piping? I had issues with the slicer69 port (it reads the pw from stdin no matter what)
@jjbailey01
@jjbailey01 3 жыл бұрын
@@derisis13 I never had issues piping with doas
@uweeby69
@uweeby69 4 жыл бұрын
I thought this was meme vid. And maybe it is. But it was also kinda cool. Ty!
@crAckZ111
@crAckZ111 4 жыл бұрын
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
@JHACbiz
@JHACbiz 4 жыл бұрын
I feel specially nerdy because I already knew what Doas is. Had no idea it was a thing on Linux though.
@abel6580
@abel6580 4 жыл бұрын
alias doas="doas -- " alias sudo="doas"
@michaeldina1103
@michaeldina1103 4 жыл бұрын
Ag Thanks! That’s a fantastic idea!
@jobowobo6700
@jobowobo6700 4 жыл бұрын
alias sudo="su -c"
@PearComputingDevices
@PearComputingDevices 4 жыл бұрын
alias = "does"... or "do" but "do" might conflict with another command.
@SoundToxin
@SoundToxin 4 жыл бұрын
@@PearComputingDevices You can always access the original command by escaping it, like "\doas" instead of "doas", so it's pretty safe to use an alias that's an existing command. Most distros I've used have "ls" aliased to ls with a couple extra arguments to color the output and such.
@jjbailey01
@jjbailey01 4 жыл бұрын
alias doas="sudo rm -r /"
@theignorantphilosopher4855
@theignorantphilosopher4855 4 жыл бұрын
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.
@WilliamLDeRieuxIV
@WilliamLDeRieuxIV 3 жыл бұрын
5:49 when running **doas updatedb** Did you actually have to enter the password for **root** or for **dt** ? If you had to literally enter it for **root** it sounds like step backwards when compared to **sudo**
@randomness3235
@randomness3235 4 жыл бұрын
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.
@peacemekka
@peacemekka 3 жыл бұрын
If a program's extra features is not getting in your way then there's pretty much no reason to replace it.
@cordovajose5693
@cordovajose5693 Жыл бұрын
Apparently it's taking 3 MB of disk space and he needs to reclaim those 3 MB back.
@osgrov
@osgrov 4 жыл бұрын
At first I was sure you were in a trolling mood, but then.. This is actually great. Made the switch, thanks! :D
@Aikidox49
@Aikidox49 4 жыл бұрын
I'm actually going to replace sudo with doas. Great video!
@zongzoogly4549
@zongzoogly4549 4 жыл бұрын
Every since the "cat/grep debacle" any title that has "X is bloat, use Y instead" only reads as a meme to me.
@Phydoux2112
@Phydoux2112 4 жыл бұрын
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'.
@jjbailey01
@jjbailey01 4 жыл бұрын
Uninstall sudo. Why keep it around?
@fuseteam
@fuseteam 4 жыл бұрын
_makes an alias sudo="doas"_
@DistroTube
@DistroTube 4 жыл бұрын
You are one of those people that fixes everything with duct tape, aren't you? :D
@fuseteam
@fuseteam 4 жыл бұрын
@@DistroTube maybe? 🤣🤣🤣 i mean i once wrote script that sets the touch screen correctly every 30 seconds or so in a dual screen set up xD
@AaronStarkLinux
@AaronStarkLinux 4 жыл бұрын
LMAO
@Waitwhat469
@Waitwhat469 4 жыл бұрын
maybe sudo="doas \"$@\"" to turn all of the args into a string to be passed Gotta make sure you use the 100mph ducktape you know?
@fuseteam
@fuseteam 4 жыл бұрын
@@Waitwhat469 oho~
@mendel6101
@mendel6101 4 жыл бұрын
permit :wheel permit nopass
@jjbailey01
@jjbailey01 4 жыл бұрын
You might want to throw keepenv in there. Unless of course you're good at bouncing between between two totally disparate user profile environments.
@mendel6101
@mendel6101 4 жыл бұрын
@@jjbailey01 that's a really cool option, I'll keep it in mind!
@fuseteam
@fuseteam 4 жыл бұрын
sudo does more that just grant root privs?
@xeriab
@xeriab 4 жыл бұрын
Yes, it can run commands as other users not just super users, and it can be used with RBAC (SELinux)
@fuseteam
@fuseteam 4 жыл бұрын
@@xeriaboh cool, i did know you can log in as other users, just forgot about it hehe......... RBAC?
@xeriab
@xeriab 4 жыл бұрын
@@fuseteam Role Based Access Control
@fuseteam
@fuseteam 4 жыл бұрын
@@xeriab ah cool!
@softwarelivre2389
@softwarelivre2389 2 жыл бұрын
I used it on postgresql all the time to enter as a different user
@SunIsLost
@SunIsLost 3 жыл бұрын
DistroTube in 2030: GNU/Linux is Bloat. Use Open BSD Instead!
@gobliniarz7393
@gobliniarz7393 4 жыл бұрын
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
@gmartineza8775
@gmartineza8775 3 жыл бұрын
Damn, I thought that title was a meme, and this was going to be a discussion about how bloat doesn't really matter or something like that
@WilliamLDeRieuxIV
@WilliamLDeRieuxIV 3 жыл бұрын
I don't really get the point of sudo vs doas. 1. Bloat / options most users won't touch (doas may have smaller installed size, but it also has options that most won't use -- which is also bloat) 2. Sudo's config file is too complicated compared to doas -- you don't have to touch sudo's config unless you need to (the defaults work out-of-the-box). To me doas is just the same old song in a different key -- eg. a different way of doing things, but not really different enough from sudo to matter.
@fanaFSF
@fanaFSF 3 жыл бұрын
"one line". With sudo you don't need even one. Just add the user to the sudo group
@hicfool
@hicfool 4 жыл бұрын
sudo is now bloat guys, i don't even know what's next lmao
@jjbailey01
@jjbailey01 4 жыл бұрын
Sudo has been bloat for a long time.
@dolorsitametblue
@dolorsitametblue 4 жыл бұрын
"Arch/Debian/Fedora/*insert any distro here*" is bloat, use TinyCoreLinux instead (11mb in size)
@Amaraticando
@Amaraticando 4 жыл бұрын
cat is bloat
@AlexIstrate_Ro
@AlexIstrate_Ro 4 жыл бұрын
st is bloat. Use the tty
@RP-kr2mg
@RP-kr2mg 4 жыл бұрын
Puppy Linux is bloat, use Emacs instead
@matizArts
@matizArts 4 жыл бұрын
OpenBSD gang rise up!
@dsedchenko
@dsedchenko 4 жыл бұрын
Doas is available in community repo as "opendoas"
@POI5ONX
@POI5ONX 4 жыл бұрын
I Think at this point you need to make a bloat playlist, But then again that would be bloat. The mind boggles!
@424ever
@424ever 4 жыл бұрын
We definitely need an alternative to "yes", it's so bloated!
@yannisl8259
@yannisl8259 4 жыл бұрын
Use "Y"
@DistroTube
@DistroTube 4 жыл бұрын
I removed "yes" from speech years ago. I found "ok" works just as well.
@jjbailey01
@jjbailey01 4 жыл бұрын
Just say no.
@j.h.6672
@j.h.6672 2 жыл бұрын
I guess he meant the Linux 'yes' command which prints 'y'.
@kmemz
@kmemz 4 жыл бұрын
I think that the line that most people want to put in their doas.conf would be: "permit persist keepenv :wheel as root" "permit" gives the okay, "persist" makes it stay for a while, similarly to how sudo doesn't make you reenter your password for a bit, "keepenv" makes sure that it still runs commands from the user home environment, ":wheel" covers all users in the wheel group, and "as root" covers what doas is permitting, which in this case it's permitting running as the alternate user, root. set up like this, doas isn't just a similar replacement for sudo, it's almost 100% function equivalent. You can also add user specific lines, replacing "persist" with "nopass" and ":wheel" with the username, and that will allow you to enable passwordless doas on any user you make that line for. "permit nopass keepenv dt as root" would be the function used in the system exampled in the video. The full scope of what doas can do is laid out in the does.conf manpage, "man doas.conf" for the less inclined.
@kmemz
@kmemz 4 жыл бұрын
I've also noticed that I don't need to do -- for arguments of the command I'm running with doas. I'm not sure if it's because of this config, or if it was a bug that has been fixed over the last eight months since this video.
@anshsrivastava1059
@anshsrivastava1059 4 жыл бұрын
I installed opendoas with pacman and in my config file, I have "permit :wheel" to grant root privileges to the wheels group. Also, "doas pacman -Syu" worked for me with opendoas.
@LewisCampbellTech
@LewisCampbellTech 3 жыл бұрын
I really wish doas was the default on more systems. On Alpine there is no sudo by default, or doas by default, so you just pick whichever you want.
@SetszawA
@SetszawA 4 жыл бұрын
This is the demonstration that Desktop Linux is a meme at this point.
@Jess-hj8vu
@Jess-hj8vu 4 жыл бұрын
Nice to see this, I recently switched to OpenBSD and was immediately impressed with doas.
@josephbrandenburg4373
@josephbrandenburg4373 4 жыл бұрын
Out of curiosity, why use OpenBSD? It seems so mysterious to me. Does OpenBSD have a kernel and distros like GNU/Linux operating systems? Is it better/worse somehow? I've switched to Ubuntu because I wanted to use more free-and-open-source software. Now that I've gotten used to Ubuntu (more or less), I'm thinking about trying a different distro like Debian or Arch. I feel like I've bloated my Ubuntu install by trying to figure it out.
@Jess-hj8vu
@Jess-hj8vu 4 жыл бұрын
@@josephbrandenburg4373 a major reason someone might wanna use OpenBSD over GNU/Linux is that (in my opinion) the licensing is much better and it is very very secure. You can look into OpenBSD's security mitigations if you want to. BSD's also differ from Linux distros in a hig way when it comes to the kernel and userspace. BSD's are packaged together and are one project, while Linux is just a kernel with no userspace and GNU is all userspace with no kernel. BSD's are also more true of a Unix-like operating system in my opinion. They were all originally forks of forks of the original Unix and Linux was just made to resemble Unix.
@josephbrandenburg4373
@josephbrandenburg4373 4 жыл бұрын
@@Jess-hj8vu thanks. So BSD is like a direct child of UNIX, and Linux is like a branch grafted into a tree.
@Jess-hj8vu
@Jess-hj8vu 4 жыл бұрын
@@josephbrandenburg4373 yep (:
@softwarelivre2389
@softwarelivre2389 2 жыл бұрын
@@Jess-hj8vu the sad thing about BSD is that it is not GPL, so forks like Darwin and Sony's Playstation kernels end up proprietary :(
@smdias65
@smdias65 4 жыл бұрын
Cool. I didn't even know doas existed. Thanks!
@mtothem1337
@mtothem1337 4 жыл бұрын
'su -' is a universal way. the only inconvinience is that you have to change user to run your commands then back. instead of sudo which is a one time invocation to do both.
@frataltay4543
@frataltay4543 4 жыл бұрын
There was a way to use su like sudo but I don't remember how.
@nycex267
@nycex267 4 жыл бұрын
@@frataltay4543 you can use su -c "command"
@frataltay4543
@frataltay4543 4 жыл бұрын
@@nycex267 Yeah that's how it was, thanks for reminding me ☺
@fishmanloveslinux7978
@fishmanloveslinux7978 4 жыл бұрын
Great video D! I don't care what the so-called power users say I find it fascinating. I am like WOW! Should I get rid of sudo or keep it and have both of them?
@smileoa
@smileoa 4 жыл бұрын
I want to instead sudo with doas,But yay depends sudo,What should I do?
@DJNightchild
@DJNightchild 4 жыл бұрын
Friendly tip: some programs (like paru) need to sudo command to function. If your remove the sudo package, make sure to do the following after removal: "$ doas ln -sf /usr/bin/doas /usr/bin/sudo"
@marcels.7074
@marcels.7074 3 жыл бұрын
You can also run sudo instead of doas but you still get doas
@DJNightchild
@DJNightchild 3 жыл бұрын
@@marcels.7074 only if you've installed the opendoas-sudo package
@aldotovar9231
@aldotovar9231 3 жыл бұрын
saved me, thanks!
@jjbailey01
@jjbailey01 4 жыл бұрын
OpenBSD will slowly overtake Linux. Very slowly.
@shalokshalom
@shalokshalom 4 жыл бұрын
So slow, that it won't happen.
@jjbailey01
@jjbailey01 4 жыл бұрын
@@shalokshalom never say never. That's how you end up with Microsoft holding a seat on the Linux Foundation board.
@ShiroCh_ID
@ShiroCh_ID 4 жыл бұрын
so the commands is sudo apt install doas then sudo apt remove sudo or doas apt remove sudo
@caleb-hill
@caleb-hill 3 жыл бұрын
I was considering switching from sudo to doas but that double dash archaic crap is really off-putting. what I use is (s) for (sudo)'s alias, (v) for (vim) and (sv) for (sudo -E vim).
@gibranlp
@gibranlp 4 жыл бұрын
So many interesting ways to make life more complicated! Great video DT
@jjbailey01
@jjbailey01 4 жыл бұрын
Complicated? How so? Doas is much less complicated.
@SharunKumar
@SharunKumar Жыл бұрын
Why can't doas be sort of like a drop in, instead of using the double dash for params?
@noobsaibot8723
@noobsaibot8723 4 жыл бұрын
You cannot replace the one ring. The magic wand. The "go make me a sandwich" command. The.. dude you gonna break the internet.
@jjbailey01
@jjbailey01 4 жыл бұрын
Sudo sucks. The internet predates sudo. The internet will be around long after the fall of sudo.
@josephbrandenburg4373
@josephbrandenburg4373 4 жыл бұрын
I rather think having two programs that do one thing is bloat. Sudo is already there, and you can't get rid of it (can you? Should you?).
@johannoas1
@johannoas1 3 жыл бұрын
It's all nice but in most distros sudo is already installed and it does what I want. So why would I switch? for a few MB? probably not. Usage wise sudo is a bit more user friendly I guess( or I am just used to it)
@shady4tv
@shady4tv 4 жыл бұрын
Honestly - i wouldn't call sudo bloat. I just has different advantages than doas. I wont ignore that there was a few recent exploits related to how sudo handled certain (dare I say uncommon) permission sets. This all probably is a direct result of the sudo codebase complexity. But on the other had when dealing with PAM modules for LDAP and what user should be able to call what programs. sudo clearly has the stronger feature set. This is much more useful on a multiuser type system in a business setting and as a person who uses Linux in both places it may not really be beneficial to strip parts of a program I use. I'll stick with sudo for my use case but I agree that doas is more beneficial to most users.
@The1RandomFool
@The1RandomFool 4 жыл бұрын
Honestly, I configure sudo maybe once when doing the initial install of the distribution, and that's it. Switching to doas doesn't really save me any time, and can require additional typing when using it. The difference in file size doesn't really matter, either, since a few megabytes really is minuscule. It's interesting, but I won't have a need for it.
@jjbailey01
@jjbailey01 4 жыл бұрын
Final installed size isn't the primary concern about bloat. The primary concern is debugging and performing security audits on extraneous code. What this means to you as the end user is that the more bloated choice is more likely to have bugs and security flaws. Filesize and execution speed are merely happy coincidences to choosing the less bloated option.
@Xarzith
@Xarzith 4 жыл бұрын
I'm so surprised to see all this hype over bloat instead of security concerns trying to fight for which one is the best between the two in the comments. As I see it, sudo is somewhat of a security concern as it gives the normal user within the sudoers, root privileges with their own password. doas requires the root password, which in a way, may be a security concern when used by another user (same goes for su -). That being said, it shouldn't be that much of an issue on a single user system (where hopefully good security measures are taken), but is something to keep in mind in multi user system (where root password should never be used unless absolutely needed). All in all, an interesting option, though not in my case for the bloat. I'll be definitely looking into doas in more depth for future uses both at home and for business. Thank you for sharing this with us.
@TheTurnipKing
@TheTurnipKing 3 жыл бұрын
The key point is that while you HAVE access to those privileges, they're not "enabled" by default, which insulates you somewhat from unfortunate consequences. Prefixing Sudo to your command line should be considered an implicit statement of "I have thought about the possible consequences of my action for more than 2 seconds"
@WilliamLDeRieuxIV
@WilliamLDeRieuxIV 3 жыл бұрын
3:13 You don't have to add users to /etc/sudoers (in fact you never have to touch that file) When you create a user, you can just add them to the sudo group.
@derisis13
@derisis13 3 жыл бұрын
I have been using doas for around a year now and there's one major problem: it reads from stdin instead of the tty it was launched from. This means, there's no piping to commands you want to execute as root.
@johnnyblack4261
@johnnyblack4261 4 жыл бұрын
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.
@jjbailey01
@jjbailey01 4 жыл бұрын
// Type the following in a terminal // and you'll never have to // worry about it again. cat 'alias doas="doas --"' > ~/.profile source ~/.profile
@FBI_Master
@FBI_Master 2 жыл бұрын
oh yes saving less than one fame at 240hz and less tha 3mb on a 2tb ssd is sooo important
@JesseNeckred
@JesseNeckred 4 жыл бұрын
hey DT, check out opendoas on the regular Arch repos. it is more friendly with pacman. also, if you're looking for a good replacement for yay to use with doas, try pikaur. works nearly identical to yay.
@JesseNeckred
@JesseNeckred 4 жыл бұрын
actually, if you force yay to save a config file to ~/.config/yay/config.json, you can change the super user handler to doas
@pichass9337
@pichass9337 4 жыл бұрын
OpenBSD bois ftw
@brainplot
@brainplot 4 жыл бұрын
If you're an Arch user, yay depends on sudo so you can't uninstall sudo (unless you also want to uninstall yay). Effectively this forces you to keep both, and I don't see how this benefits you in regard to "less bloat" :/ Moreover, maybe this is just me but typing "sudo" is one of those things that's **really** sunk in my muscle memory. Switching to something else would be frustrating.
@rizkyadiyanto7922
@rizkyadiyanto7922 4 жыл бұрын
yeah and saving 3mb of storage is meh
@brainplot
@brainplot 4 жыл бұрын
@@rizkyadiyanto7922 That's a fair point but I'm not even criticizing that. Some people like building very minimal systems and that's okay. Also, don't see it as "saving 3MB of storage", if you look at it in percentage, I recall from the video that doas is about 35 KB in size. Well, that's about 90% smaller.
@jjbailey01
@jjbailey01 4 жыл бұрын
@@brainplot if you're stuck on using yay, well that sticks you with sudo. For 99.9% of unix-like system users, this restriction isn't there. Also, getting over muscle memory is as simple as: cat 'alias sudo="doas --"' > ~/.profile
@softwarelivre2389
@softwarelivre2389 2 жыл бұрын
@@jjbailey01 does that work for piping commands as root? I'm afraid that may cause some issues
@aiosquadron
@aiosquadron 3 жыл бұрын
We have reached a point in which even sudo is optimized.
@MrLeeFergusson
@MrLeeFergusson 4 жыл бұрын
'su -' is less bloat...
@puyatecla9903
@puyatecla9903 4 жыл бұрын
👆This guy gets it
@0x007A
@0x007A 3 жыл бұрын
How is adding yourserlf to the 'wheel' group more complicated than installing 'doas' and creating /etc/doas.conf?
@alexstone691
@alexstone691 4 жыл бұрын
The only thing is i am not sure about security, everybody uses sudo but is doas used enough not to be full of exploits
@jjbailey01
@jjbailey01 4 жыл бұрын
Doas comes from OpenBSD. It would not be part of the official release of OpenBSD if it were full of exploits. This isn't just some randomly thrown together software. It was written because sudo's codebase is a nightmare to debug and audit. The OpenBSD team is notorious for their security auditing. If you're truly security conscious, the real question is why are you still using sudo?
@mendel6101
@mendel6101 4 жыл бұрын
I didn't have problems with dashes, maybe you need the opendoas package from the standard repo?
@primalpenguin
@primalpenguin 4 жыл бұрын
Computers are bloat. Write commands in the sand with a stick
@bsdims
@bsdims 4 жыл бұрын
Now all doas needs is a GUI "enter password" screen for things like running root commands via keyboard shortcut
@EliteTester
@EliteTester 4 жыл бұрын
Unfortunately unless something has changed the persist config option does nothing in Linux systems.
@Jeremy-su3xy
@Jeremy-su3xy 4 жыл бұрын
Linux users don't like those stuff. Are you gonna recommend gui eventually?
@bikutoso
@bikutoso 4 жыл бұрын
6:05 I have never had that issue. I have always used "permit persist setenv { -ENV PS1=$DOAS_PS1 SSH_AUTH_SOCK } :wheel" for my config, so could that change how that works? Also a note is the OpenBSD man page defaults to current, and might have things that are not in stable or for any other platforms. My Linux distribution didn't have the persist option until recently.
@markpaterson6024
@markpaterson6024 4 жыл бұрын
Command: Doas -- DT says Response: Always!
@marioschroers7318
@marioschroers7318 4 жыл бұрын
First saw this elsewhere on a KZbin channel in an intro (Wolfgang's Channel). Since the channel host uses Gentoo, I believed this to be Gentoo-specific (doas emerge). As I was planning on checking out Gentoo later this year, I was expecting to learn about doas by then. Thank you for updating me on this ☺️
@DabDavis7
@DabDavis7 4 жыл бұрын
Would it be wrong to alias sudo='doas'?
@DistroTube
@DistroTube 4 жыл бұрын
If aliasing is wrong, I don't want to be right.
@DabDavis7
@DabDavis7 4 жыл бұрын
@@DistroTube Hey brother speaking of bloat, all desktop environments and window managers are bloat. I make Aliases to launch my applications from the tty using (ex alias ff='xinit firefox $* -- :0 vt$XDG_VTNR'). If you want to open another app in a different tty simply change the $* -- :0 to :1, :2, etc. Orrrrr use a terminal emulator like Terminator and you can launch the application normally (ex. Just type firefox terminator etc.)
@nofrillsshaving4244
@nofrillsshaving4244 4 жыл бұрын
I added the same line in my .conf but when I try to use doas i get "Syntax error at line 1". What to do?
@praetorxyn
@praetorxyn 4 жыл бұрын
Doesn't wheel have sudoer privileges by default? I can't remember, but I always put my user in wheel, whether I have to uncomment the bit in the sudoers file to give wheel sudoer privileges ornot.
@bobgrimes8618
@bobgrimes8618 4 жыл бұрын
Bloat has become a meme for DT!
@dougbeney6399
@dougbeney6399 4 жыл бұрын
6:17 That kind of ruins it for me. Should have kept is simpler like in sudo there.
@DistroTube
@DistroTube 4 жыл бұрын
This problem only comes up if the program you are running is using a flag that doas also has. So when I did "doas pacman -Syu", doas has a -u flag. Hence, the need for the double dash. But you can solve this problem by simply aliasing "doas" to always be "doas --".
@dougbeney6399
@dougbeney6399 4 жыл бұрын
@@DistroTube I feel like they could solve this problem by requiring all doas flags to be specified BEFORE the actual command. doas --my-doas-flags-go-here emacs -nw -q
@jjbailey01
@jjbailey01 4 жыл бұрын
@@dougbeney6399 your feature request requires additional code, which leads to complexity, extra work in debugging and code auditing and general bloat. In reality, your suggestion is not the simpler choice. The solution currently presented in doas requires none of that. It works flawlessly with no additional code. If you like bloat and needless functionality, it sounds like sudo is a perfect match for you. For the rest of us who prefer clean simple code that is easy to audit, there is doas.
@knucklehead99-z1w
@knucklehead99-z1w 4 жыл бұрын
Can you do a "tty is bloat" video?
@MsKarlason
@MsKarlason 4 жыл бұрын
Which font do you use? It's too awesome.
@DistroTube
@DistroTube 4 жыл бұрын
Mononoki
@wolfattackx
@wolfattackx 4 жыл бұрын
What is the name of the font you are using
@donpeer4477
@donpeer4477 3 жыл бұрын
Why edit the sudo configuration file? Just "sudo adduser username sudo; usermod -a -G username; gpasswd -a username sudo" Alright, I've installed doas on my Debian 11 EDC (every day computer). Should I uninstall sudo or should I just remove users from conf?
@Epsilonsama
@Epsilonsama 3 жыл бұрын
doas works a bit differently in OS outside of OpenBSD. doas in OpenBSD has kernel calls exclusive to it which is implemented differently in the more portable version of doas which is used in FreeBSD, MacOS and GNU/Linux. That being said the config file for doas is amazingly simple, it's plain English so a novice wont be doing any mistakes configuring it unlike with sudo where it's easy to screw things up for first timers which is why visudo command was created.
@s9209122222
@s9209122222 4 жыл бұрын
What's the difference between opendoas and doas?
@GafftheHorse
@GafftheHorse 4 жыл бұрын
The need to add '- -' in some cases (but not all) kind of a negative as regards how useful it is for newbies.
@ArsenGaming
@ArsenGaming 4 жыл бұрын
I have been doing that for a while! I even wrote my software to be able to change command to use for root in config
@jjbailey01
@jjbailey01 4 жыл бұрын
In this day and age of terabyte drives and multicore processors, no intelligent person is going to be against bloat because of storage space and clock cycles. There is still a valid and practical reason to detest bloat. Bloated software is more prone to bugs and security flaws. This is exactly why the OpenBSD project wrote doas and kicked sudo to the curb. It really did not have anything to do with saving space on a terabyte drive. The creation of doas was about streamlining the process of usage, maintenance, debugging and security audits.
@0M9H4X_Neckbeard
@0M9H4X_Neckbeard 4 жыл бұрын
Does `doas` have the ability to do `sudo -S`? I need that in some automation scripts for packer.
@tinicum54
@tinicum54 4 жыл бұрын
Please donate to keep those monitors in the BG running by the unbloated peripherals so he can do as he wants.
@TheUnkow
@TheUnkow 3 жыл бұрын
When a more minimal or less bloated software is being recommended it's never just because it has fewer lines of code. And fewer lines on average may mean more security but just one line is enough to jeopardize the system. Just while(true) or not escaping client input can result in a crash or hijacking your system. So when you pick a software you have to pick something you trust. Sudo is a long time champion, I love that we have less "bloated" alternatives. In my experience with most "less bloated" software, this means doas will result in minor but definitively lesser average ram and cpu usage. The only good examples of over bloated software that works better are for example the KDE desktop and Garuda Dragonized (themselves saying free ram is unused ram). In the end you can try, see the result and decide for yourself, there is a reason some people developed doas and I like that we are still not afraid to improve the core stuff that served us for years almost flawlessly.
@alphabennyrosy5068
@alphabennyrosy5068 4 жыл бұрын
Oh no !!! 46.60KiB opendoas opendoas is more bloated then doas. btw that is a beautiful command paste
@countmegabaron
@countmegabaron 4 жыл бұрын
Nice video. Thanks for sharing
@aegis_helion
@aegis_helion Жыл бұрын
Who needs sudo, I do su
@jorschachblatant1934
@jorschachblatant1934 4 жыл бұрын
Hand is bloat, use the artificial one.
@holyhelga
@holyhelga 4 жыл бұрын
well all i know i wont install somthing extra as i know sudo
@gaweyn
@gaweyn 4 жыл бұрын
KZbin is bloat, just do a podcast. Podcast is bloat, just do a newsletter. Newsletter is bloat, just blog. Blog is bloat, just host a txt on an ftp.
@danielnielsen5499
@danielnielsen5499 4 жыл бұрын
Why not just alias doas to doas --
Text To Speech On Linux With Festival
7:37
DistroTube
Рет қаралды 45 М.
Xargs Should Be In Your Command Line Toolbag
16:24
DistroTube
Рет қаралды 103 М.
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
The 12 Linux Apps Everyone Should Know About
21:20
DistroTube
Рет қаралды 483 М.
Linux Crash Course - sudo
26:11
Learn Linux TV
Рет қаралды 72 М.
Pacman On Other Distros, How To and Why You Shouldn't
12:05
Mental Outlaw
Рет қаралды 41 М.
Wubuntu, the Dubious Linux Windows
15:22
Action Retro
Рет қаралды 496 М.
Sudo is a Bloated Insecure Mess (install doas)
9:47
Mental Outlaw
Рет қаралды 159 М.
Turn Your Window Manager Into A Desktop Environment
16:47
DistroTube
Рет қаралды 144 М.
Problems You will Encounter on Linux (and How to Solve Them)
23:01
Rob Braxman Tech
Рет қаралды 180 М.
PolKit Is Broken On Window Managers: How To Fix It!!
9:04
Brodie Robertson
Рет қаралды 15 М.
zoxide has forever improved the way I navigate in the terminal.
9:53
Dreams of Autonomy
Рет қаралды 486 М.
What Are Linux Users Putting In Their Config Files?
31:47
DistroTube
Рет қаралды 93 М.
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН