#--lavr, fucking samba :-E # # settings & cases: # ----------------- # - this config only for non-password share resources # # for this purpoces must be: # # guest account = nobody # null passwords = true # security = share # ^^^^^^^^^^^^^^^^^^^^^^- all of this for non-passwd public-mount # when we do smbpasswd -n nobody - zaebalo, gde rabotaet, gde net!!! :-E # # W9x - stronly comment or don't use "case sensitive = yes" # # if we are use IPFW with tcp/udp 137/138/139 filtering and we have # more than one ip, needs to add interfaces & bind, otherwise # nmbd didn't find it and didn't resolve netbios-names # # for example, my PC=unix1=xnc=mp3 with different ip, that is why # we must descript interface for Samba and bind to one of ip. # # [resource name] - name for share, example: # # smbclient \\hostname\resource_name # smbclient \\unix1\moviez # [global] ; debug level = 3 ;--lavr workgroup = WORKGROUP NAME/server string = what we see at NMBD workgroup = Lavr server string = Lavr comment = unix1 ;--lavr hosts allow - format such as man 5 hosts_access hosts allow = 159.93.17.17, 159.93.17.177, 159.93.17.100 ;--lavr interfaces = interface_name [ip] [ip/mask] ... ; bind interfaces only = [True|False] interfaces = fxp0 159.93.17.121 159.93.17.121/255.255.255.0 bind interfaces only = True ;--lavr for printer type/mode/resources printing = bsd printcap name = /etc/printcap load printers = no load printers = no printable = no ;--lavr below all of needs for w/o password share resource ; for null password do next: ; smbpasswd -n nobody , don't forget to delete all other real-user from ; smbpasswd guest account = nobody encrypt passwords = yes null passwords = true ;--lavr security, needs for me to non-password search and mount share-resources ; smbclient -L hostname[ip] ; smbclient //hostname/resources -U nobody security = share ;--lavr ; smb passwd file = /usr/local/private/smbpasswd ;--lavr This next option sets a separate log file for each client. Remove ; it if you want a combined log file. ; log file = /var/log/log.%m ; log file = /var/log/samba.log log file = /var/log/log.%m max log size = 50 ;--lavr sound as good perfomance socket options = TCP_NODELAY ; You will need a world readable lock directory and "share modes=yes" ; if you want to support the file sharing modes for multiple users ; of the same files ; lock directory = /usr/local/samba/var/locks ;--lavr STRONGLY don't use "case sensitive = yes", otherwise ; Win9x will see only ALL in your root-share and can't to cd into subdirs ; ; case sensitive = yes -> strongly recommended for Win9x ; default case = lower ; share modes = yes mangle case = yes preserve case = yes short preserve case = yes ;--lavr we havn't to be as Wins or Domain Master, don't remember local master = no ;--lavr if your local-net has WINS-Server ; wins server = 194.87.162.121 ; public == guest only == guest ok - non-passwd resources ; available/browseable/browse... - for see it via NMDB [moviez] comment = moviez path = /pub/ftp browseable = yes browse list = yes available = yes public = yes writeable = no load printers = no printable = no