Discretionary Access Control (DAC)
What you'll learn: You'll understand how DAC lets resource owners directly decide who can access their files and data.
What is Discretionary Access Control?
Discretionary Access Control (DAC) is an access control model where the owner of a resource (like a file, document, or database record) has the authority to decide who else can access it and what they can do with it. The word "discretionary" means it's at the owner's discretion—their choice.
Think of it like your personal social media posts. You decide whether to share them publicly, with friends only, or keep them private. You're the owner, so you control the access settings discretionally.
How DAC Works
In a DAC system:
- Every resource has an owner (usually the creator)
- The owner sets permissions for other users or groups
- Users can grant or revoke access without needing administrator approval
- Permissions are typically read, write, execute, or delete
For example, if you create a shared document in a cloud drive, you can invite specific colleagues and give them "view only" or "edit" permissions. That's DAC in action.
DAC in Web Applications
Web applications often implement DAC for user-generated content. When you create a project board, upload a photo album, or share a folder, the application typically lets you:
- Share with specific email addresses
- Make it public or private
- Grant viewer, editor, or admin roles
- Transfer ownership to someone else
The key characteristic: the user controls the access, not just the system administrator.
Limitations
DAC's flexibility is also its weakness. Since users control access, they can accidentally (or intentionally) grant permissions to the wrong people. There's no central enforcement of security policies—it relies entirely on user judgment.
Key Takeaway: Discretionary Access Control (DAC) empowers resource owners to directly manage who can access their content, offering flexibility but placing security responsibility in users' hands.