Lite mode. Switch to Full
invert_colors
logout
/int/
/int/
Post a Replyarrow_backarrow_downward
GermanyBernd2023-02-14 16:12:08 · 3yNo. 254935reply
After reading about the latest sudo CVE https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-22809 (even though I am using a more recent sudo version which isn't affected by the aforementioned problem) I decided to finally ditch sudo and use doas now.
That's all.
 
Edit: https://scribe.privacydev.net/@dev.nest/how-to-bypass-sudo-exploit-cve-2023-22809-vulnerability-296ef10a1466
If anyone is interested
GermanyBernd2023-02-14 16:17:15 · 3yNo. 254938reply
Still using sudo. Schlümm?
NetherlandsBernd2023-02-14 16:37:31 · 3yNo. 254944reply
First time I hear about doas tbh as a Debian user. There's no gurantees it doesn't have any vulnerabilities either so I think I'll keep using (updated) sudo...
GermanyBernd2023-02-14 16:54:22 · 3yNo. 254948reply
>There's no gurantees it doesn't have any vulnerabilities either
The reason why doas is considered more secure is because it has much fewer lines of codes.
GermanyBernd2023-02-14 17:10:03 · 3yNo. 254949reply
Of course not, you do you.
 
The simplicity alone, my doas.conf being a whole line of
 
permit bernd as root
 
is just beautiful in my eyes, I guess
Edit: Of course that line only acts as a sudo-ish replacement for me right now
You can fine-grainly tune it
https://man.openbsd.org/doas.conf.5
HungaryBernd2023-02-14 17:36:02 · 3yNo. 254953reply
I wonder if Bernd uses sudo what it was intended for, or as a way of saying please to the computer.
GermanyBernd2023-02-14 17:37:37 · 3yNo. 254954reply
What was it intended for?
TurkeyBernd2023-02-14 18:45:55 · 3yNo. 254963reply
Just upgrade your sudo they fixed it. Doas is not practical because it's not working all the time. I also fell for doas meme and things didn't worked. What I mean? I mean for example you try run program with root (doas) permission and it says like protocol not allowed some bullshit and refuses to work.
But it can be good test for you. Cool kids use non-default one thing.
HungaryBernd2023-02-14 20:40:15 · 3yNo. 255008reply
To make specific non-privileged users to run specific privileged applications they won't be able to, because they have no magic admin password to do so. See sudoers.
If you do administrative stuff just use su -
NetherlandsBernd2023-02-14 21:34:53 · 3yNo. 255026reply
You're wrong, saying please is also one of the ways how sudo is intended to be used.
> just use su -
It is very inconvenient when you need to do something simple with root privileges in the middle of your non-root session, you'll end up typing three commands instead of one (which also isn't atomic way of doing things). You may forget to exit the root session and that's unsafe.
HungaryBernd2023-02-15 15:52:58 · 3yNo. 255233reply
>saying please is also one of the ways how sudo is intended to be used.
The computer doesn't understand please. You give commands and the machine executes.
>very inconvenient
Tell me how adding sudo to every following command is more convenient?
Oh yeah, you can chain apt update with upgrade and issue sudo once but what if something happens while updating and you have to go fixing the mess? Or you want to autoremove too. Or whatever.
>You may forget to exit the root session and that's unsafe.
How? Will it execute a dd from /dev/zero to all your hard drive by itself? Or are you worried someone with fuck with your computer while you are away? Why not turning your pc off, of locking the screen? If it's your workplace noone has any business at your comp (start breaking fingers for fucking with your station), and if you are at home, do you think your family members are even know what CLI is?
Thousands of sysadmins and devops work with "su -" on daily basis, on your desktop you are your own sysadmin. It's safe.
Besides how sudo would prevent you doing something stupid? You can issue the same idiotic command with sudo the same. If you worried about safety then alias rm -i as rm. Just don't accidentally "yes rm" after that.
Sudo gives a false sense of security for novice sysadmins - and as I wrote on your own desktop you are the sysadmin. It's unnecessarily restrict you and adds nothing to actual safety. It doesn't check the validity of your commands, or if it's dangerous to your system. It's like shitty training wheels which gets in your way.
Lemme tell you the range of people who needs sudo:
- the pajeets on sites like linuxhandbookdotcom and the like
That's it.
NetherlandsBernd2023-02-17 21:51:23 · 3yNo. 255687reply
> Tell me how adding sudo to every following command is more convenient?
Much more because it lets you to control (and know) which commands use root and which do not. Saying su - is more convenient is like saying that having a single root user and always using it is more convenient as in this case you don't need to use any commands.
Do you want to control your machine or do you want to let it control you?
HungaryBernd2023-02-19 21:36:57 · 3yNo. 256158reply
Have too terminals open, one with root and the user acc in the other. They eat very little memory and CPU. Or use Terminator with split view. Or use screen and change between two (or more) virtual shells (one root, one user) with shortcuts.
HungaryBernd2023-02-20 10:05:34 · 3yNo. 256235reply
Now that I'm thinking.
Add "export TMOUT=xxx" - where xxx is a number in seconds (I dunno the max limit, add something sensible, liek 60 for a minute, or 600 for ten minutes) - to root's .bashrc, so after the specified amount of time spent idle the account logs out. This can help minimizing access by others, if one worries about that, and forgetful about logging out.
HungaryBernd2023-02-20 10:21:56 · 3yNo. 256236reply
Now that I'm thinking this further.
If one really use root, it could happen this thing logs him out while waiting for some process to finish, and that might cause some broblems. Maybe some logic can be added which initiates the timeout when no such process run, just the user idles at the prompt.
Or maybe screen has a function which detaches the virtual shell after some idleing, detaching leaves process running, and can log in back and continue the work where left off.
NetherlandsBernd2023-02-20 10:44:48 · 3yNo. 256239reply
I have multiple sessions open all the time (different servers, bg tasks etc) and now you're saying me I should have x2 of them. Why would I want it?
That's slightly better. This way it's almost the same as sudo. Still, why bother if I can just use sudo instead and it meets my needs straight out of the box? What's your problem with sudo?
SloveniaBernd2023-02-20 11:05:43 · 3yNo. 256240reply
What is ans broblem's?
t. didn't read
Pill me
 
Is sudo zogged?
NetherlandsBernd2023-02-20 11:29:47 · 3yNo. 256241reply
TL;DR keep your software up to date
GermanyBernd2023-02-20 13:01:50 · 3yNo. 256246reply
Which version did it get fixed in?
HungaryBernd2023-02-20 21:28:41 · 3yNo. 256379reply
>What's your problem with sudo?
With sudo? Nothing. I have broblems how it is used and I wrote it already. And I also wrote how it is done. Sysadmins don't use sudo. How it is "usually" used.
HungaryBernd2023-02-20 21:29:13 · 3yNo. 256380reply
Here's a cool article:
https://www.redhat.com/sysadmin/sysadmins-dont-sudo
SwitzerlandBernd2023-02-21 07:37:17 · 3yNo. 256474reply
I don't consider myself a sysadmin, but a user that needs root priviliges to update his single user machine once in a while.
NetherlandsBernd2023-02-21 08:04:39 · 3yNo. 256475reply
Ok, I've read it. It's highly opionated, the only argument is "I don't like using sudo this way, some people I call sysadmins don't like it so you shouldn't do it as well". That's not what I'd call a great article,why would I care what someone else calls "cringe-worthy"?
/int/Post a Replyarrow_backarrow_upward