Sub topic 10
Least Privilege and Access Control Lists
This chapter assumes you know the difference between a user account and a group, and that you can open a Windows command prompt. It covers the principle of least privilege, access control lists (ACLs), and role-based access control. The next chapter applies these ideas to Windows accounts, NTFS and share permissions.
The Principle of Least Privilege
Least privilege means every user, program and service gets only the access it needs to do its job, and nothing more. It supports confidentiality and integrity because a compromised or careless account can only damage what it can reach.
Common applications:
- Daily work uses a standard account, not an administrator account.
- A temporary contractor gets access to one project folder, and the access ends on a set date.
- A service account runs one application and cannot sign in interactively.
A common error is "privilege creep." An employee changes roles, receives new access, and keeps the old access. Regular access reviews catch this.
Access Control Lists
An access control list (ACL) is a list attached to a resource. It records who may access the resource and what each one may do. Each line is an access control entry (ACE) that pairs a user or group with permissions such as read, write or deny.
| Term | Meaning |
|---|---|
| Resource | The file, folder, printer or network device being protected |
| ACE | One entry naming a user or group and its allowed or denied actions |
| ACL | The full list of ACEs on the resource |
| Inheritance | Child items copy the ACL of their parent folder |
Routers and firewalls also use ACLs. There they list which addresses, protocols and ports are allowed or blocked.
Role-Based Access Control
Role-based access control (RBAC) assigns permissions to roles instead of to individuals. Users receive access by being placed in a role. When someone changes jobs, you change their role, and the permissions follow.
Assign permissions to groups and put users in the groups. This is easier to audit than setting permissions user by user.
Worked Example
The following command grants the Accounting group read-only access to C:\Finance. The second command lists the ACL so you can check the result.
icacls C:\Finance /grant "Accounting:(OI)(CI)R"
icacls C:\Finance(OI) means object inherit, so files inside receive the entry. (CI) means container inherit, so subfolders receive it. R means read. Members of Accounting can open files but cannot change or delete them.
Common Errors
- Giving a user Full Control "to make it work" when Modify or Read would do.
- Granting permissions to individual users, which makes audits harder.
- Forgetting that an explicit Deny overrides an Allow.
- Not noticing inheritance, so a change on a parent folder alters many children.
Exercise
A temporary auditor needs to read files in one shared folder for two weeks. Which approach follows least privilege?
Show answer
Add the auditor to a group that has Read permission on only that folder, and remove the account when the two weeks end. Do not give administrator rights or Full Control.