this post was submitted on 11 Nov 2024
-36 points (21.9% liked)

Linuxsucks

206 readers
31 users here now

Rules:

  1. FOSS advocates and Linux evangelists aren't welcome. -We ask that you block us.
  2. Moderation is heavy handed. Try to stay on topic.
  3. No Complaining Mute the sub if users, content, or rules bother you

founded 2 months ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 6 points 1 month ago

You are not the only one able to execute code under your user's name. A normally installed program, running under your directive as user, can run other commands under your authority as user.

But it can't run as root. You can run things as root via sudo, when you prove your identity as yourself - with the password - rather than another program operating in your name.

Passwordless sudo I think could be exploited e.g. by writing a script and passing it to bash.

(Or, as another reply pointed out, it provides a barrier against moderate malice of a passer-by or a 'friend' temporarily using your computer.)