Hoofdstuk 16 meerkeuze Flashcards

1
Q

The /tmp directory is a temporary directory and will not exist on a system at all times.
True or False?

True
False
A

False

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

The /var directory has files that change over time.
True or False?

True
False
A

True

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

The “sticky bit” permission…

…prevents others from overwriting files they don’t own in common directories.
…changes the group ownership of existing files in a directory.
…prevents others from removing files they don’t own from a common directory.
…sets the group ownership of any new file created in a directory.
A

…prevents others from removing files they don’t own from a common directory.

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

Which of the following commands will set the “sticky bit” on /shared ?

chmod 4777 /shared
chmod 1777 /shared
chmod 2777 /shared
chmod 7777 /shared
A

chmod 1777 /shared

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

The “setuid” permission…

…allows files in a directory to be manipulated as by the directory owner.
…reports the output of a script to the owner.
…allows a command to be run as the file owner.
…prevents the owner of a file from being changed.
A

…allows a command to be run as the file owner.

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

Which of the following commands will set setuid for /usr/bin/program?

None of the above
chmod 2755 /usr/bin/program
chmod 1755 /usr/bin/program
chmod 4755 /usr/bin/program
A

chmod 4755 /usr/bin/program

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

The setgid permission…
(choose two)

…allows files created in a directory to be owned by the group that owns the directory.
…can only be set on files.
…allows a command to be run as the group owner of the file.
…prevents the group owner of a file from being changed.
A

…allows files created in a directory to be owned by the group that owns the directory.
…allows a command to be run as the group owner of the file.

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

Which of the following commands will set setgid on /shared ?

None of the above
chmod 4777 /shared
chmod 1777 /shared
chmod 2777 /shared
A

chmod 2777 /shared

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

Setting setgid on a directory…

…will allow scripts in the directory to be executed as the group owner of the directory.
…will set the group owner of all files created in the directory to the group owner of the directory.
…does nothing.
…is not allowed by the system.
A

…will set the group owner of all files created in the directory to the group owner of the directory.

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

Deleting a source file will break an associated hard link.
True or False?

True
False
A

False

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

A source and a hard link must be part of the same filesystem.
True or False?

True
False
A

True

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

Deleting a source file will break an associated symbolic link.
True or False?

True
False
A

True

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

A source file and a symbolic link must be part of the same file system.
True or False?

True
False
A

False

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

Which of the following commands would create a hard link, link to file?

ln file link
ln -s link file
ln -s file link
ln link file
A

ln file link

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

Which of the following commands would create a symbolic link, link to file?

ln -s link file
ln file link
ln -s file link
ln link file
A

ln -s file link

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