Samba Apache Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

For every virutal host on an apache server you need to create a configuration file in the directory /etc/apache2/vhosts.d
A) True
B) False

A

A) True

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

Which is true of the following directive:
AddHandler cgi-script cgi, pl, exe
A) It instructs the server to only execute files in the cgi-scripts directory.
B) It instructs the server to execute any file with the extension .cgi or .pl or .exe as a cgi script.
C) It allows cgi scripts to be interpreted by TomKat
D) Causes the server to handle any errors as an executable

A

B) It instructs the server to execute any file with the extension .cgi or .pl or .exe as a cgi script.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
The URL http://109.14.2.15/~agreen/interest.html is entered in the Firefox browser and a web page is displayed. Which of the following directives allows for this URL to "work". 
A) DocumentRoot  /srv/www/htdocs 
B)  Options +Include Home  
C)  UserDir publc_html 
D)  vhost.d interest.html
A

C) UserDir publc_html

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

Which of the following would create a file (username and password) for user authentication.
A) ln -s htpasswd2 passwd
B) htpasswd2 -r user tux
C) useradd htpasswd /etc/apache2/htpasswd tux
D) htpasswd2 -c /etc/apache2/htpasswd geeko

A

D) htpasswd2 -c /etc/apache2/htpasswd geeko

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
The virtual host template could be found in \_\_\_\_\_\_\_\_\_\_\_. 
A) /home/geeko/public_html 
B)  /etc/apache2/php.ini  
C)  /etc/apache2/vhosts.d 
D)  /etc/vhosts/templates
A

C) /etc/apache2/vhosts.d

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

Which of the following Directory blocks would allow for Server Side Includes?
A)
Options +Includes

B)
Options FollowSysLinkx

C)
Allow, Deny
Allow from Includes

D) None of the above

A

A)

Options +Includes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
This configuration file is used to specify the IP addresses and TCP/IP ports Apache is listening to. 
A)  uid.conf  
B)  vhost.d  
C)  listen.conf  
D)  default-server.conf
A

C) listen.conf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
The text below is an example of a: 
GET /simple.html HTTP/1.0
User-Agent: Mozilla/4.5 [en] (X11; SunOS 5.5.1 sun4m)
Accept: image/gif, image/x-xbitmap, image jpeg, */*
A)  Request from a browser 
B)  Request from the server  
C)  ping packet  
D)  none of the above
A

A) Request from a browser

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
The text below is a \_\_\_\_\_\_\_ 
HTTP/1.1 200 OK
Date: Mon, 05 Jan 2010 00:33:10 GMT
Server: Apache/1.3.1 (Unix)
Last-Modified: Tues, 20 Dec 2009 21:00;32 GMT
Content-Length: 60
Content-Type: text/html
     Welcome to the Website of …..

A) Response from a browser
B) Response from a server
C) Request from a browser
D) none of the above

A

B) Response from a server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
Which of the following is not an Apache configuration file. 
A)  httpd.conf 
B)  default-server.conf  
C)  vhost.d  
D)  bashrc
A

D) bashrc

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

Reference http://httpd.apache.org/docs/2.2/mod/core.html for this question.
The ServerRoot directive:
A) Instructs the server where passwords are stored
B) is the directive that identifies where the password file is
C) sets the directory in which the server lives. Typically it will contain the subdirectories conf/ and logs/
D) the directory that is set aside for user information that the server can access when an https request is received.

A

C) sets the directory in which the server lives. Typically it will contain the subdirectories conf/ and logs/

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

Which of the following best describes the DocumentRoot?
A) A standard that is used to define programs that interface with a Web server
B) A directory that stores HTTP content on a Web server
C) A directive that identifies the location of a file where users passwords are stored
D) Apart of the TCP/IP suite that is used for Internet file transfer

A

B) A directory that stores HTTP content on a Web server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
\_\_\_\_\_\_\_\_\_\_ allows you to create an alias to a directory containing scripts for dynamic content generation. 
A)  ScriptAlias  
B)  insserv  
C)  inetd  
D)  DocumentRoot
A

A) ScriptAlias

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
The command \_\_\_\_\_\_\_ would start the web server at boot time. 
A)  rcapache2 start  
B)  rcapache2 start all  
C)  insserv apache2  
D)  apache 10.0.0.0
A

C) insserv apache2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
The default path of the DocumentRoot provided by apache2 is \_\_\_\_\_\_\_\_\_\_\_\_ 
A)  /srv/www/htdocs  
B)  /srv/www/cgi-bin 
C)  /srv/ftp  
D)  /srv/www/cgi-bin
A

A) /srv/www/htdocs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
Which of the following is NOT one of the Apache configuration files? 
A)  httpd.conf  
B)  /mnt/devices/fd0.conf  
C)  /default-server.conf  
D)  vhost.d
A

B) /mnt/devices/fd0.conf

17
Q

In addition to delivering data to the web browser, a web server can perform all of the following task EXCEPT:
A) logging accesss to a file
B) limiting access to specific web pages
C) encrypting the connection between a server and browser
D) build Active Directories on servers in China

A

D) build Active Directories on servers in China

18
Q

Which of the following Directory blocks would require a password to access files in the directory.
A)
Options +Includes

B)
AuthName “Restricted Files”
AuthUserFile /etc/apache2/htpasswd
Require user geeko

C)
Allow, Deny
Allow from Includes

D) None of the above directories require passwords for access.

A

B)
AuthName “Restricted Files”
AuthUserFile /etc/apache2/htpasswd
Require user geeko

19
Q

Response Codes in the 4XX group (such as 404) indicate:
A) Client Error
B) Server Error
C) OK - the document requested was returned successfully
D) Continue -

A

A) Client Error

20
Q
In our apache2 configuration files the \_\_\_\_\_\_\_\_ directive is set to public_html. Thus, a URL such as
http://10.0.0.1/~joe/hobbies.html
would return the hobbies.html file which is in the /home/joe/public_html/ directory. 
What is the directive? 
A)  UserAdd
B)  DocumentRoot
C)  ScriptAlias /cgi-bin/
D)  UserDir
A

D) UserDir

21
Q

The DirectoryIndex directive sets the list of resources to look for, when the client doesn’t specify the file in the URL. If set to:
DirectoryIndex index.html
a request for http://myserver/docs would return _______.
A) http://myserver/docs/index.html
B) http://myserver//docs/home/~dexter
C) http://myserver/docs/no_file_found.html
D)http://myserver/docs/code100/do_continue.html

A

A) http://myserver/docs/index.html

22
Q

What is the following image of? What is the path to this file?
A) The image is of a configuration file in the /etc/apache2 directory.
B) The file is the access_log file and it is located in /var/log/apache2 directory.
C) The file is the log_up.txt file in the /home/geekos directory.
D) None of the true.

A

B) The file is the access_log file and it is located in /var/log/apache2 directory.

23
Q
The samba configuration file consist of the general server configuration file and sections for the the share[s] of your file server. The general server configuration starts with the keyword \_\_\_\_\_\_\_\_\_. 
A)  [global]  
B)  [server]  
C)  [sambad]  
D)  none of the above
A

A) [global]

24
Q
Options in the samba configuration file (smb.conf) are grouped into different sections. Each section starts with a keyword in \_\_\_\_\_\_\_\_\_\_. 
A)  parenthesis  
B)  square brackets  
C)  quotation marks  
D)  question marks
A

B) square brackets

25
Q
Which of the following is not an entry in the global section of the smb.conf file? 
A)  path  
B)  workgroup  
C)  netbios name  
D)  security
A

A) path

26
Q

The Samba configuration file would have path option appear in the ___________
A) share section
B) global section
C) test section
D) the path section does not have to be set anywhere

A

A) share section

27
Q
After creating a smb.conf file you can test the syntax of the configuration file by entering the command \_\_\_\_\_\_\_\_. 
A)  testparm  
B)  chkconfig  
C)  smbpasswd 
D)  rcnmb start
A

A) testparm

28
Q
By default, the the Windows-compatible encrypted password is stored in \_\_\_\_\_\_\_\_\_\_\_. 
A)  /etc/passwd  
B)  /etc/samba/smbpasswd  
C)  /home/sambausers  
D)  /var/www/smbpasswd
A

B) /etc/samba/smbpasswd

29
Q
Which of the following commands would be used to display the shares on a samba server with the IP address 10.0.0.99?
A)  smbclinet -L ///10.0.0.99
B)  showshares 99
C)  testparm 10.0.0.99
D) telnet 10.0.0.99
A

A) smbclinet -L ///10.0.0.99

30
Q
The \_\_\_\_ character indicates comments in the apache2 configuration files. All lines starting with this character are ignored by the apache server.
A)  ?>
B)  !
C)  #
D)  +
A

C) #

31
Q
The following directive:
AddHandler cgi-script  cgi pl exe
instructs the server to execute any file with the extension .cgi, .pl, or .exe as a cgi-script
A) True 
B) False
A

A) True

32
Q
The path to the smb.conf file is:
A) /etc/samba/smb.conf
B) /srv/samba/smb.conf-dir
C) /home/samba/smb
D) /mnt/samba/smb.conf
A

A) /etc/samba/smb.conf

33
Q
By default, the the Windows-compatible encrypted password is stored in \_\_\_\_\_\_\_\_\_\_\_. 	 
A) /etc/passwd 
B) /etc/samba/smbpasswd 	 
C) /home/sambausers	 
D) /var/www/smbpasswd
A

B) /etc/samba/smbpasswd