Skip to content
Home ยป Database Access Control

Database Access Control

Database Access Control

Introduction

Database Access Control is the mechanism used to regulate who can access a database and what actions they can perform on it. It ensures that only authorized users can interact with database resources in a controlled and secure manner.

๐Ÿ‘‰ It is a key component of database security and directly supports the CIA Triad (Confidentiality, Integrity, Availability).


Meaning

Database access control defines:

  • Who (user/subject) can access the database
  • What actions they can perform (read, write, update, delete)
  • Which data they can access (tables, rows, columns)

๐Ÿ“Œ It prevents unauthorized access and misuse of data.


Objectives of Database Access Control

  • Protect sensitive data
  • Prevent unauthorized access
  • Maintain data integrity
  • Ensure accountability
  • Support legal compliance

Types of Database Access Control


1. Discretionary Access Control (DAC)

Meaning

  • Data owner decides access permissions

Example

Database owner grants SELECT permission to a user


2. Mandatory Access Control (MAC)

Meaning

  • Access based on security labels (Confidential, Secret)

Example

Only high-level users can access classified data


3. Role-Based Access Control (RBAC)

Meaning

  • Access based on roles

Example

  • Admin โ†’ Full access
  • User โ†’ Read-only access

4. Attribute-Based Access Control (ABAC) (Advanced)

Meaning

  • Access based on attributes like:
    • User role
    • Location
    • Time

Example

Access allowed only during office hours


Database Access Control Mechanisms


1. Authentication

Meaning

Verifies user identity

Methods

  • Password
  • OTP
  • Biometrics

2. Authorization

Meaning

Defines what actions user can perform


3. Privileges (Permissions)

Common Database Privileges

  • SELECT โ†’ Read data
  • INSERT โ†’ Add data
  • UPDATE โ†’ Modify data
  • DELETE โ†’ Remove data

4. Views

Meaning

Provide restricted access to specific data

Example

User sees only limited columns of a table


5. Encryption

Meaning

Protects data stored in database


6. Auditing and Logging

Meaning

Tracks user activities

Example

Logs of database access and changes


Working of Database Access Control

Step-by-Step Process

  1. User sends request to database
  2. System authenticates user
  3. Authorization rules are checked
  4. Access is granted or denied
User โ†’ Authentication โ†’ Authorization โ†’ Access Granted / Denied

Database Access Control Models (SQL Example)

Granting Access

GRANT SELECT, INSERT ON Students TO User1;

Revoking Access

REVOKE INSERT ON Students FROM User1;

Advantages of Database Access Control

  • Protects sensitive information
  • Prevents unauthorized data access
  • Ensures accountability
  • Enhances data security
  • Supports compliance

Limitations

  • Complex management in large databases
  • Misconfigured permissions can cause breaches
  • Insider threats possible

Database Access Control and CIA Triad

CIA ComponentRole
ConfidentialityRestrict data access
IntegrityPrevent unauthorized changes
AvailabilityEnsure access for authorized users

Real-Life Examples

Example 1: Banking System

  • Customer โ†’ View account
  • Teller โ†’ Update transactions
  • Manager โ†’ Full control

Example 2: Hospital Database

  • Doctor โ†’ Access patient records
  • Receptionist โ†’ Limited access
  • Admin โ†’ Full access

Database Access Control in Cyber Law (India)

Under IT Act, 2000:

  • Section 43 โ†’ Unauthorized access
  • Section 66 โ†’ Computer-related offences

๐Ÿ“Œ Organizations must implement proper controls to avoid legal penalties.


Best Practices

  • Apply least privilege principle
  • Use strong authentication
  • Regularly review access rights
  • Enable auditing and monitoring
  • Use encryption

Conclusion

Database Access Control is a critical mechanism for protecting data from unauthorized access and misuse. By implementing proper authentication, authorization, and role-based permissions, organizations can ensure secure, reliable, and legally compliant database systems.


๐Ÿ“˜ MCA Exam Tip

For 10โ€“15 marks:

  • Definition
  • Types (DAC, MAC, RBAC, ABAC)
  • Mechanisms
  • SQL example
  • Advantages + examples