Lab Exercise 8.2: Implementing Samba

 <  Day Day Up  >  

In this lab, you're going to configure Samba on your server. Then you will use a Windows workstation to access a shared folder on your Linux server.

Warning

As with iFolder, you will need a second computer that can communicate through a network medium with your server to complete this exercise.

Again, VMWare can be particularly useful in this exercise. With enough system RAM, you can run a virtual Linux server and a Windows workstation concurrently on the same physical PC hardware. See http://www.vmware.com for more information.

The steps in this exercise are written using Windows XP. You may need to adjust them if you are using a different version of Windows.

This lab also assumes that you completed the labs in Chapter 6. If not, be sure to go back and complete these first.


Complete the following steps:

  1. Ensure you have a functional Windows workstation running Windows 98, 2000 Professional, XP, or Me.

  2. Create a new Samba user by completing the following steps:

    1. Open a web browser and navigate to https :// your_server_IP_address /nps/iManager.html.

    2. Authenticate as admin with a password of novell .

    3. Under the eDirectory Administration role, select Create Object .

    4. In the Available Object Classes field, select User ; then click OK .

    5. Create a user using the following attributes:

      Attribute

      Value

      Username

      AGresko

      First Name

      Aaron

      Last Name

      Gresko

      Context

      IF.CLE

      Password

      novell

      Title

      Lab Manager

      Location

      Idaho Falls, Idaho Office

      Department

      Information Systems

      Telephone

      555-555-1234

      Fax Number

      555-555-2345

      Email Address

      agresko@cle.com


    6. Click OK .

    7. When prompted that the operation is complete, click OK .

    8. In the Enter the primary group for this user field, browse to and select IFEmployees.IF.CLE .

    9. Make sure the Also convert this User object to a Samba User object box is selected.

    10. In the Enter the desired Samba password field, enter novell .

    11. Click OK .

    12. When prompted that the LUM user was created, click OK .

  3. Create a home directory for AGresko by completing the following steps:

    1. Open an alternate shell by pressing Ctrl + Alt + F2 .

    2. Authenticate as AGrekso with a password of novell .

    3. Verify that a home directory was created for AGresko in /home .

    4. Enter logout at the shell prompt.

    5. Press Alt+F7 .

  4. Convert the existing users in your tree to Samba users by completing the following steps:

    Warning

    This step assumes you deselected the option to make these users Samba users in the Chapter 6 lab exercises.

    1. In iManager, scroll down to the Linux User Management role and select Convert LUM User to Samba User .

    2. In the Select User field, browse to and select CGrayson.IF.CLE .

    3. Click OK .

    4. When prompted, enter a password of novell in the Enter the desired Samba password field.

    5. Click OK .

    6. When prompted that the process was successful, select Repeat Task .

    7. Convert the remaining user objects in IF.CLE to Samba users using the preceding process.

    8. Convert the user objects in SLC.CLE to Samba users using the preceding process.

  5. Create a home directory for all users in your tree by completing the following steps:

    1. Open a terminal session and check the subdirectories of the /home directory on your server.

    2. Make a list of users in your tree who don't have a home directory.

    3. Open an alternate shell by pressing Ctrl + Alt + F2 .

    4. Authenticate the first user in your list who doesn't have a home directory.

    5. Verify that a home directory was created in /home .

    6. Enter logout at the shell prompt.

    7. Repeat this process for each user in your tree who doesn't have a home directory.

    8. When you're done, press Alt+F7 .

  6. Configure your Samba server by completing the following steps:

    1. From a shell prompt, enter vi /etc/opt/novell/samba/smb.conf .

    2. Scroll down to the workgroup line.

    3. Press Ins .

    4. Change the value of the workgroup directive to CLEWorkgroup , as shown in Figure 8.41.

      Figure 8.41. Changing the workgroup name.

      graphics/08fig41.jpg


    5. Scroll down to the server string line.

    6. Change the value of the server string directive to CLE1 .

    7. Scroll down to the [tmp] share within the Share Definitions section of the smb.conf file.

    8. Enable the [tmp] share by uncommenting the comment , path , read only , and public lines. When you're done, this share should appear as shown in Figure 8.42.

      Figure 8.42. Enabling the [tmp] share.

      graphics/08fig42.jpg


    9. Press Esc .

    10. Enter :exit .

    11. At the shell prompt, enter /etc/init.d/novell-smb stop ; then enter /etc/init.d/novell-smb start .

  7. Test the configuration by mapping a drive to AGresko's home directory share. Complete the following steps:

    1. On your Windows workstation, select Start , My Computer .

    2. Select Tools , Map Network Drive .

    3. Set the Drive drop-down list to Z: .

    4. In the Folder field, enter \\ your_server_IP_address \AGresko .

    5. Select Connect Using a Different User Name .

    6. In the User Name field, enter AGresko .

    7. In the Password field, enter novell .

    8. Click OK .

    9. Click Finish . The contents of AGresko's home directory are displayed in drive Z:.

  8. Browse to the [tmp] share by completing the following steps:

    1. On your Windows workstation, select Start , My Network Places .

    2. Select View Workgroup Computers . This should allow you to browse the workgroup your workstation is a member of.

    3. To see all the workgroups on the network, select the Up a Level icon.

    4. Double-click the CLEWorkgroup icon. You should see an icon for your CLE1 server.

    5. Double-click the CLE1 icon. You should see all the shares defined on the CLE1 Samba server.

    6. Double-click the tmp icon. You should see the contents of the /tmp directory on your server.

That's it! You now have a functioning Samba server that can be an inexpensive, yet very powerful addition to your network. As mentioned earlier, we've only scratched the surface of what can be done with Samba. To learn more, visit http://us4.samba.org/samba/docs/. If you're running Windows servers in your organization and are looking to move to Linux, you'll be salivating over the possibilities Samba offers.

Before we end this chapter, we need to discuss one more file-access component in NNLS: NetStorage.

 <  Day Day Up  >  


Novell Certified Linux Engineer (CLE) Study Guide
Novell Certified Linux Engineer (Novell CLE) Study Guide (Novell Press)
ISBN: 0789732033
EAN: 2147483647
Year: 2004
Pages: 128
Authors: Robb H. Tracy

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