wiki:administration/samba
close Warning: Can't synchronize with repository "(default)" (/usr/svn/silverfile does not appear to be a Subversion repository.). Look in the Trac log for more information.

Version 2 (modified by hank, 13 years ago) (diff)

work on samba conf

Samba Set Up and Administration

Installation

On Ubuntu this is easy:

sudo apt-get install samba

Check for samba:

smbd -V

Will return the samba version.

Add a new samba user:

sudo smbpasswd -a username

Edit smb.conf:

[global]
workgroup = SilverFile
server string = SilverFile Document Server
security = user
encrypt passwords = true
map to guest = bad user
guest account = nobody

# Handles case sensitivity windows usernames
username level = 8 

#disallow client access to accounts that have full passwords
null passwords = no

#max log size in kilobytes
max log size = 10

# TCP_NODELAY is default.  SO_SNDBUF and SO_RCVBUF are increased from 8KB to 32KB
socket options = TCP_NODELAY SO_KEEPALIVE SO_SNDBUF=32768 SO_RCVBUF=32768

# Browse elections - default = 20
os level = 32

# Master browser for a work group - default = auto
preferred master = Yes

# Default = yes
dns proxy = No

directory mask = 0770
create mask = 0660

# Files which aren't visible or accessible - separated by /
veto files = /.AppleDB/.AppleDouble/.AppleDesktop/:2eDS_Store/Network Trash Folder/Temporary Items/TheVolumeSettingsFolder/.@__thumb/.@__desc/

# Allows samba to delete directory with veto files in it
delete veto files = yes

config file = /etc/config/smb.conf
smb passwd file=/etc/config/smbpasswd	
username map = /etc/config/smbusers

dos charset = ASCII
template shell = /bin/sh

# use sendfile = 
use sendfile = yes

# default wins = 
wins support = no

map read only = yes
map archive = yes
map system = no
map hidden = no

# Not sure if we need these in the conf
# Default = 0
# force directory security mode = 0000
# default = yes
# oplocks = yes

# locking = yes

# Printer Functions
# disable spoolss = yes
# load printers = no


[FILES]
path = /FILES
comment = Main File Share
browsable = yes
writeable = yes
invalid users = guest
valid users = root,matt
guest ok = no
force group = fileusers
inherit permissions = yes
vfs object = recycle
config-file = /etc/samba/recycle.conf
recycle:repository = Recycle Bin
recycle:keeptree = Yes
recycle:versions = Yes