Why does the computer sometimes ask for a password before you install something?
Lesson 16.3 · Who’s Allowed
Sarah · Rob
A box asking for Dad’s password.
Sarah tries to install a game on the family computer and a box pops up asking for her dad’s password.
She’s annoyed.
Rob says that box is one of the best things about modern operating systems, and that Grandma Ruth clicking Yes on every box is probably how three toolbars and a WeatherBuddy got in.
The short answer
Because installing changes the system, and the OS wants an allowed person to say yes. Grandma Ruth used an administrator account for everything, so anything she clicked could install itself. When the crew sets up the new system, she gets a standard account with automatic updates turned on, and Sarah keeps the admin password.
Try it yourself
Work out why the operating system asks before doing some things.
Why does installing an app ask for an administrator password?
What you just did has a name
Users and permissions
Permissions are the operating system’s rules about who can do what.
Each person gets a user account with their own files.
Some accounts are administrators who can install software and change system settings; standard accounts can’t do that without an administrator’s approval.
Apps also get permissions, like access to the camera or location, only when you allow it.
A few more things
Use a standard account
Day to day, using an account that isn’t an administrator means malware can’t easily install itself. You type the admin password only when you mean to change something.
Phones wall off every app
On iOS and Android, each app lives in its own walled-off area, a sandbox, and can only reach outside it with your permission.
Check what apps can do
Your phone’s settings list which apps can use your camera, microphone and location. It’s worth a look every so often.
Go deeper
The longer version, if you want it.
Why it wasn’t always like this
Early home computers had one user and no permissions: every program could do anything. That was fine when computers weren’t connected to anything.
Once everyone was online, any program, including malicious ones, could change anything. Modern operating systems borrowed the permission ideas that big shared computers, like the Unix systems in Module 19, had used for decades.
Quick check
Why is it safer to use a standard account instead of an administrator account every day?
Let’s take it slower
Think of keys to a building. Everyone gets a key to their own room. Only a few people get the master key that opens the boiler room and changes the locks. If a stranger steals a regular key, they get into one room. Steal the master key and they get everything. Use the regular key day to day.
More examples
Ask to Buy
Parents can set kids’ phones so app purchases need a parent’s approval. That’s permissions, with family settings on top.
The flashlight app
A flashlight app asking for your contacts is a red flag. The permission prompt is your chance to say no.
Back to the question
So why does it ask for a password?
Show the answer
Because installing changes the system, and the OS wants an allowed person to say yes. Grandma Ruth used an administrator account for everything, so anything she clicked could install itself. When the crew sets up the new system, she gets a standard account with automatic updates turned on, and Sarah keeps the admin password.
One last question
Sarah says the password box is just annoying. Who makes the best case for it?
Talk Card
Talk Card · 16.3
Use a regular account every day and keep the admin password for when you mean to change something. Malware hits a wall that way.
How Computers Work · pettigrewlab.com/learn

