[root@samba /home/alex]# uname -a
FreeBSD samba 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Wed Aug 26 07:47:36 EEST 2009 alex@samba: /usr/src/sys/i386/compile/samba i386 |
[root@samba /home/akovtun]# pkg_info | grep samba
samba-3.3.3 A free SMB and CIFS client and server for UNIX |
[root@samba /home/akovtun]#sysctl -a |grep kern.maxfiles|more
kern.maxfiles: 65535 kern.maxfilesperproc: 16384 |
[root@samba /home/alex]# cat /usr/local/etc/smb.conf
[global] case sensitive = no default case = lower preserve case = yes disable spoolss = Yes show add printer wizard = No client code page = 866 character set = KOI8-R workgroup = WORKGROUP netbios name = samba server string = Samba Server %v security = SHARE unix password sync = Yes log file = /var/log/samba/log.%m max log size = 50 name resolve order = wins lmhosts host bcast time server = Yes max open files = 30000 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 load printers = No dns proxy = No wins support = Yes kernel oplocks = No admin users = admin read list = @users write list = @users create mask = 0777 directory mask = 0777 nt acl support = No unix charset = UTF-8 dos charset = UTF-8 display charset = UTF-8 [documents] path = /usr/samba/documents read only = No create mask = 0744 directory mask = 0755 guest ok = Yes veto files = /*.avi/*.mp3/*.mpg/*.wav/*.mpg4/*.inf/*.vmx/*.iso/*.nrg/ hosts allow = 192.168.2.0/24, 192.168.1.0/24 vfs objects = recycle full_audit recycle:repository = /usr/samba/tmp recycle:keeptree = yes recycle:versions = yes recycle:excludedir = /usr/samba/tmp recycle:maxsize = 10480576 hosts deny = all [1C] path = /usr/samba/1C read only = No create mask = 0777 force create mode = 0777 directory mask = 0777 force directory mode = 0777 guest ok = Yes map archive = Yes locking = Yes hosts allow = 192.168.2.11, 192.168.2.12, 192.168.2.10, 192.168.2.9, 192.168.2.6, 192.168.2.8, 192.168.1.3 hosts deny = all [RECYCLER] path = /usr/samba/tmp read only = No create mask = 0744 directory mask = 0755 hosts allow = 192.168.1.0/24 hosts deny = all guest ok = Yes |