6

On Unix based systems, I'm often prompted to enter my password before installing or running a program.

Why does this protect me?

If I'm running a kiosk, I understand that a password might prevent someone else from messing with my computer. However, on my own computer, if I want to install something, entering my password won't stop me from running a virus or malicious program.

AviD
  • 72,138
  • 22
  • 136
  • 218
Moshe
  • 1,721
  • 3
  • 16
  • 22

2 Answers2

3

Prompting you to enter password is necessary to login into root account, enable user with higher rights. This is done just to prevent user from accidental actions like invalid command "rm -rf /". Sitting all the time under the root is not good idea - you really does not need such rights all the time you work. Also, it stops, prevents and decreases malicious stuff impact.

It is a part of Unix security model's philosophy.

2

That protects you because someone can't just pass by your system and install a malware unless they know your password. (General example)

And it also has the benefit of reminding you that what you are doing might mess up your computer ;)