5. Authentication and Access Control¶
Authentication proves you are who you say you are. Authorization decides what you're actually allowed to do once you're in. They're often confused, but they're two separate steps — logging in is authentication; what you're allowed to click afterward is authorization.
Factors of authentication¶
| Factor | Example |
|---|---|
| Something you know | A password or PIN |
| Something you have | A phone receiving a code, a security key |
| Something you are | A fingerprint, face scan |
Multi-factor authentication (MFA) combines more than one of these — a password alone is one factor; a password plus a code sent to your phone is two.
Least privilege and role-based access¶
The principle of least privilege: give an account only the access it actually needs to do its job, nothing more. Role-based access control (RBAC) is the common way this gets implemented — permissions are attached to a role (like "teacher" or "student"), and an account gets whatever its assigned role grants, rather than permissions being configured one person at a time.
Try it
Explain, using the three factors above, why "a password plus a fingerprint" is stronger than "two different passwords" — even though both involve two things to check.
Tip
An account that's been given more access than it needs is a bigger problem the moment that account's credentials are ever stolen — least privilege limits the damage before anything goes wrong, not after.
Play it
Open the Security Fundamentals Lab and use the Access tab.
Watch along
From the CompTIA A+ 220-1201 Full Course:
- Security management (5:01:44)
- Network authentication (6:30:12)