Self Test

 < Day Day Up > 



The following questions will help you measure your understanding of the material presented in this chapter. Read all the choices carefully, as there may be more than one correct answer. Choose all correct answers for each question. Don't focus exclusively on these questions. There are no longer any multiple choice questions on the Red Hat exams. These questions test your understanding of the chapter. Getting results, not memorizing trivia, is what counts on the Red Hat exams.

Samba Networking

1. 

A group that prefers Microsoft servers has set up a Windows 2000 server to handle their file and print sharing services. This server correctly refers to a WINS server on 192.168.55.3 for name resolution and configures all user logins through the PDC on 192.168.55.8. If you're configuring the PDC, what options do you have to configure in the local Samba configuration file?

  1. domain master = yes

  2. wins support = yes

  3. password server = 192.168.55.3

  4. security = user

 d . if you re configuring a pdc, you ll want the security = user command in the local /etc/samba/smb.conf file. a is incorrect because being a browse master is not a requirement for a pdc. b is incorrect because the wins server is on a different computer. c is incorrect because the local computer is the pdc, which keeps the password database.

2. 

Which of the following files or commands is not a component of the Samba file-sharing service?

  1. /usr/bin/smbd

  2. /usr/bin/nmbd

  3. /usr/bin/smbclient

  4. /etc/samba/smb.conf

 c . this is a tricky question. smbclient is a client command; it is not part of the service that provides samba file shares. a , b , and d are all components that are either daemons ( smbd and nmbd ) that manage the service or are the server s configuration file (smb.conf).

3. 

You made a couple of quick changes to your Samba configuration file and you need to test it quickly for syntax errors. Which command should you run?

  1. smbmount

  2. smbclient

  3. smbfs

  4. testparm

 d . testparm is the smb.conf configuration file syntax and semantics checker. a is wrong because mount -t smbfs is used by the root user to make remote smb shares available to linux. it wouldn t test your local configuration. b is wrong because smbclient is the linux smb client program for accessing samba services on the network. c is incorrect because smbfs is the filesystem type used when a samba share is mounted through the mount command or via /etc/fstab.

4. 

You are asked to share the HR downloadable documents to Microsoft Windows users who are not that familiar with FTP and want a shared drive connection. Which of the following commands forces the Samba service to reread the configuration file-without having to disconnect your Microsoft users or restarting the service?

  1. testparm

  2. /etc/smb.conf

  3. /etc/rc.d/init.d/smb reload

  4. service smb restart

 c . this is one way to tell samba to reload the configuration file without restarting. this is a little tricky, as i ve been using the service command instead of the /etc/rc.d/init.d directory path. a is incorrect because testparm is just a syntax checker for smb.conf. b is incorrect because smb.conf is just the samba configuration file (albeit in the wrong location; for rhel 3, it should be /etc/samba/smb.conf). finally, d is incorrect because it disconnects users and restarts the service.

5. 

Microsoft Windows users are complaining that they cannot see the shared Human Resources directory of documents, [hrdocs], in their Network Neighborhood diagram. Which of the following options should you delete from the [hrdocs] stanza in smb.conf?

  1. read only = yes

  2. browseable = yes

  3. guest ok = yes

  4. printable = yes

 b . a share must be marked as browseable before it will show up in a microsoft tool such as network neighborhood or my network places. a , c , and d are all incorrect. while you probably should make a share that contains human resource documents read-only, it s not required to make the share browseable. making a share accessible to authorized users is not related to whether guests are allowed to read the share. making the share printable does not affect whether the share is browseable.

6. 

Which of the following files can you configure with mount or smbmnt style commands on a user-by-user basis?

  1. /home/.bashrc

  2. ~/.bash_logout

  3. /etc/fstab

  4. /boot/.bashrc

 b . the .bash_logout file in users home directories (~) is a good place to include umount and smbumount commands. a , c , and d are all incorrect. there is no .bashrc file in the /home directory, at least not for individual users. the /etc/fstab file is a good place to configure mounted directories for all users simultaneously. the default /boot directory does not include a .bashrc file and is an inappropriate location for such.

7. 

Based on the following code, which of the following things do you need to do to limit access to the following [tmp] share in /etc/samba/smb.conf to the local network, with a network IP address of 192.168.99.0?

# This one is useful for people to share files [tmp]    comment = Temporary file space    path = /tmp    read only = no    public = yes
  1. A firewall on any connections to outside networks which blocks at least Samba ports.

  2. Add the following command to the stanza:

local only = yes

Add the following command to the stanza:

hosts allow = 192.168.99.
Make sure the password server command points to the PDC on your network.

 a and c . a firewall can effectively block communication to a samba server from an outside network. and the given hosts allow command limits access to the given network; no additional hosts deny command is required. b and d are both incorrect. there is no local only command in smb.conf. and the location of the pdc does not affect the security of your samba server.

Answers

1. 

þ D. If you're configuring a PDC, you'll want the security = user command in the local /etc/samba/smb.conf file.
ý A is incorrect because being a Browse Master is not a requirement for a PDC. B is incorrect because the WINS server is on a different computer. C is incorrect because the local computer is the PDC, which keeps the password database.

2. 

þ C. This is a tricky question. smbclient is a client command; it is not part of the service that provides Samba file shares.
ý A, B, and D are all components that are either daemons (smbd and nmbd) that manage the service or are the server's configuration file (smb.conf).

3. 

þ D. testparm is the smb.conf configuration file syntax and semantics checker.
ý A is wrong because mount -t smbfs is used by the root user to make remote SMB shares available to Linux. It wouldn't test your local configuration. B is wrong because smbclient is the Linux SMB client program for accessing Samba services on the network. C is incorrect because smbfs is the filesystem type used when a Samba share is mounted through the mount command or via /etc/fstab.

4. 

þ C. This is one way to tell Samba to reload the configuration file without restarting. This is a little tricky, as I've been using the service command instead of the /etc/rc.d/init.d directory path.
ý A is incorrect because testparm is just a syntax checker for smb.conf. B is incorrect because smb.conf is just the Samba configuration file (albeit in the wrong location; for RHEL 3, it should be /etc/samba/smb.conf). Finally, D is incorrect because it disconnects users and restarts the service.

5. 

þ B. A share must be marked as browseable before it will show up in a Microsoft tool such as Network Neighborhood or My Network Places.
ý A, C, and D are all incorrect. While you probably should make a share that contains Human Resource documents read-only, it's not required to make the share browseable. Making a share accessible to authorized users is not related to whether guests are allowed to read the share. Making the share printable does not affect whether the share is browseable.

6. 

þ B. The .bash_logout file in users' home directories (~) is a good place to include umount and smbumount commands.
ý A, C, and D are all incorrect. There is no .bashrc file in the /home directory, at least not for individual users. The /etc/fstab file is a good place to configure mounted directories for all users simultaneously. The default /boot directory does not include a .bashrc file and is an inappropriate location for such.

7. 

þ A and C. A firewall can effectively block communication to a Samba server from an outside network. And the given hosts allow command limits access to the given network; no additional hosts deny command is required.
ý B and D are both incorrect. There is no local only command in smb.conf. And the location of the PDC does not affect the security of your Samba server.

Print Services

8. 

You want to look at your current printer configuration in a GUI desktop interface. What command might you use to start a GUI printer configuration tool?

  1. redhat-printer-config

  2. redhat-config-printer

  3. printconf-gui

  4. lprsetup

 b and c . the redhat-config-printer and printconf-gui commands, when run in the gui desktop, start the red hat printer configuration tool. a is wrong because there is no such command as redhat-printer-config . d is wrong because there is no such file as lprsetup.

9. 

You have a group of printers that you want to configure as a printer class. Which of the following tools can you use?

  1. Direct editing of /etc/cups/classes.conf

  2. Red Hat's Printer Configuration tool

  3. The CUPS Web-based tool

  4. Direct editing of /etc/printcap

 a and d; or c . if you know the language associated with cups configuration files, you can set up a printer class by directly editing the /etc/cups/classes.conf file. you ll need to add the name of the printer class to the /etc/printcap list. alternatively, you can configure a printer class through the cups web-based tool. b is incorrect because, as of this writing, red hat s printer configuration tool does not support the creation of a print class.

10. 

Which of the following commands can you use to remove a print job with a known job number from the print queue?

  1. lpr

  2. lpc

  3. lpq

  4. lprm

 d . the lprm command can be used to remove a print job with a known job number from the print queue. a , b , and c are all incorrect. the lpr command prints a job. the lpc command checks the status of your printers. the lpq command checks the status of the default printer.

Answers

8. 

þ B and C. The redhat-config-printer and printconf-gui commands, when run in the GUI desktop, start the Red Hat Printer Configuration tool.
ý A is wrong because there is no such command as redhat-printer-config. D is wrong because there is no such file as lprsetup.

9. 

þ A and D; or C. If you know the language associated with CUPS configuration files, you can set up a printer class by directly editing the /etc/cups/classes.conf file. You'll need to add the name of the printer class to the /etc/printcap list. Alternatively, you can configure a printer class through the CUPS Web-based tool.
ý B is incorrect because, as of this writing, Red Hat's Printer Configuration Tool does not support the creation of a print class.

10. 

þ D. The lprm command can be used to remove a print job with a known job number from the print queue.
ý A, B, and C are all incorrect. The lpr command prints a job. The lpc command checks the status of your printers. The lpq command checks the status of the default printer.



 < Day Day Up > 



RCHE Red Hat Certified Engineer Linux Study Guide[c] Exam (Rh302)
RCHE Red Hat Certified Engineer Linux Study Guide[c] Exam (Rh302)
ISBN: 71765654
EAN: N/A
Year: 2003
Pages: 194

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net