Workbook Questions 3.5.1 + Lab 3 File Permission quiz Flashcards

1
Q
  1. Identify the two choices that describes a directory in Unix.

A. The current directory is represented as a single dot .
B. A directory is a file that contains a list of files and other directories
C. The current directory is represented as two dots ..

A

A, B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  1. To run a shell script a user must have a minimum of
A

Read and execute permission

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

To run a binary file the user must have a minimum of

A

Execute permission

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

Minimum permission required for a directory, when deleting a file from the directory

A

Write and execute

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

Minimum permission for a file to be copied

A

Read

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

T/F - To delete a file, a user must have write and execute permission in the directory, but does not need any permission for the file itself.

A

True

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

User PrjMgr copies the file Plan.Q01 to directory /archive/Mgt/Q01 using the following command:

cp /home/PrjMgr/Plan.Q01 /archive/Mgt/Q01/

What are the minimum permissions required for the directories PrjMgr and Mgt

A

source directory x, for target directory w and x

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

T/F - To move a file, a user must have appropriate permission in the source and target directories, but does not need any permission for the file itself.

A

True

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

user1 moves the file budget.2015 using the following command:

mv /home/user1/budget.2015 /home/accounts/

The minimum file permission required for source and target directories are:

A

Write and execute

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

Minimum permission for a file to be copied

A

Read

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
  1. What is the permission, in octal mode, of the file MySQL.log, given the file listing:
    -rwxrw–w- 2 maotse students 15 Jan 25 12:37 MySQL.log
A

762

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
  1. Given the file permission -rw-rw-r– for a file report.draft in current directory, identify the chmod com mand that adds execute permissions for owner and removes read permission from others. Permission for group
    should remain unchanged.
A

chmod 760 report.draft

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