Information Technology Reference
In-Depth Information
Question 6
The file test currently has the access mode 644. Which of the following will add
mandatory locking? [Select all that apply.]
A.
chmod 2664 test
B.
chmod 2674 test
C.
chmod g+s test
D.
chmod g+l test
E.
setfacl -s u::rw-,g::rws,o:r-- test
The correct answers are A, C, and D. Answer B is wrong because group exe-
cution is also being added which results in setgid permission, not mandato-
ry locking. Answer E is wrong because setfacl cannot be used to add or
remove mandatory locking.
Question 7
The file /etc/default/su controls the behavior of the su command, which
includes which of the following? [Select all that apply.]
A.
Displaying su usage on the system console
B.
Restricting superuser usage to the system console
C.
Logging failed su attempts
D.
Enabling the logging su usage through syslog
E.
Logging successful su attempts
The correct answers are A, C, D, and E. Answer B is accomplished by edit-
ing the /etc/default/login file.
Question 8
Which of the following shows the access mode of a file that has the setuid
enabled?
A.
srwxrwxrwx
B.
-rwsrwxrwx
C.
-rwxrwsrwx
D.
-rwxrwxrws
E.
-rwxrwxrwt
Search WWH ::




Custom Search