Regular File Ownerships and Permissions Flashcards

1
Q

Files have a…?

A

user owner, group owner, and a set of permissions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Three permission types…?

A

(r)ead, (w)rite, and e(x)ecute.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Three access classes…?

A

(u)ser owner, (g)roup owner, and (o)ther.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Viewing ownerships and permissions…?

A

ls -l

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Modifying ownerships and permissions…?

A

chmod, chgrp, and chown.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Linux is a multiuser environment, so many different people are often…?

A

working with a single set of files and directories a the same time. (Some of these files are intended to be shared, so that many people can view and edit the file. For example, someone might be listing suggested gifts they would like to receive for an upcoming birthday. The more people who are able to read the file, the better. Other files, the user might want to keep private. Few people would want anyone else to be able to read their diary. Someone might want a file to be readable to everyone on the system, and allow a few select users on the system to modify the file as well.)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Every file in Linux has three properties that allows users to control…?

A

who can access the file and how: a user owner, a group owner, and a set of allowed permissions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

When a user creates a file, that user becomes the…?

A

file’s user owner, and (usually) the primary group of the user becomes the file’s group owner.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

A user cannot change the user owner of a file, but a user has some abilities to change the group owner. The permission bits define how…?

A

three different classes of users can user the file: the file’s owner, members of the group that owns the file, and everyone else.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

When deciding who can access a file, a user can distinguish between…?

A

three types of permissions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Someone can view a file if they have …?

A

read permissions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Some can modify a file if they have…?

A

write permissions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Someone can use the file as a command if they have…?

A

execute permissions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

In order to start up an application or run a script, the file containing the application or script must be…?

A

Executable. (Normal (data) files do not use the executable permission type)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Each file has a set of read, write, and execute permissions for three different classes of file access. The first set is used for…?
The second set is used for…?
And the last set is used for…?

A

First set = owner of a file
Second set = members of the group that owns the file.
Third set = Used for everyone who doesn’t fit into the first two groups.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

A file’s permissions are usually show using a series of…?

A

nine character, such as rwxr-xr-x. The first three letters represent the “user” permissions, the next three the “group” permissions, and the last three the “other” permission. A letter indicates that the corresponding permission is enabled, while a disabled permission is represented by dash.

17
Q

When someone tries to access a file, Linux asks these questions in order…?

A
  1. Does the user own the file? if so, the user permissions are used.
  2. is the user a member of the group that owns the file? if so, the group permissions are used.
  3. Otherwise, the other permissions are used.