41. what file on a system contains a list of hosts that can't connect to the machine's services?
a. /etc/hosts/denial
b. /etc/hosts.deny
c. /etc/host.notallow
d. /etc/inetd.conf
e. /etc/hosts.not
42. which of the following services would you be least likely to configure to be governed over by the internet super server?
a. ftp
b. telnet
c. ssh
d. finger
e. bind
43. on a system using shadowed passwords, the correct permissions for /etc/passwd are ____- and the correct permission for /etc/shadow are _______.
a. -rw-r-----, -r--------
b. -rw-r--r--, -r--r--r--
c. -rw-r--r--, -r--------
d. -rw-r--rw-, -r-----r--
e. -rw--------, -r-------
44. which of the following files has the correct permissions?
a. -rw--w--w- 1 root root 369 dec 22 22:38 /etc/shadow
b. -rwxrw-rw- 1 root root 369 dec 22 22:38 /etc/shadow
c. -rw-r--r-- 1 root root 369 dec 22 22:38 /etc/shadow
d. –r-------- 1 root root 369 dec 22 22:38 /ect/shadow
45. you have a user whose account you want to disable but not remove. what should you do?
a. edit /etc/gshadow and just remove his name.
b. edit /etc/passwd and change all numbers to 0.
c. edit /etc/shadow file and remove the last field.
d. edit /etc/passwd and insert an * after the first :.
e. edit /etc/group file and put a # sign in front of his name.
46. to create a user account, keep in mind that the username is at most ____ characters long.
a. 6
b. 8
c. 12
d. 18
47. what file contains the default environment variables when using the bash shell?
a. ~/.profile
b. /bash
c. /etc/profile
d. ~/bash
48. all groups are defined in the /etc/group file. each entry contains four fields in the following
order.
a. groupname, password, gid, member list
b. gid, groupname, password, member list
c. groupname, gid, password, member list
d. gid, member list, groupname, password
49. there are seven fields in the /etc/passwd file. which of the following lists all the fields in the
correct order?
a. username, uid, password, gid, home directory, command, comment
b. username, password, uid, gid, comment, home directory, command
c. uid, username, gid, home directory, password, comment, command
d. username, password, uid, group name, gid, home directory, comment
50. what is the usual mode for the /tmp directory?
a. 0777
b. 0755
c. 7777
d. 1777
e. 0222
责任编辑:小草