smb.conf без домена, с DrWeb-ом

Конфигурирование Файл-сервера (Установка, настройка SAMBA)
Ответить
Аватара пользователя
Роман Торопов
Администратор
Сообщения: 141
Зарегистрирован: 24 мар 2008, 10:49
Откуда: г. Пермь
Контактная информация:

smb.conf без домена, с DrWeb-ом

Сообщение Роман Торопов » 25 мар 2008, 11:59

Код: Выделить всё

#======================= Global Settings =====================================
[global]
workgroup = SERVERS
netbios name = ingineer
server string = Files-Server
; message command = /usr/bin/linpopup "%f" "%m" %s; rm %s
log file = /var/log/samba/%m.log
max log size = 4096
log level = 9
map to guest = Bad User
security = share
encrypt passwords = yes
;  unix password sync = Yes
;  pam password change = yes
;  passwd chat = *New*UNIX*password* %n\n *Re*ype*new*UNIX*password* %n\n ;*passwd:*all*authentication*tokens*updated*successfully*
;  username map = /etc/samba/smbusers
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192 
dns proxy = no
restrict anonymous = no
domain master = no
preferred master = no
max protocol = NT
ldap ssl = No
server signing = Auto

client code page = 866
character set = KOI8-R

#============================ Share Definitions ==============================

[Install]
# vfs object = smb_spider
comment = Инсталл
path=/mnt/install/Install
guest ok = Yes
public = yes
writable = no

[SOUND]
vfs object = smb_spider
comment =  База музыки
path=/mnt/sound/sound
username = user1,user2,user3
only user = yes
public = Yes
writable = Yes
create mode = 0775
force create mode = 0775
directory mode = 0775
force directory mode = 0775

[1 my only]
vfs object = smb_spider
comment = Нетбуфер только для пользователя.
path=/mnt/netboofer/network
username = user1,user2,user3
only user = yes
public = Yes
writable = Yes
create mode = 0700
force create mode = 0700
directory mode = 0700
force directory mode = 0700

[2 all read]
vfs object = smb_spider
comment = Нетбуфер для всех чтение
path=/mnt/netboofer/network
username = user1,user2,user3
only user = yes
public = Yes
writable = Yes
create mode = 0755
force create mode = 0755
directory mode = 0755
force directory mode = 0755

[3 all write]
vfs object = smb_spider
comment = Нетбуфер полный достут для всех
path=/mnt/netboofer/network
username = user1,user2,user3
only user = yes
public = Yes
writable = Yes
create mode = 0777
force create mode = 0777
directory mode = 0777
force directory mode = 0777

[Netboofer]
# vfs object = smb_spider
comment = Для анонимного юзера !!!
path=/mnt/netboofer/network/00 netboofer
guest ok = Yes
public = Yes
writable = no

[Trafik]
vfs object = smb_spider
comment = Трафик менеджер
path=/mnt/netboofer/network/01 trafik
username = trafik
only user = yes
public = Yes
writable = Yes
create mode = 0700
force create mode = 0700
directory mode = 0700
force directory mode = 0700


Ответить