Hoofdstuk 15 meerkeuze Flashcards

1
Q

Which of the following commands set “other” permissions on file to r-x?

chmod o=r+x file
chmod o=rx file
chmod o-r-w file
chmod o+rx file
A

chmod o=rx file

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

Which of the following commands sets “other” permissions on file to r-x?

chmod 777 file
chmod 776 file
chmod 775 file
chmod 774 file
A

chmod 775 file

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

Only one set (user, group, other) of permission can be changed at once using the symbolic method.
True or False?

True
False
A

False

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

Which of the following are methods for setting permissions using the chmod command?
(choose two)

binary
symbolic
letter
octal
A

symbolic

octal

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

The chown command can be used to change the owner and group of a file.
True or False?

True
False
A

True

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

The chgrp command can be used to change the owner and group of a file.
True or False?

True
False
A

False

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

The user sysadmin will be able to read the file because they own it.
—-r–r– 1 sysadmin group 38270 Sep 2 18:49 file
True or False?

True
False
A

False

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

The user sysadmin will be able to change the permissions of the file because they own it.
—-r–r– 1 sysadmin group 38270 Sep 2 18:49 file
True or False?

True
False
A

False

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

Octal notation uses the following values for the permissions granted:

r = 4, w = 2, x = 1
r = 7, w = 5, x = 0
r = 3, w = 2, x = 1
r = 4, w = 2, x = 0
A

r = 4, w = 2, x = 1

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

Which of the following permissions would allow all users to add, view, and delete files in a directory?

666
775
750
777
A

777

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

A user cannot delete a file if they do not own it.
True or False?

True
False
A

False

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

The “execute” permission on a directory allows you to:
(choose three)

Change to that directory or use it as part of a path
Along with write permission to successfully delete the directory
Along with read permission to successfully perform ls -l
Along with write permission to successfully create new files
A

Change to that directory or use it as part of a path
Along with read permission to successfully perform ls -l
Along with write permission to successfully create new files

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

The “execute” permission on a file allows you to:

Run the file as a script
This permission isn’t meaningful for text files.
Delete the file
Move the file to a new directory
A

Run the file as a script

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

The chgrp command can be used on a file by:

Only root
A user that belongs to the files current group
The file owner and root
Only the file owner
A

The file owner and root

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

The chown command can be used to change the user owner on a file by:

Only root
A user that belongs to the files current group
The file owner and root
The file owner
A

Only root

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

The chmod command can be used on a file by:

The file owner and root
Only root
A user that belongs to the files current group
The file owner
A

The file owner and root

17
Q

Which option for the chown command can be used to change the owner of a directory and all the files and directories below it?

- r
- R
- f
- a
A

-R

18
Q

The chown command will only accept one file at a time as an argument.
True or False?

True
False
A

False

19
Q

The “execute” permission is never set on files by default.
True or False?

True
False
A

True

20
Q

The user owner of a file will always have the same or higher permissions as “other”.
True or False?

True
False
A

False