[ Legal Information ]

Samba 1.0

Suite Description

The Samba test suite tests Samba configuration and connectivity.

Execution Frequency

This suite should be used on at least one system in at least one beta during the beta cycle. This suite is a good precursor for the Upgrade suite, which would be executed on the same system during the next beta.

Execution Dependencies

This suite has the following dependencies:

Suite Overview

This suite contains the following cases:

No.   Case Name   Blocking
Case
  Estimated
Execution
  Abandon
After
1   Samba configuration   yes   15 min   45 min
2   Samba server   no   30 min   60 min
3   Samba client   no   60 min   45 min

Note: Samba printing is tested in the Printers Test Suite.

Execution Notes

Unless otherwise indicated, a path indicator in a command refers to the result of the command that precedes it. Generally, this will be a locate command followed by a cd command. Use the path given by the preceding command in the new command.

Revision History

Version   Effective Date   Author/Editor   Summary of Changes
1.0   2002-02-01   Megan Bock   Extracted from Install 1.0



Samba Configuration

The Samba package may have been included with the installation. If not, you will need to install it from the RPM on the disc. Once installed, you must configure Samba for use.

Environment Prerequisites

Preferred architecture: any i386
System installed? yes
Network configured? yes
Interface: uer preference
Logged in as: root

Steps

1
Purpose Determine if Samba is installed.
Commands rpm -q samba
Expected Results You will see either a package not installed message or "samba-version"
Comments and Tips If Samba is not installed, install the package.
 
2
Purpose Find the Samba configuration file.
Commands 1) locate smb.conf
2) cd path
Expected Results path of file
Comments and Tips The file is usually found in /etc/samba. Use updatedb to refresh the locate database if necessary.
 
3
Purpose Edit smb.conf.
Commands 1) vi smb.conf
2) Press i to enter insert mode.
3) Change the workgroup to the one used by the Windows system.
4) Change the server string to Beta Test Samba Server.
5) If necessary, un-comment the encrypted passwords and smbpasswd lines. (See Comments.)
6) Un-comment the entire [tmp] stanza.
7) Esc :wq
Expected Results  
Comments and Tips Encrypted passwords are generally required. Some versions of Windows 95 and Windows NT do not use encrypted passwords.
 
4
Purpose Test the Samba configuration.
Commands 1) locate testparm
2) cd path
3) testparm
Expected Results Executing testparm should return the stanzas processed and the service files loaded.
Comments and Tips  
 
5
Purpose Set up Samba users.
Commands 1) locate smbpasswd
2) cd path
3) smbpasswd -a -U your login name
4) At the prompt, enter your password.
5) Repeat steps 3 and 4 for the root account.
Expected Results Each user creation is confirmed.
Comments and Tips  
 

Results

System Attempts Pass Pass
w/Errors
Fail Comments
 
 
         
 
 
         
 
 
         



Samba Server

You will need a user account on a Windows PC connected to the network. You will be using both systems from time to time. Each command instruction indicates the system to perform it on: [Linux] or [Windows].

Environment Prerequisites

Preferred architecture: any i386
System installed? yes
Network configured? yes
Interface: tester preferences
Logged in as: root

Steps

1
Purpose Start the Samba server.
Commands [Linux]
1) locate smbd
2) cd path
3) ./smbd
4) ./nmbd
Expected Results There is no confirmation that the Samba services have successfully started. You can use ps -ax |grep mbd to verify that they have started.
Comments and Tips  
 
2
Purpose Connect to the Samba server.
Commands [Windows]
1) Select Run from the Start menu.
2) Enter // followed by the IP address of the Samba server and click OK.
3) Enter your username and password if prompted.
Expected Results You should see a standard folder window that contains all shares you set up in the Samba configuration. Normally, this will be /tmp and the user's home directory.
Comments and Tips If your Windows login and password match the Samba user ID and password, you will probably be logged into Samba automatically. If login fails, try commenting the encrypted passwords entry in smb.conf. You will need to stop and restart the Samba services to do this.
 
3
Purpose Test file manipulation.
Commands [Windows]
1) Copy some files into each of the Samba share folders.
2) Rename a file in each folder.
3) Delete a file from each folder.
Expected Results Normal permissions should apply: user cannot delete files owned by root, for example.
Comments and Tips  
 

Results

System Attempts Pass Pass
w/Errors
Fail Comments
 
 
         
 
 
         
 
 
         



Samba Client

You will need a user account on a Windows PC connected to the network. You will be using both systems from time to time. Each command instruction indicates the system to perform it on: [Linux] or [Windows].

Environment Prerequisites

Preferred architecture: any i386
System installed? yes
Network configured? yes
Interface: tester preference
Logged in as: tester

Steps

1
Purpose Set up a folder on the Windows system.
Commands [Windows]
1) Right-click on the desktop and select New > Folder.
2) Name the folder SambaTest.
3) Right-click the SambaTest folder icon and select Sharing.
4) Click Share This Folder and change the Share Name to samba.
5) Copy some files into the SambaTest folder.
6) Create a new folder inside this folder and put some files in it.
Expected Results  
Comments and Tips  
 
2
Purpose Check the resources available to Linux.
Commands [Linux]
smbclient -L hostname -U username -I IP address
Expected Results You should see a listing of available shares, including "samba" -- the share name you set on the Windows system.
Comments and Tips You may not need to specify the IP address. If you don't know the address, type ipconfig or winipcfg at a command prompt on the Windows system. The username must be a valid account on the Windows system.
 
3
Purpose Connect to the Windows share.
Commands [Linux]
1) smbclient //hostname/samba -I IP address -U username
2) At the smb prompt, dir
Expected Results When the connection to the Windows system is made the prompt will change to smb. The dir command should result in a list of files in the samba share on the Windows system.
Comments and Tips  
 
4
Purpose Test file manipulation.
Commands [Linux]
1) del filename
2) dir
3) rename oldname newname
4) dir
5) put /etc/profile \profile.new
6) dir
Expected Results After each file manipulation (delete, rename, put) the dir command should reflect that the command was properly executed.
Comments and Tips Type exit to close the connection.
 

Results

System Attempts Pass Pass
w/Errors
Fail Comments
 
 
         
 
 
         
 
 
         

 


 

Legal Information

The information included in this test instruction document is provided AS IS without warranty of any kind. IBM EXPRESSLY DISCLAIMS ANY WARRANTIES, EXPRESS OR IMPLIED, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IBM does not warrant any results or performance measurements obtained. Any information concerning IBM products was written for IBM products offered in the U.S.A. IBM may not offer the products, services or features discussed in this document in other countries, and the information is subject to change without notice. The information in this document relating to Linux is provided as a convenience to Linux users, and IBM makes no warranty or representation, express or implied, with respect to the accuracy and completeness of the information, and assumes no responsibility for any errors, which may appear in the document. Any performance or test data contained herein was determined in a controlled test environment. Therefore, the results obtained in other operating environments may vary. No license, express or implied, to any intellectual property is granted by this document. IBM may make improvements and/or changes in product(s) and/or programs described in this publication at any time without notice.

Linux is a trademark of Linus Torvalds.

[ top ]

1