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

Programmer Humor

31791 readers
33 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
[–] [email protected] 61 points 1 month ago (9 children)

"I shouldn't have to use permissions or sudo, just all root all the time"

[–] [email protected] 31 points 1 month ago (7 children)
[–] [email protected] 5 points 1 month ago (6 children)

I don't run as root because I've always been told I shouldn't. I don't know enough about anything to be contradicting stuff like this. It has always seemed weird to me that we don't run as root and then just sudo everything, though.

What is the reason we don't run as root?

[–] [email protected] 5 points 1 month 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

load more comments (5 replies)
load more comments (5 replies)
load more comments (6 replies)