No history yet

Access Control Basics

What Is Access Control?

Access control is the selective restriction of access to a resource. Think of it like a security guard at a building. The guard's job is to make sure only the right people get in, and that they only go to the floors they're supposed to. In the digital world, access control does the same thing for computer systems, networks, and data.

Its main job is to protect two things: confidentiality and integrity. Confidentiality means keeping information secret from people who shouldn't see it. Integrity means making sure data isn't changed or deleted by someone who doesn't have permission. Without access control, anyone could read your private emails, change your bank account balance, or access sensitive company files.

The Three A's of Access Control

Access control is often broken down into three key components, sometimes called the "AAA framework": Authentication, Authorization, and Accounting.

Authentication: Who are you? This is the process of verifying your identity. When you log in with a password, scan your fingerprint, or use a key card, you're authenticating. The system is confirming that you are who you claim to be.

There are three common ways to prove who you are:

  • Something you know: A password, PIN, or the answer to a security question.
  • Something you have: A physical key, a smartphone, or an ID badge.
  • Something you are: A fingerprint, a facial scan, or your voice.

Authorization: What are you allowed to do? Once the system knows who you are, it needs to figure out what you have permission to do. This is authorization. Just because you're an employee doesn't mean you can access the company's financial records. Your authorization level determines if you can read a file, change it, or delete it.

Think of a concert. Your ticket authenticates you as a valid attendee. But a VIP pass authorizes you to go backstage. Everyone is authenticated, but not everyone is authorized for the same areas.

Accounting: What did you do? Also known as auditing, this is the process of logging user activity. The system keeps a record of who accessed what, when they did it, and what changes they made. This is crucial for security. If something goes wrong, like a data breach, these logs can help investigators figure out what happened.

Models for Managing Access

Organizations need a logical system for deciding who gets access to what. These systems are called access control models. There are three main types.

Discretionary Access Control (DAC) In this model, the owner of a resource decides who can access it. If you create a document, you can choose who else gets to view or edit it. This is the model used by most consumer operating systems like Windows and macOS. It’s flexible and easy to use.

Mandatory Access Control (MAC) This is a much stricter model. A central authority sets the rules, and users can't change them. Access is determined by labels. Data is given a classification label (like “Confidential” or “Top Secret”), and users are given a clearance level. You can only access data if your clearance is appropriate for its classification. MAC is common in government and military systems where security is the top priority.

Lesson image

Role-Based Access Control (RBAC) This is the most popular model in the corporate world. Instead of assigning permissions to individual people, permissions are assigned to roles. For example, a company might have roles like “Accountant,” “Salesperson,” and “HR Manager.”

All accountants are granted access to financial software, and all salespeople can access the customer database. When a new person is hired as an accountant, they are simply assigned that role and automatically get all the right permissions. This makes managing access much simpler, especially in large organizations.

A strong security technique called role-based access control (RBAC) ensures that only those who need it may access vital data and apps by limiting network access according to an employee’s position within a company.

Here's a quick comparison of the three models:

ModelPermissions Set ByFlexibilityBest For
DACResource OwnerHighPersonal computers, small teams
MACCentral AuthorityLowMilitary, high-security environments
RBACSystem Administrator (by role)MediumMost businesses and organizations

All of these models help enforce a core security concept: the principle of least privilege.

The principle of least privilege means giving a user only the access they need to do their job, and nothing more. An HR manager needs access to employee files, but not to the company's source code. This principle limits the potential damage from accidents or a compromised account.

Ready to review the key terms from this section?

Now, let's test your understanding of these fundamental concepts.

Quiz Questions 1/5

What are the two primary security principles that access control is designed to protect?

Quiz Questions 2/5

A military system assigns 'Top Secret' and 'Confidential' labels to documents and gives corresponding clearance levels to personnel. This is an example of which access control model?

Understanding these basic building blocks—authentication, authorization, and the different control models—is the first step in creating secure and effective digital systems.