Ottawa PC Users' Group (OPCUG)
 
   Home
   Q&A
   Windows
   Linux
   Free Software
   Freeware Guide

 

   Copyright and Usage

   Privacy Policy

   Contact Us

 

Questions and Answers Linux

 

SAMBA Sharing files with Linux

by Don Chiasson

Introduction

Most home networked computers are set up to share files and printers. In Windows, this happens automagically when you click a box to say "Share files" (usually for read only). With Linux, a program called Samba does this. The name Samba comes from the protocol Windows uses, Server Message Blocks.

Configuring Samba

With Windows, the information on what happens is hidden in the registry. Samba uses a configuration file that you can edit, smb.conf and a minimal one might look like this,.

[global]
workgroup = HOME
netbios name = MYCOMPUTER
[share1]
path /tmp
[share2]
path = /my_shared_folder
comment = Some random files

Where is the smb.conf file?

It depends on the distribution.... It might be in /usr/local/lib. Or etc/samba. Or elsewhere.

Now that you are rolling your eyes, I must confess: there are lots of GUI options. I am running Suse, and you access it through YAST (Yet Another Set-up Tool), their standard tool, YAST Control Center -> Network Services -> Samba Server.

Fedora goes through the menu option, System -> Administration -> Server Settings -> Samba.

The Samba site points to a GUI page. Using these tools modifies the configuration file.

Resources:

Samba home page: http://www.samba.org
Which redirects you to: http://ca.samba.org/samba
How Samba was written: http://samba.org/flp/tridge/misc/french_cafe.txt
History of Samba: http://en.wikipedia.org/wiki/Samba_%28software%29
Setting up Samba: http://www.linux-watch.com/news/NS9015653445.html

 

 

 

Donald James Chiasson 1941-2010

Don Chiasson

OPCUG members will remember Don as an enthusiastic supporter of free software - especially in the "free speech" sense - although Don was also fond of telling us that it was also free as in "free beer"! Don was instrumental in forming the Linux, Free and Open-Source Software Special Interest Group, and several of his presentations to the SIG are posted on the web site.

Ottawa PC News; Volume 27, Number 9; pp. 5; November, 2010