Samba


 

 

 

 

 

Introduction

Samba allows Windows based pc`s to see into the file structure of the Linux server.

 

Configuring Samba

Compared to configuring DNS, setting up Samba is quite straight forward.

The main configuration file for Samba is called "smb.conf", and in Caldera Linux 1.3, it is located in /etc/samba.d/

It actually starts life as "smb.conf.sample", and this file can be modified as required, then saved as "smb.conf".

The settings shown below are similar to the initial values provided as a default on Caldera Linux 1.3, with all the comments removed. This is a fairly simple set of values, as on this network, there are no printers, and security is not an issue. So it is allowable to share the whole directory structure from "/" downwards. It is very unlikely that this would be the case for a normal network.

 


#================== Global Settings =====================

[global]

   workgroup = e-nor_group

   server string = Caldera Samba Server

   guest account = pcguest

   security = share

   username map = /etc/samba.d/smbusers

   socket options = TCP_NODELAY 

   interfaces = 192.192.192.196/255.255.255.240 

   dns proxy = no 

 

#====================== Share Definitions ===============

[homes]
   comment = Home Directories
   path = %H/
   writable = yes
   create mask = 0750

[share]
    comment = Linux-1 server
    path = /
    public = yes
    writable = yes

[web]
    comment = web folder
    path = /web
    public = yes
    writable = yes


  

Note that later versions of Windows NT by default encrypt passwords. It may be neccessary to modify the NT registry to allow unencrypted passwords.

As an alternative, it is possible to set up Samba to require encrypted passwords.

 


© 2002 Ron Turner


Return to the Linux index page