**Lecture 37   Chapter 05 Databases and Data center Security   5.5 Database Access Control — Transcript & Summary | SozAI**
Source: https://sozai.app/transcript/database-access-control-data-center-security/

Lecture 37 from a Computer and Network Security course covers database access control: discretionary access control, GRANT/REVOKE privileges, cascading revocation, granularity, roles, and administrati

## Key Takeaways

- Database access control adds a permission layer after authentication, determining what each user can do.
- GRANT and REVOKE are the core SQL commands for managing discretionary privileges, and revocation cascades through the chain of delegation.
- Access granularity ranges from the whole database to tables, rows, and columns, and can depend on the data values themselves.
- Roles simplify permission management at scale by grouping privileges and assigning them to many users.

## What the video covers

- Introduces database access control as an additional layer that is applied after user authentication, determining what permissions an authenticated user holds.
- Mentions the access control models covered earlier, including Mandatory Access Control, and notes that the database supports three types of access management.
- Explains that the owner of a table can grant access permissions (read, write, edit) to others and revoke them, and can delegate that granting authority.
- Defines database access rights (create, insert, delete, update, read, write) and discusses granularity: permissions can apply to the whole database, a table, specific rows, or specific columns.
- Describes content-dependent restrictions, where access depends on the data itself, such as allowing salary reads only for salaries under 10,000 dollars.
- Presents the SQL GRANT and REVOKE commands, including their syntax for granting permissions or roles on tables to specific users or to PUBLIC.
- Illustrates cascading revocation: revoking a privilege from a user also removes privileges that user propagated to others, unless those others also received the privilege through another path.
- Introduces roles as a way to manage permissions for many users efficiently, instead of assigning permissions individually.
- Discusses administrative and server-level permissions, and how a role's authority can be limited to specific databases or applications.
- Concludes with the point that a user who receives a privilege with grant authority can pass it on, and revoking that authority affects everyone who received it through them.

## Chapters

1. 00:00 Introduction and Review of Access Control Layers
2. 02:00 Database Access Management Models
3. 04:00 Database Access Rights and Granularity
4. 05:30 GRANT and REVOKE Commands
5. 08:00 Cascading Revocation of Privileges
6. 11:30 Roles and Administrative Permissions

Answers

## Questions about this video

What is the additional layer that database access control adds?

After the system verifies a user, the database adds a layer that determines which permissions that user has on the database objects. The transcript describes this as deciding what you can do once your identity is confirmed.

What happens to users who received a permission from someone whose permission is revoked?

Anyone who received the permission through the revoked user loses it as well, cascading down the chain of delegation. However, a user who also received the same permission through another grant path keeps it.

Why would an administrator use roles instead of granting permissions to each user?

In large databases with many users, assigning permissions individually is impractical. Roles group permissions together, so they can be granted to many users at once and managed centrally.

## Full Transcript — Download SRT & Markdown

00:01

Speaker A

In the name of God, the Most Gracious, the Most Merciful. Welcome to a new lecture in the Computer and Network Security course. Today, God willing, we will discuss section 5.5. So, we said it is an additional layer for whom? That is

00:14

Speaker A

added on top of whom? Which is We will have the user. The user will perform It will verify this user.

00:24

Speaker A

The database will start giving me an additional layer: what permissions does this user have on the database?

00:32

Speaker A

It determines who you are; the database determines what permissions you have, okay. We talked about them before. How many models did we have? Four models.

00:50

Speaker A

Here in the database, we have three types. And Mandatory Access Control, okay. The person who has access permission, can they grant it to whom? To other people.

01:04

Speaker A

You have permission based on your role in the database. Meaning, you are an accountant. I will create a role called "accountant." Anyone who has the " accountant" permission, or holds the accountant role, remains able to do what ? They can exercise these permissions.

01:21

Speaker A

As we will see in SQL Server. Okay. It supports for us How is the management of, who is it? Of the database. It tells us there are three ways. The first, second, and third methods.

01:40

Speaker A

Regarding the, I have a number or a small count of people. Authorized to manage access to the database. These can grant permission. Or revoke permission from whom? From other people, okay, or from other users.

01:59

Speaker A

It says, no, it says the owner who created the table has the authority to grant access permissions to the table, such as reading, writing, or editing, or revoke them from whom?

02:11

Speaker A

From others on the table they created. It says, no, what do they do? Besides giving permission to others, they can delegate other people besides themselves to grant or revoke permissions on the table they created, okay.

02:29

Speaker A

Let's talk about whom? About database access rights. What are database access rights? It says simply, what permission do you have on the table? It says database permissions are either I want to create Meaning I want to create the table or

02:45

Speaker A

create the column, or I want to add a row in the table or column, or I want to delete a row, or I want to modify the data of a specific row, or I want to read data, or I want to write any other

02:54

Speaker A

information to the database, okay. It says here, what do we have? What does granularity mean? What does granularity mean? I have the database, okay.

03:06

Speaker A

I have whom? The entire database. The database has tables—here I have four tables. The table has permissions on it, like reading or writing, and so on. It says regarding reading, I can give you access only to specific columns or specific

03:19

Speaker A

rows; what do we call this? Meaning I have a full database. The database contains tables; tables contain rows, and rows contain columns. I can give you permission on the entire database, or give it to you on a whole

03:31

Speaker A

table, or give it to you on specific rows in a specific table, or give it to you on specific columns in a specific table. What do we call this?

03:41

Speaker A

Okay. It tells me, not just that; it tells me it's not limited to specific rows or columns. I want to tell the users, okay , here I have the table of who?

03:51

Speaker A

Employees. If I tell you the employees whose salaries are less than 10,000 dollars, you can see their data; any employee whose salary is over 10,000 dollars, you cannot see their data. This is what is meant by who?

04:05

Speaker A

It doesn't depend on the object itself; it depends on the data inside the object . It depends on the data inside the object; it doesn't depend on the database object. It doesn't mean that, " Well, I have read permission on the

04:17

Speaker A

salary table." It tells me, "No, besides read permission on the salary table, you can only read those with salaries under 10,000 dollars." Anyone whose salary is over 10,000 dollars, you don't have permission to see their data, okay?

04:35

Speaker A

SQL says we have two commands to grant permission: the GRANT command, which gives me permission, and REVOKE, which takes the permission away from me.

04:45

Speaker A

With GRANT, you essentially have the grant authority, so you can give permission—whether it's read, write, or any other authority—to a specific person on the database, okay?

04:55

Speaker A

REVOKE: I have a person, a user, for example, A. This person exists in my database, and they have permission on this table, so I can revoke that permission from them using who?

05:05

Speaker A

REVOKE. So, they must have had the permission beforehand for me to be able to revoke it from them, okay?

05:12

Speaker A

Alright, the GRANT command, here is its syntax. Which is permission. Or role, so it's either permission or role on table. In the case of permission , it will be on a table; in the case of a role, we don't care about the table.

05:31

Speaker A

Permission to a specific table, or to a specific role, or to everyone, okay? So, I give you the permission or role on a table to specific people or to PUBLIC , meaning to all users.

05:47

Speaker A

And I might give you the authority to grant it to other people, for example.

05:54

Speaker A

Okay, you give me SELECT permission on all tables for the person named, okay? Alright, in the previous slide, we talked about the GRANT command.

06:04

Speaker A

So, GRANT was for granting permission; how do I revoke permission from a certain user?

06:09

Speaker A

Well, very simply, I will use a command called...what is the command I will use ?

06:15

Speaker A

It's called, I will say, REVOKE. Okay, the name or role on the table. Okay, revoke the permission, for example .

06:34

Speaker A

From all tables. What does that mean? Revoke the SELECT or read permission from all tables from the user named what ?

06:45

Speaker A

Okay. It says I can grant the permission to, okay, or granted permission to Terry and Sofia.

06:54

Speaker A

Okay, Sofia granted permission, and Terry also granted permission; David granted it to Elin and Jonas, and David also granted it to whom? To Matthias. It says now, if I came to revoke the permission from...

07:12

Speaker A

That is, from David, or from Terry, what will happen? It says, what will happen to whom?

07:18

Speaker A

Everyone who took the permission through Terry, what will happen to them? Everyone who took the permission from Terry, what will happen? I will revoke the permission from them, okay? So, that means...

07:39

Speaker A

It says Olivia granted it to Terry and Sofia; Terry and Sofia granted it to David; David granted it to Elin, Jonas, and Matthias, okay?

07:53

Speaker A

Meaning, if I revoked it from Terry and Sofia, everyone after them will have their permissions revoked, okay?

07:58

Speaker A

Permissions, okay. Well, it says, it's possible for the user, for example, if I revoked it from Terry, okay...

08:08

Speaker A

David, we took it from whom? We got it from Terry and Sophia. Okay? Is that clear? So, I have the permission ; where did David get the permission from? He got the permission from Terry and from Sophia.

08:27

Speaker A

If I, Livia, revoked the permission from Terry, this does not mean the permission was revoked from David, because he got it through whom?

08:34

Speaker A

Through Sophia, right? Is that clear? Okay. Alright. Okay, it asks how I want to revoke permission from certain people.

08:49

Speaker A

Let's take Terry for example. And Ellen gave it to whom? To Jonas, Sophia. So, we had it with Terry and with whom?

09:04

Speaker A

With David. Terry gave it to David. David granted it to Ellen, and Ellen granted it to Jonas—how long after Terry gave it to David? After Sophia gave it to David, David then gave it to Matthias .

09:17

Speaker A

Now, it says if Terry revokes his permission, we agree that since David got it from Terry and from Sophia, it won't be revoked from him.

09:25

Speaker A

What about Ellen and Jonas? It says Ellen and Jonas got the permission—was it after Sophia or after Terry gave it to David? I say after Terry gave it to David. So, Alice, or Ellen and Jonas, will lose their permission. What about

09:40

Speaker A

Matthias? It says Matthias got the permission after he received it from Sophia, so the permission remains with Matthias, right ?

09:49

Speaker A

Alright. Okay. Right, so when permission is revoked from him, everyone who got it through him loses it, right?

10:44

Speaker A

Okay? So, I have the permission, okay? From, it says if the user... And then it comes from, it says in the case of, we will revoke it from everyone who got it after him.

11:03

Speaker A

But will he still have the permission? It says in the case where he got the permission from another party.

11:09

Speaker A

Who will still have the permission? Okay ? Alright, we're done with whose story? We said I have a permission, which is what?

11:22

Speaker A

A permission that is... A user permission or an accountant permission; this accountant, who do I give it to?

11:34

Speaker A

To more than one person on a database. Our databases will be large. Many people are working on them, and it's not logical for me to give each user their specific permission. So what do I do? I want to create roles.

11:46

Speaker A

Each role I want to assign permissions to, and then I want to give the specified [user] the permission based on whom?

11:53

Speaker A

On their role. So we have dozens of applications built on our databases, each with its own specified [permission], okay?

12:11

Speaker A

Okay, it gives us administrative complexities and heavy administrative burdens okay? It solves for us that what? The database management process becomes easier, And consequently, our security becomes better and improved.

12:37

Speaker A

We have in the, okay, in the discretionary access control or in the database, okay, the users are divided into three types.

12:52

Speaker A

Regarding the... Okay, meaning he has created tables, created columns, or created rows, okay. Okay, they have what?

13:08

Speaker A

A relationship with his...So he is a user who owns objects within the database, like the owner of the application and the tables belonging to the application.

13:18

Speaker A

He is anyone who tries to reach the database through the, but he is not the owner of the application or the data, okay.

13:27

Speaker A

The third type we have, the... He has permission, okay, on a part of the...It is an administrative permission , meaning a high-level permission on a part or all of the database we have.

13:47

Speaker A

Alright, how does the, which is... How does it work in our database systems ? First, we have the following steps. We have each containing a group, these need to reach inside the database. To reach the inside the database, who do they

14:06

Speaker A

need? Each I need to define for it, okay. Meaning, for example, this accountant, I can give him one or more, for example.

14:24

Speaker A

An accountant could handle the accounts department for me. And another accountant handles the payroll department, okay. Another accountant handles the purchasing department. So, each accountant among them has Each in these will have its own special permissions.

14:42

Speaker A

Of course, to be able to execute comfortably, I only grant the necessary permissions. Now, as a for the database I will give this to those who will work .

14:57

Speaker A

Okay, so who is the role of They perform management. They also come and audit, so that if we have sensitive data on the database.

15:20

Speaker A

Ensure that it doesn't harm, who, the database. They can delegate to other people some of the permissions they have, okay.

15:34

Speaker A

Database What do I need? I need the first thing. So I need to create roles.

15:42

Speaker A

I want each to define its own. And then I want to grant the or remove it from who, the users. So if I want to work I need first of all to create or delete the.

15:54

Speaker A

Each, define what its permissions are. Then grant the permission or remove it from the people, okay.

16:03

Speaker A

We said we have So I have a with. It manages permissions at the database level, Of course, at the server level inside the database Okay?

16:32

Speaker A

I can create specific permissions for specific people for a specific thing we have. It is basically what is, which is fixed , I don't control it, I don't control what?

16:48

Speaker A

You only control the Okay? So this and this are fixed, I cannot add new types to them, the one I can add to is who?

16:58

Speaker A

It is, okay? Okay. It is basically So it is defined or created in advance.

17:16

Speaker A

Defining this role and the permissions is updated or modified or from the users .

17:25

Speaker A

So the user can be added or removed here . What are some examples of Each one of them The has all the permissions we have on who? On the database.

17:51

Speaker A

By its name only, of course, on every To have server permissions. Download, and so on.

18:03

Speaker A

Merging permissions together if we have it controls it. Which is who? We have who? We are looking for who? On Who?

18:30

Speaker A

Each one of them by its name, meaning the database owner. He has all the permissions.

18:35

Speaker A

He has the permission to add or remove the user from the database, okay. He has the permission to read all the data existing in the database.

18:45

Speaker A

He has the permission to modify all the data or, Okay. And so on, Meaning he has the permission to what?

19:01

Speaker A

To take a backup copy of the database and. He creates points which are restore points for the database.

19:07

Speaker A

I tell him to save this point so that if a problem occurs, I return to this point , we will call it.

19:13

Speaker A

Or take a full copy from who, from the database. This means the permission to prevent him from reading anything from.

19:28

Speaker A

The same goes for if I gave him this, he is forbidden from modifying anything we have on the database.

19:34

Speaker A

What is the difference regarding the server? The server, its scope is the entire server okay.

19:44

Speaker A

Okay, Its authority is only over a specific database itself, okay. Examples, we have seen examples.

19:59

Speaker A

If I have a server distributed across more than one device. Then it is mine, regarding data distribution. The distribution, which is the connectivity between servers, is whose responsibility ?

20:09

Speaker A

Whereas It will have, which is, its authority only over the database, which is the third type we have.

20:42

Speaker A

Okay. While I give it based on, who? And I can link it to what and ask it to execute it. Okay.

20:56

Speaker A

Two types, which is whoever is able to access the system, this will be with them. And the second type is who?

21:03

Speaker A

I will link it to a specific one, not to . It will ask you for it to access it.

21:13

Speaker A

Okay. We are talking about what, the? It will be linked to a specific one, like for example, an accounting system or others. I must have in order to update it, which is.

21:42

Speaker A

So if I am able to access, then I am able to access the part in the database related to this.

21:48

Speaker A

Okay. Okay. For example, we have. So I have the. It will be linked to.

22:09

Speaker A

It does not activate for me until after I enter an activation process. After it activates with me, I will have.

22:16

Speaker A

Related to. Maybe the add other than. Which is the application's. Also, it has additional security restrictions of its own.

22:32

Speaker A

Okay? Meaning, for example, it might allow the payroll application for a specific employee; who are we talking about? About that which is that which is .

22:45

Speaker A

Meaning, for example, I can have the payroll application give an employee the authority to read specific data and modify it only during official working hours; after official working hours, it does not allow you, which is who? To update the database, okay?

23:00

Speaker A

Who are we talking about? About the database, which is about the application . Okay, in this section we talked about, we said that it is an additional layer present to protect the database. Other than the.

23:17

Speaker A

If I gave with me authority, I give it to others from all the people who took it through me.

23:26

Speaker A

This is how we finished section 5.5. Thank you all. We will continue in the next lecture, God willing, in section 5.6.

Topics: database security access control GRANT REVOKE discretionary access control roles privileges granularity SQL Server cascading revocation

Study this video

- [Flashcards from this video](https://sozai.app/tools/flashcard-maker/#from=transcript&id=99519)
- [Quiz on this video](https://sozai.app/tools/quiz-generator/#from=transcript&id=99519)
- [Crossword from this video](https://sozai.app/tools/crossword-maker/#from=transcript&id=99519)
- [Word search from this video](https://sozai.app/tools/word-search-maker/#from=transcript&id=99519)
- [Study guide from this video](https://sozai.app/tools/study-guide-maker/#from=transcript&id=99519)

Free, made by AI from this transcript. No signup.


---
This is the markdown twin of https://sozai.app/transcript/database-access-control-data-center-security/ — the same content, without the markup.
Published by SozAI (https://sozai.app). Reuse and quotation are allowed with attribution and a link back.
Machine-readable index: https://sozai.app/llms.txt · data API: https://sozai.app/api/
