Installation and Configuration of Samba in "Share" Mode
Introduction
Samba is an open source software licensed under the GPL that supports the SMB/CIFS protocol. This protocol is used by Microsoft for sharing various resources (files, printers, etc.) between computers running Windows. Samba allows Unix systems to access resources from these systems and vice versa.
Previously, PCs equipped with DOS and early versions of Windows sometimes had to install a TCP/IP stack and a set of Unix-originated software: NFS client, FTP, telnet, lpr, etc. This was heavy and penalizing for PCs of that time, and it also forced users to adopt a double set of habits, adding those of UNIX to those of Windows. Samba takes the opposite approach.
Its name comes from the file and print sharing protocol from IBM reused by Microsoft called SMB (Server message block), to which the two vowels “a” were added: “SaMBa”.
Samba was originally developed by Andrew Tridgell in 1991, and today receives contributions from about twenty developers from around the world under his coordination. He gave it this name by choosing a name close to SMB by querying a Unix dictionary with the command grep: grep "^s.*m.*b" /usr/dict/words
When both file sharing systems (NFS, Samba) are installed for comparison, Samba proves less efficient than NFS in terms of transfer rates.
Nevertheless, a study has shown that Samba 3 was up to 2.5 times faster than the SMB implementation of Windows Server 2003. See the information on LinuxFr.
However, Samba is not compatible with IPv6.
The “Share” mode allows simple folder sharing. No login or password needed, everyone has access to everything, which is not a secure solution, but it’s a simple one.
Installation
To install Samba:
|
|
Configuration
Before you start, define a directory that you want to share (example: /home/share
):
|
|
We give it full permissions.
To configure Samba, edit the file /etc/samba/smb.conf
:
|
|
Some explanations:
- First configure the data in Global
- Set the OS level < 20 unless it acts as a domain controller, then > 50
Adapt all this to your configuration. Then restart Samba:
|
|
Connection
Windows
To connect from Windows, in a link window, type this:
\\IP_of_samba_server\Share_name
You will access the share directly.
Unix (Linux/Mac…)
You must have smbfs installed before continuing:
|
|
Then, just create a folder and mount the share inside:
|
|
Resources
Last updated 27 Aug 2007, 15:11 CEST.