Samba Basic Hands-On Practice 1

This page is at: http://joelandrebecca.martintribe.org/linuxconf/install/hands_on1.html
                                                                                

Other good references:

Manual pages:
man smb.conf
man samba


Great online help:
Official Samba HOWTO and Rerference Guide
	http://us2.samba.org/samba/docs/man/howto/


Samba-3 by Example
	http://us2.samba.org/samba/docs/man/guide/


Scenario:

A small group of travel agents share a small office. The Travel agents 
bring their own computers into the office. The travel agency named
"Tropics" has huge collection of reference material regarding island
destination vacations that travel agents need to access to but not in
order to change. The files available from the server must remain
read-only.  Anyone should be able to access the plans at any time and
without barriers or difficulty.  The requirements for this server
installation demand simplicity.  It is not necessary to have specific
users on the server. 


Steps
1. Verify that samba is installed. If it isn't installed you will need to 
   install it via the "Add/Remove Applications" application. If samba is 
   installed, the following command will print out the version number of 
   samba installed on the system.

rpm -qa | grep samba

2. Create a directory in the filesystem for the share and set the
   permissions so that owner and can read, write and execute, while
   all other users only have permission to read and execute. Put a
   couple of sample files in the share.

mkdir /island
chmod 755 /island
cp /etc/passwd /etc/group /island

3. Install the simple configuration for the company. Backup the
   current configuration. Download the configuration and move it into
   place.

cd /etc/samba
cp smb.conf smb.conf.orig
wget joelandrebecca.martintribe.org/linuxconf/samba/smb.conf.example1
cp smb.conf.example1 smb.conf

4. Edit your smb.conf to make sure to set your netbios name to
   a unique name so that you won't collide with other students.




Verification

5. Validate the syntax of the configuration file

testparm

6. Restart Samba services (smbd and nmbd) and setup samba so that it
   restarts everytime the machine is booted:

chkconfig smb on
/etc/init.d/smb restart

7. Verify that the shares are visible from the server side

smbclient -L localhost -N
smbclient -L NETBIOS_NAME -N


8. Ensure that all Windows clients are in the same network (same
   netmask i.e. 255.255.255.0), and set workgroup names of all Windows
   clients to the same as specified in the smb.conf configuration
   file. 

9. Reboot, login and wait. SMB / NetBIOS information takes a while to
   propogate.

10. Browse in Network Neighborhood to your computer and share. Verify
   that the "island" share is accessible.

11. Try creating a file or modifying one of the files in the share
   to verify that the share is in fact read only.