Home
Page

Revised
March 07, 2015

HOWTO Setup
Small / Home Network
3 - Server Configuration

<< 2 - Communications <<

Index Page

>> 4 - Setup >>

3.1 - SAMBA

The Samba is a server that runs on Linux / UNIX and lets you communicate with Microsoft machines as a print and file server.   The alternative, using Microsoft products can be very expensive.

Currently I am using version 3.02.   But if you are using version 2.04+, you should not see any difference.

Important:  A very good reference book is Using Samba, by JayTs, Robert Eckstein, & David Collier-Brown, published by O'Reilly.   If you are going any above a basic setup, this book come very highly recomended and well worth the money invested.

3.2 - SAMBA CONFIGURATION ON WEBMIN

The Samba is a server that runs on Linux / UNIX and lets you communicate with Microsoft machines.

Open Webmin in your browser, https://localhost.localdomain:10000. Note the "https".   [Server] > [Samba Windows File Sharing]

This defines the original and static Samba configuration.

3.2.1 - UNIX Networking

These are directories and printers that you will share on this machine.

Idle time before disconnect = Never

Trusted hosts/users file = None.    (Original Samba = never)

Network interfaces= Automatic.

Keepalive packets = Don't send any.

Maximum packet size = Default.

Listen on address = All.

Socket options(listed are checked) = TCP_NODELAY,   SO_SNDBUF = 8192,   SO_RCVBUF = 8192

3.2.2 - Windows Networking

These are directories and printers that you will share on this machine.

Workgroup = Work_Group_Name (Create your own Workgroup Name, or use the Microsoft default one of "MSHOME".   Use upper case letters).

WINS mode = Neither.

Server description = Samba Server %v.  (or whatever you want)

Server name = I suggest one that is short, I just use "server" or "samba".

Default service = none.

Always show services = Should list all services from Share Names, plus global.

Max reported disk size = Unlimited.

Master browser priority = 65.

Highest protocol= Default.

Master browser? = Yes.

Security = User level.

Remote announce to = nowhere.

3.2.3 - Authentication

Use encrypted passwords? = Yes.

Allow null passwords? = No.

Password program = Default.

Change UNIX Password as Well? = No   (Note, old version was Password case difference = 6).

Change password chat = Default.

Username mapping. = Listed Below or none.

3.2.4 - Windows to Unix Printing

Unix print style = CUPS.

Show all printers? = Yes.

Printcap file = cups.

Printer status cache time = Default

3.2.5 - MISCELLANEOUS OPTIONS:

Debug Level = 1.

Cache getwd () calls? = No.

Lock Directory = default.

Log File = /var/log/samba/log.%m

Max Log Size = 50KB.

Allow Raw Reads = Yes.

Allow Raw Writes = Yes.

Overlapping Read Size = Default.

chroot () Directory = None.

Path to smbrun = default.

Client time Offset = 0

Read Prediction? = No

3.2.6 - File Share Defaults

This gives users on Microsoft machines access to a directory on this machine. These are the default settings for files setup to share at the top of the screen.

Available? = Yes.

Browseable? = Yes.

3.2.6.1 - Security & Access Control

Writable = Yes.

Guest Access = None.

Guest UNIX User = nobody.

Limit to Possible List = No.

Host to Allow = Only Allow = 192.168.1.0.

Hosts to deny = None.

Revalidate users? = No.

Invalid users = root bin daemon adm admin sync shutdown \ halt mail news uucp operator.

3.2.6.2 - File Permissions

New UNIX file mode = 755.

New UNIX Directory mode = 755.

Allow Symlinks outside share = No.

Can delete Read Only Files = Yes.

Force UNIX File Mode = 000.

Force UNIX Directory Mode = 000

3.2.6.3 - File Naming

Mangle Case? = No.

Case Sensitive? = No.

Default Case? = Lower.

Preserve Case? = Yes

Short Preserve Case? = Yes.

Hide dot files? = Yes.

Save DOS archive flag? = Yes.

Save DOS hidden flag? = No.

Save DOS system flag? = No.

3.2.6.4 - Miscellaneous Options:

Do file locking? = Yes.

Max connections = Unlimited.

Enable oplocks = Yes.

Read Only oplocks = No.

Fake oplocks? = No.

Use share modes? = Yes.

Strict locking? = No.

Sync after writes? = No.

Volume name = Same as share.

3.2.7 - Printer Share Defaults

This gives users access to the printer on other machines.

Available?= Yes.

Browseable? = Yes.

3.2.7.1 - Security & Access Control

Will be duplicate from File Share defaults at 3.2.6.1 above

3.2.7.2 - Printer Options

Minimum free space = 0.

Force postscript printing = No.

Print command = Default.

Display queue command = Default.

Delete job command = Default.

Pause job command = None.

Unresume job command = None.

Printer Driver = None

3.3 - /etc/smb.conf

This is what the configuration file should look like.

[global]

create mode = 655

debug level = 0

delete readonly = yes

directory mode = 655

dns proxy = no

encrypt passwords = yes

host allow = 192.168.1.0

load printers = yes

log file = /var/log/samba/log.%m

map to guest = bad user

max log size = 50

null passwords = yes

netbios name = server

os level = 20

printcap name = cups

printer admin = @adm

printing = cups

smb passwd file = /etc/samba/smbpasswd

socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192

security = user

server string = Samba

wide links = no

workgroup = WORKGROUPNAME

writeable = yes

3.4 - NFS Server

In construction

<< 2 - Communications <<

Index Page

>> 4 - Setup >>


If you have any comments, problems, questions or suggestions, please send me an e-mail at

Updated;   This page was last updated on Mar 07 , 2015 .

Any Browser        Gates Free        Valid XHTML 1.0! Valid CSS!

Linux Logo