Workbook 4 File Ownership and Permissions: Chapter 1: Regular File Ownership and Permissions Flashcards

1
Q

In the output of a long listing (ls -l), which field indicates
(i) the user owner
and
(ii) the group owner?

A

(i) Third Field

(ii) fourth Field [4]

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

What are the three permission types for regular files and their symbols?

A

-rw-rw-r–

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

What does having the r permission for a regular file enable a user to do?

A

Read

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

What does having the w permission for a regular file enable a user to do?

A

Write

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

What does having the x permission for a regular file enable a user to do?

A

Execute

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

What are the three access classes and their symbols?

A
  1. (u)ser owner
  2. (g)roup owner
    (o) ther
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

If a file’s permissions are rwxr-xr-x, what are the permissions of each of the three access
classes?

A

(u) ser: read write execute
(g) roup: read execute
(o) ther read execute

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

When you try to access a file, what questions does Linux ask and in what 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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the default permissions for regular files newly created by a normal user?

A

user owns the file, and as the file owner, he has read and write permissions. Users
other than elvis can only read the file. [5]

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

To execute a file, what permission(s) does a user need for the file?

A

(w)rite permission [6]

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

What are the permissions always for a symbolic link?

A

rwxrwxrwx

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