Discretionary Access Control: Who Gets to Share the File?
When a file's owner can decide who may read or change it, that choice is an example of discretionary access control. The discretion belongs to the person managing the resource; the computer still has to enforce the decision.
Usually called DAC, this approach gives an owner, or another authorized person, control over some access permissions. The National Institute of Standards and Technology's definition includes both who gets access and what they're allowed to do.
One document, different permissions
Suppose you own a shared event budget. You let a colleague edit the estimates, give the venue manager permission to read them and keep the document unavailable to everyone else.
Those choices concern authorization: deciding which actions an account may perform. Signing in checks a claim about the account's identity, a separate process called authentication.
A successful sign-in doesn't automatically give the venue manager permission to edit your budget.
The permissions might be stored in an access control list, or ACL: entries naming users or groups and the actions they're allowed or denied. Microsoft's Windows documentation describes a discretionary ACL, called a DACL, whose entries are checked when access is requested.
The Many Ways to Decide Who Gets In
DAC describes who has discretion over access; an ACL is one way to record the rules. They aren't competing names for the same thing.
Sharing authority can spread
Permission to edit may include more than changing a sentence or a number. Depending on the system and its settings, an editor may also be able to invite someone else.
For example, Google Drive's sharing guidance says editors can change permissions and share items by default. It also describes an owner setting for restricting that ability.
Folder access complicates the picture. Inherited permissions are rights a file receives from the folder containing it; a person may have access through that folder even if you didn't add them directly to the file.
Google's guidance explains that you can't give someone less access to an ordinary file than they have through its parent folder. A dedicated folder with limited access can provide a different boundary.
That makes the location of the event budget part of the decision. Putting it in a broadly shared project folder may undermine the narrow audience you intended.
- Keep every photo and file on a box you own, and reach them from anywhere.
- Let backups run on their own so one dead laptop doesn't take your files with it.
- Add two drives and a failed disk no longer means lost files.
Owners can have limits, too
Discretionary control doesn't mean every owner can override every organizational rule. A workplace may prohibit external sharing or combine owner choices with other controls.
Mandatory access control, or MAC, applies centrally enforced restrictions that ordinary owners can't waive. Red Hat's SELinux documentation describes a Linux security system that adds such checks after discretionary permissions allow access.
Role-based access control, or RBAC, organizes permissions around duties, such as payroll clerk or project reviewer. The role-based approach can reduce the need to choose permissions person by person.
Real systems can combine these approaches. An owner might share a file with an approved team while the organization blocks access from outside that team or company.
Removing access has a boundary
Revoking permission stops future access through the permission you've removed, provided another rule doesn't still allow it. It doesn't reach out and erase a separate copy someone already downloaded or photographed.
Before sharing, check the recipient, the permitted actions and whether the recipient can pass access onward. Review those choices when the project ends or someone's responsibilities change, including any group or folder permissions that still apply.
Access Control Lists: The Rules That Let Requests Through

Mandatory Access Control: Even the Owner May Be Told No

Role-Based Access Control: One Role, Many Accounts

QUOTE:
"Amateurs hack systems, professionals hack people."
