Questions and Answers Do you have questions?
We have answers!
Users helping users
Q&A Home Windows Linux Free Software Free Software Guide

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