Configuration of a Simple Samba File Server, Quota and Schedule Backup

 

 

 

By

Dr. Hidaia Mahmood Alassouli

 

 

Hidaia_alassouli@hotmail.com

 

 

 

1. Overview:

 

This work is a step-by-step “how to” guide for configuring Samba file server, Quota and

scheduled backup of important files. The paper provides an installation guide for,

1. Samba server.

2. Quota.

3. Scheduled backup of important files.

 

 

 


2. Installing Samba Server:

You need to install most of the samba packages: samba, samba-common and samba-swat rpms, using the following commands,

 

# rpm –ivh samba-*.rpm.

# rpm –ivh samba-common-*.rpm.

# rpm –ivh samba-swat-*.rpm.

 


3 General Guideline for Configuring Samba:

 

Samba uses /etc/samba/smb.conf as its configuration file. If you change this configuration file, the changes do not take effect until you restart the Samba daemon with the command service smb restart.

 

To specify the Windows workgroup and a brief description of the Samba server, edit the following lines in your smb.conf file:

workgroup = WORKGROUPNAME

server string = BRIEF COMMENT ABOUT SERVER

 

To create a Samba share directory on your Linux system, add the following section to your smb.conf file (after modifying it to reflect your needs and your system):

[sharename]

comment = Insert a comment here

path = /home/share/

valid users = tfox carole

public = no

writable = yes

printable = no

create mask = 0765

 

The above example allows the users tfox and carole to read and write to the directory /home/share, on the Samba server, from a Samba client.