Passwords & identity

Access Control List (ACL): What It Is, Types and How to Use One

An ACL is the list attached to a resource that says who can do what to it. Learn the types, how they are checked, and the mistakes that leave doors open.

Cysoro Security TeamPublished · 10 min read
report.txtAlice — read, writeBob — read onlyEve — denied✓ PASSWORDS & IDENTITY Access control list Who can do what, to which resource.
Quick answer

An access control list (ACL) is a list of permissions attached to a resource, such as a file, folder or network interface, naming which users, groups or systems may access it and which operations each may perform. Each entry, called an access control entry (ACE), pairs a subject with permissions like read, write or execute. Filesystem ACLs control files, network ACLs filter traffic, and Windows adds DACL and SACL types.

Key takeaways

  • An ACL is attached to the resource it protects, and each entry names a subject and the operations allowed or denied.
  • Filesystem ACLs control files and folders; network ACLs filter traffic at routers, firewalls and cloud subnets.
  • Deny entries, order and regular reviews matter more than the number of rules you write.

Every file you open, every folder you share and every packet that reaches your network passes a check: is this requester allowed to do this? The list that answers that question is the access control list, and it is one of the oldest ideas in computer security.

What is an access control list?

An access control list (ACL) is a list of permissions attached to a resource that specifies which users or system processes are granted access, and what operations they may perform. Each entry is called an access control entry (ACE).

A simple example makes the idea concrete. If a file has an ACL containing Alice with read and write, and Bob with read only, then Alice can read and change the file while Bob can only read it. The list lives with the object it protects, so the check happens every time someone tries to use that object.

ACLs are used in two main places. Filesystem ACLs control access to files, folders and other objects on a computer. Network ACLs filter traffic at routers, firewalls and cloud subnets, deciding which packets may pass based on addresses, ports and protocols.

The first filesystem ACLs appeared in Multics in 1965. The idea has survived because it is simple and direct: instead of asking a central policy engine, the system asks the resource itself who is allowed in.

How does an ACL work?

When a request arrives, the system identifies the requester, reads the entries on the target resource, and applies the matching entries in the order its rules define. If no entry grants the requested operation, access is denied.

For a file, the requester is an authenticated user and their groups. For network traffic, the requester is a source address, and the check is against the packet's source, destination, port and protocol. The mechanics differ, but the pattern is the same: identify, look up, allow or deny.

Order matters. Many systems check entries in sequence and stop at the first match, so a deny placed after a broad allow may never be reached. Microsoft's documentation warns that access-denied entries should come before access-allowed entries, because the security reference monitor grants access if it finds an allow entry first.

A missing ACL is not the same as an empty one. In Windows, an object with no DACL grants full access to everyone, while a DACL with no entries denies all access. That distinction has caused real breaches, which is why you should never assume a missing list means a closed door.

How an access check worksRequest arrivesuser, group orsource addressasks for an actionCheck the ACLread the entries onthe resource, inorderAllowan entry grantsthe actionDenyno entry grantsit, or a denymatches firstDefault is deny: if nothing explicitly allows the action, it is refused.Deny entries should come first, so a broad allow cannot hide them.
The access check: identify the requester, read the ACL in order, allow or deny. Illustration by Cysoro.

What are the main types of ACL?

The main types are filesystem ACLs, network ACLs, and, on Windows, discretionary and system ACLs. They share the same list-and-entry structure, but they protect different things and are checked in different places.

Filesystem ACLs are attached to files, folders and other objects on disk. They say which users and groups can read, write, execute or change a file. Linux uses POSIX ACLs, stored as extended attributes, and NFSv4 ACLs, which are more powerful and standardized. Windows uses discretionary ACLs on files, registry keys and Active Directory objects.

Network ACLs are attached to a network interface, subnet or device. A router or firewall reads the list for each packet and allows or denies it based on source and destination addresses, protocol and port. Cisco routers distinguish standard ACLs, which filter only on source address, from extended ACLs, which filter on source, destination, protocol and port.

Cloud providers use the same idea at a larger scale. AWS network ACLs sit at the subnet level, while security groups sit at the instance level. Azure network security groups perform a similar role for virtual networks.

TypeProtectsChecked byTypical entries
Filesystem ACLFiles and foldersOperating systemUser or group, read, write, execute
Network ACLSubnets and interfacesRouter, firewall, cloudSource, destination, protocol, port, allow or deny
DACL (Windows)Securable objectsSecurity reference monitorTrustee, allowed or denied rights
SACL (Windows)Securable objectsAuditing systemTrustee, attempts to log on success or failure
Standard ACL (Cisco)Network trafficRouterSource address only
Extended ACL (Cisco)Network trafficRouterSource, destination, protocol, port

How do filesystem ACLs work on Linux and Windows?

On Linux, basic permissions give only owner, group and everyone three settings each. An ACL adds named users and groups, so you can give one extra person read access without changing the group or opening the file to everyone.

The commands are getfacl to view and setfacl to change. Running setfacl -m u:alice:r report.txt adds an entry giving alice read access to report.txt. After that, ls -l shows a plus sign after the permissions, as in -rw-r-----+, which marks an extended ACL.

On Windows, each securable object has a security descriptor containing a DACL and optionally a SACL. The DACL identifies the trustees allowed or denied access. The system checks its entries in sequence until it finds entries that allow all the requested rights, or until any requested right is denied.

Windows also uses inheritance. A folder's ACL can be inherited by the files inside it, which is convenient but dangerous if a broad folder permission flows down to sensitive files. Check inherited entries when you audit a folder, not just the entries set directly on the file.

Both systems have a mask or effective-rights concept. On Linux, the mask limits the maximum permissions an ACL entry can grant, so a generous entry can be silently capped. If an ACL does not seem to work, check the mask before assuming the entry is wrong.

How do network ACLs work?

A network ACL is a traffic filter installed on a router, switch or cloud subnet. Each rule has a number, a set of criteria, and an allow or deny action, and rules are checked in order until the first match.

Standard ACLs filter only on the source address, so they are blunt: they allow or block a whole host or network. Extended ACLs filter on source and destination addresses, protocol and port, so they can allow web traffic to a server while blocking everything else from the same source.

AWS network ACLs work at the subnet level. Each subnet must be associated with exactly one network ACL, and a custom ACL starts with only deny rules, so everything is blocked until you add allows. Rules are numbered from 1 to 32766 and evaluated from the lowest number up, with the first match winning.

Network ACLs are stateless, which is the detail most people get wrong. If you allow inbound traffic to a subnet, the response is not automatically allowed. You must write an outbound rule for the return traffic, usually on the ephemeral port range, or the connection will fail in one direction only. AWS security groups, by contrast, are stateful and remember the connection.

That statelessness is also a strength. A network ACL is a simple, fast, first layer that applies to every instance in a subnet, even if someone changes an instance's security group. Use it as a backup layer, not as your only firewall.

What is the difference between a DACL and a SACL?

A discretionary ACL controls access, while a system ACL controls auditing. Both live in the same security descriptor, but they answer different questions: who may do this, and who should be logged for trying?

The DACL is discretionary because the owner of an object, or anyone with the right to change the DACL, can grant access at their discretion. That flexibility is useful for sharing, and it is also a risk: an owner can grant access that a central policy would forbid, which is why mandatory access control exists in higher-security environments.

The SACL does not grant or deny anything. Each of its entries specifies which access attempts by a named trustee should generate an audit record, on success, on failure, or both. That lets administrators log failed access attempts to a sensitive file without logging every read of every file on the system.

Use both together. The DACL enforces the policy, and the SACL tells you when the policy is being tested. If you see repeated failed attempts against a file in the security event log, that is a signal worth investigating, not just noise.

How is an ACL different from RBAC and ABAC?

An ACL is resource-centric, RBAC is role-centric, and ABAC is attribute-centric. They solve the same problem at different scales, and most organizations use all three in different places.

With an ACL, each object lists who can use it. That works well for a small number of objects, such as sharing one document with three colleagues, but it becomes hard to manage when you have thousands of files and hundreds of users, because every change means editing many lists.

With role-based access control, users are assigned roles, and roles carry permissions across many resources. Adding a new starter means assigning a role, not editing every file. That scales better, but roles can grow into a tangle of their own, and they struggle with context such as time of day or device.

With attribute-based access control, access is decided by evaluating attributes of the subject, the object, the operation and the environment against a policy. NIST SP 800-162 defines ABAC this way, and it is the most flexible model, but also the most complex to run. A practical rule is to use RBAC for the broad structure, ACLs for individual objects, and ABAC where context really matters.

For a related identity topic, our guide to spear phishing shows how attackers target the people behind these permissions, which is why access control must be paired with phishing-resistant authentication.

What are ACL best practices?

Follow least privilege, deny by default, and review regularly. An ACL should grant the smallest access that lets the work get done, and nothing should be allowed unless a rule explicitly allows it.

Start with a default deny. A custom AWS network ACL already does this, and a Windows DACL with no entries denies everyone. Build up from that baseline with narrow allows, rather than starting open and trying to block the bad cases one by one.

Prefer groups to named users. An ACL that names ten individuals has to be edited ten times when the team changes. An ACL that names one group is edited once, in the group membership. Named users are for exceptions, not for the normal case.

Number network rules with gaps, such as 100, 110, 120, so you can insert a rule later without renumbering the whole list. Put specific deny rules before broad allows, and add a final explicit deny so the default is visible, not just implied.

Document every rule. A network ACL entry that says allow 10.0.4.0/24 to port 443 is clear today and a mystery in six months. Add a comment naming the system, the owner and the reason, and remove the rule when the reason goes away.

Review on a schedule. People change jobs, projects end, and contractors leave, but their ACL entries often stay. A quarterly review that removes stale entries is one of the highest-value security tasks a small team can do. Pair it with a check that no passwords are reused or exposed, using the free pwned password checker.

Watch the empty-list trapOn Windows, an object with no DACL grants full access to everyone, while an empty DACL denies everyone. If you delete a DACL expecting to lock a file down, you may have opened it to the whole system instead.

What are common ACL mistakes?

The most common mistakes are over-broad allows, wrong rule order, forgotten return traffic, and stale entries. Each one is easy to make and easy to miss in a review.

Over-broad allows are the biggest risk. Allowing 0.0.0.0/0 to a database port, or giving everyone write access to a shared folder, defeats the purpose of the list. Restrict by source address, by group, and by port, and treat any allow for everyone as a temporary exception that needs a review date.

Rule order is the second trap. In a first-match system, a broad allow placed before a specific deny hides the deny entirely. Read the list top to bottom as the system will, and test with a connection that should be denied, not just one that should be allowed.

Forgetting return traffic breaks stateless network ACLs in a confusing way. The inbound request works, the outbound response is blocked, and the user reports that the service is down. If a connection works one way only, check the outbound rules for the ephemeral port range first.

Stale entries accumulate quietly. A contractor who left a year ago, a test server that was deleted, a temporary rule for a migration that finished, all of them stay in the list until someone removes them. That is why reviews matter more than the initial setup.

ACL checklist: five habits that prevent most mistakes1. Least privilegesmallest access that lets the work get done2. Groups, not namesedit group membership once, not every ACL3. Deny by defaultallow only what a rule explicitly allows4. Number rules with gaps100, 110, 120 — leave room to insert a rule5. Review quarterlyremove stale users, servers and temporary rules
Five ACL habits that prevent most access-control mistakes. Illustration by Cysoro.

The bottom line

An access control list is a simple idea with serious consequences when it is wrong. It is the list attached to a resource that decides who can do what, and it is checked on every access, whether that access is to a file or to a network.

Use filesystem ACLs for files, network ACLs for traffic, and RBAC for the structure around them. Keep the lists narrow, ordered, documented and reviewed. Start by auditing the shared folders and cloud subnets you rely on most, and check the small business cybersecurity checklist for the other controls that belong alongside them.

Frequently asked questions

What is an access control list in simple terms?

It is a list attached to a file, folder, network or other resource that says who is allowed to do what. Each line names a user or group and the actions they may or may not perform, such as read, write or execute.

What is the difference between an ACL and a firewall?

A network ACL is a simple, usually stateless set of packet-filtering rules. A full firewall adds connection state, deeper inspection and often application awareness on top of similar allow and deny rules.

What is an ACE in an ACL?

An access control entry is one line in an ACL. It identifies a trustee, such as a user or group, and specifies the access rights allowed, denied or audited for that trustee.

What is the difference between a DACL and a SACL?

A discretionary ACL controls who is allowed or denied access to an object. A system ACL controls auditing, logging which access attempts by which trustees should be recorded.

Are ACLs the same as RBAC?

No. An ACL is resource-centric: each object lists who can use it. Role-based access control is subject-centric: users get roles, and roles carry permissions across many resources.

How do I see an ACL on Linux?

Use getfacl to view a file's ACL and setfacl to change it. For example, setfacl -m u:alice:r report.txt gives the user alice read access to report.txt.

Are network ACLs stateful or stateless?

Network ACLs are generally stateless. You must write both inbound and outbound rules, including a rule that allows return traffic, unlike stateful firewalls and AWS security groups.

Sources

  1. Microsoft Learn — Access Control Lists
  2. NIST — SP 800-162, Guide to Attribute Based Access Control (ABAC)
  3. AWS Documentation — Control subnet traffic with network access control lists
  4. Microsoft Learn — Access Control List (Windows drivers)
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against Microsoft Learn's access control lists documentation, NIST SP 800-162 and AWS network ACL documentation.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free