Coatzacoalcos, Mexico to

PRINCIPAL

Home
Blog
Photo Gallery
Joke (Spanish: chistes)
Curriculum
Contacts me

GNU / LINUX

Linux.org
The gnu project
Slackware
Slackware forum
Debian
Debianitas punto net
Ubuntu Linux

ARTICLES

The Vi editor

Graphics with Turbo C++

The ftp manual

Installing the Apache Server

How to convert with Latex to PDF file

Configuring Samba.

A basic program in gtk+

OTHER ARTICLES

Introduction to Network security

How to Print Screen with yast.

The DNS Howto's

CONFERENCES

Free software in the Government
See material

Introduction to Linux.
See material

Database Security in MySQL.
See material

Stocastics Model for inundations.
See material







Configuring Samba.


Samba's configuration is stored in the smb.conf file, which usually resides in /etc/samba/smb.conf or /usr/local/samba/lib/smb.conf. You can either edit this file yourself or do it using one of the many graphical tools that are available, such as the Web-based interface SWAT, that is included with Samba.

The smb.conf file uses the same syntax, each file consists of various sections, which are started by putting the section name between brackets ([]) on a new line. Each contains zero or more key/value-pairs separated by an equality sign (=). The file is just a plain-text file, so you can open and edit it with your favorite editing tool.

Each section in the smb.conf file represents a share on the Samba server. The section “global” is special, since it contains settings that apply to the whole Samba server and not to one share in particular. For example:

Example 1.1. A minimal smb.conf
[global]
workgroup = WKG
netbios name = MYNAME
[share1]
path = /tmp
[share2]
path = /my_shared_folder
comment = Some random files

Samba essentially consists of two or three daemons. A daemon is a UNIX application that runs in the background and provides services. An example of a service is the Apache Web server for which the daemon is called httpd. In the case of Samba there are three daemons, two of which are needed as a minimum.

The Samba server is made up of the following daemons:

nmbd.- This daemon handles all name registration and resolution requests. It is the primary vehicle involved in network browsing. It handles all UDP based protocols. The nmbd daemon should be the first command started as part of the Samba start-up process.

smbd.- This daemon handles all TCP/IP based connection services for file and print based operations. It also manages local authentication. It should be started immediately following the start-up of nmbd.

The simplest useful configuration file would contain something like shown in the next example.

Example 1.2. Another simple smb.conf File
[global]
workgroup = WORKGROUP
[homes]
guest ok = no
read only = no

This will allow connections by anyone with an account on the server, using either their login name or homes as the service name.

For more information about Samba clic here.


2005 - Farid A. Bielma Lopez

Home | Unix Mexico | El Demonio | OpenBSD | Ubuntu Guide
Internet.com | Barrapunto | Diario Linux | Unam - Cert | Securityfocus
Send me a mail.