this post was submitted on 08 Jul 2024
639 points (96.8% liked)

Programmer Humor

32371 readers
562 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Jimmyeatsausage@lemmy.world 38 points 4 months ago (1 children)

"sudo is not recognized an an internal or external command"

[–] calebegg@lemmy.blahaj.zone 9 points 3 months ago (6 children)

I literally saw that kind of message very recently on a nixos based machine and I literally had to stand up and do a lap. What in God's green earth do you mean there's no 'sudo'??

[–] bleistift2@sopuli.xyz 5 points 3 months ago

Linux: Keeps the same quirks in shells alive for half a century BeCaUsE bAcKwArDs CoMpAtIbIlItY.

Also Linux:

[–] Swedneck@discuss.tchncs.de 5 points 3 months ago

i mean there are other superuser commands, BSD doesn't use sudo for example, it uses "doas"

[–] asyncrosaurus@programming.dev 4 points 3 months ago* (last edited 3 months ago) (1 children)

apt remove sudo

sudo is not installed on several distributions by default, so hardly surprising it's not there or that you can remove it.

[–] psud@aussie.zone 1 points 3 months ago* (last edited 3 months ago)

It's not surprising you can remove it, but it seems contrary to teaching good habits to not install it by default as a basic utility. You don't want to train people to log in as root

Actually I think the only way I can log in as root is sudo -i

Pretty sure root has /bin/false as its shell and it's configured as no login my machines

[–] FiskFisk33@startrek.website 3 points 3 months ago

Nixos scares me

[–] uid0gid0@lemmy.world 3 points 3 months ago

run0 for you my guy

[–] booly@sh.itjust.works 3 points 3 months ago (1 children)

If you follow the Arch installation guide it'll get you to a working system, but you'll need to install sudo yourself. It's not strictly required so it's not installed with the essential packages (or even the packages recommended for most users in the guide).

[–] psud@aussie.zone 1 points 3 months ago

Surely any user planning on using arch would want sudo. I mean if Ubuntu desktop didn't come with sudo I'd understand but arch? Linux From Scratch was a thing when I was still playing with Linux (rather than just using it) and that also was very much an if you want it, install it, but that suggested sudo as the likely alternative was the user would log in as root