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.

Changes between Version 1 and Version 2 of administration/samba


Ignore:
Timestamp:
Apr 16, 2009, 10:52:38 PM (13 years ago)
Author:
hank
Comment:

work on samba conf

Legend:

Unmodified
Added
Removed
Modified
  • administration/samba

    v1 v2  
    1111smbd -V
    1212}}}
    13 Will return the samba version. 
     13Will return the samba version.
     14
     15Add a new samba user:
     16{{{
     17sudo smbpasswd -a username
     18}}}
     19
     20Edit smb.conf:
     21{{{
     22[global]
     23workgroup = SilverFile
     24server string = SilverFile Document Server
     25security = user
     26encrypt passwords = true
     27map to guest = bad user
     28guest account = nobody
     29
     30# Handles case sensitivity windows usernames
     31username level = 8
     32
     33#disallow client access to accounts that have full passwords
     34null passwords = no
     35
     36#max log size in kilobytes
     37max log size = 10
     38
     39# TCP_NODELAY is default.  SO_SNDBUF and SO_RCVBUF are increased from 8KB to 32KB
     40socket options = TCP_NODELAY SO_KEEPALIVE SO_SNDBUF=32768 SO_RCVBUF=32768
     41
     42# Browse elections - default = 20
     43os level = 32
     44
     45# Master browser for a work group - default = auto
     46preferred master = Yes
     47
     48# Default = yes
     49dns proxy = No
     50
     51directory mask = 0770
     52create mask = 0660
     53
     54# Files which aren't visible or accessible - separated by /
     55veto files = /.AppleDB/.AppleDouble/.AppleDesktop/:2eDS_Store/Network Trash Folder/Temporary Items/TheVolumeSettingsFolder/.@__thumb/.@__desc/
     56
     57# Allows samba to delete directory with veto files in it
     58delete veto files = yes
     59
     60config file = /etc/config/smb.conf
     61smb passwd file=/etc/config/smbpasswd   
     62username map = /etc/config/smbusers
     63
     64dos charset = ASCII
     65template shell = /bin/sh
     66
     67# use sendfile =
     68use sendfile = yes
     69
     70# default wins =
     71wins support = no
     72
     73map read only = yes
     74map archive = yes
     75map system = no
     76map hidden = no
     77
     78# Not sure if we need these in the conf
     79# Default = 0
     80# force directory security mode = 0000
     81# default = yes
     82# oplocks = yes
     83
     84# locking = yes
     85
     86# Printer Functions
     87# disable spoolss = yes
     88# load printers = no
     89
     90
     91[FILES]
     92path = /FILES
     93comment = Main File Share
     94browsable = yes
     95writeable = yes
     96invalid users = guest
     97valid users = root,matt
     98guest ok = no
     99force group = fileusers
     100inherit permissions = yes
     101vfs object = recycle
     102config-file = /etc/samba/recycle.conf
     103recycle:repository = Recycle Bin
     104recycle:keeptree = Yes
     105recycle:versions = Yes
     106}}}