<< 2 - Communications <<
>> 4 - Setup >>
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.
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.
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
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.
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.
Unix print style = CUPS.
Show all printers? = Yes.
Printcap file = cups.
Printer status cache time = Default
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
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.
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.
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
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.
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.
This gives users access to the printer on other machines.
Available?= Yes.
Browseable? = Yes.
Will be duplicate from File Share defaults at 3.2.6.1 above
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
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
In construction
<< 2 - Communications <<
>> 4 - Setup >>