this post was submitted on 08 Jul 2024
634 points (96.9% liked)

Programmer Humor

32472 readers
627 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
[–] MartianSands@sh.itjust.works 5 points 4 months ago

Because you might accidentally do something which breaks the system, or you might run a program which does something malicious without your knowledge.

By gating dangerous (or protected for any other reason) commands behind sudo, you create a barrier which is difficult to accidentally cross