Hacker News new | ask | show | jobs
by yjgyhj 3325 days ago
Why do operating systems allow users to run any executable?

For programmers it's important to be able to - but when you're not coding, running any executable is not required.

It should be that all programs are in /usr/bin & the others. Only root can write there. Users shouldn't be able to run any program that is located anywhere else.

And this would be no problem. Am I wrong?

1 comments

Most of the machines out there are single user, and managed by that user, not by a professional sysadmin. As such, the user has the needed access (root) to install any programs that they want, and all modern OSes allow only the admins to install programs.

We already put multiple warning messages when a user decides to execute a suspicious binary, and yet everyone still clicks through any prompt without the second thought ?

What's your suggestion that a). allows any user to have the machine installed and configured as he wants? and b). do not allow random programs from executing ?