воскресенье, 5 апреля 2009 г.

Samba конфиг

Хорошая статья по Samba http://linuxforum.ru/viewtopic.php?id=3062

[global]
netbios name = neon
#netbios aliases = parazit
interfaces = 192.168.10.22/255.255.252.0
display charset = UTF8
#printing = lprng
domain master = false
load printers = no
preferred master = true
max connections = 5
max open files = 1000
max smbd processes = 10
# root preexec = /check_smbclient_shares.sh
unix charset = UTF8
security = SHARE
local master = no
min passwd length = 0
null passwords = yes
log file = /var/log/samba/%m.log
dead time = 1
server string = TTLx7
max log size = 5000
hosts allow = 192.168.10., 192.168.8.
dos charset = cp866
#cp866
os level = 35
template homedir = /home/%D/
dns proxy = no
workgroup = AVT_DOMAIN
encrypt passwords = yes
socket options = IPTOS_LOWDELAY TCP_NODELAY
debug level=1
level2 oplocks = true
read raw = no
hosts deny = all,192.168.8.185


[films1]

path = /home/films
public = yes
guest only = yes
read only = yes
max connections=1

[corp_ny]

path = /mnt/fat/corporate_new_year
public = yes
guest only = yes
read only = yes

[music]
path=/mnt/reiserfs/music
public=yes
guest only=yes
read only=yes
max connections=1

[films2]

path=/mnt/fat/films
public=yes
guest only=yes
read only=yes
max connections=1

[xpert2b]

path = /mnt/xfs2/films/xpert
public = yes
guest only = yes
read only = yes

[films3]

path = /mnt/xfs/_mp4
public = yes
guest only = yes
read only = yes
max connections = 1

[distribs]
path = /mnt/fat/distribs
public = yes
guest only = yes
read only = yes
max connections=1

[install]
path = /mnt/ext3/linux_install
public = yes
guest only = yes
read only = yes
max connections = 1

[mu$]
path = /mnt/reiserfs/music/_full
public = yes
guest only = yes
max connections = 1
read only = no
hosts deny=all
hosts allow=192.168.10.106
max open files=1

#[asp10-repo]
#path=/mnt/reiserfs/asp
#public=yes
#guest only=yes
#max connections=1
#read only=yes
#allow hosts=192.168.10.106

[1$]
path=/home/pager
public=yes
guest only=yes
read only=no
hosts deny=all
allow hosts=192.168.8.230,192.168.10.106

[films4]
path=/mnt/xfs2/films
public=yes
guest only=yes
read only=yes
#allow hosts=192.168.8.230,192.168.10.106

[home$]
path=/
public=yes
read only=yes
guest only=yes
#writeble=yes
hosts deny=all
allow hosts=192.168.10.106

Комментариев нет: