Собственно в этом проблема у клиентов Windows XP, 7 периодически пропадают подключенные сетевые диски на несколько секунд, потом опят сами включаются
вот мой smb.conf
#======================= Global Settings =======================
[global]
log file = /var/log/samba/log.%m
passwd chat = *Enter\snew\s*\spassword:* %n\n * Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully*.
obey pam restrictions = yes
socket options = TCP_NODELAY
encrypt passwords = true
passdb backend = tdbsam
passwd program = /urs/bin/passwd %u
pam password change = no
dns proxy = no
netbios name = ZOO-PUBLIC
server string = %h File server
invalid users = root
workgroup = WORKGROUP
os level = 20
security = SHARE
syslog = 0
panic action = /usr/share/samba/panic-action %d
max log size = 1000
load printers = no
show add printer wizard = no
printcap name = /dev/null
disable spoolss = yes
hide files = /~$*.doc/~$*.docx/.deleted/.*/
map to guest = Bad User
map acl inherit = yes
store dos attributes = yes
acl compatibility = auto
map system = no
map archive = no
map hidden = no
map readonly = no
force unknown acl user = yes
remote announce = 192.168.1.11
create mask = 0770
directory mask = 0770
usershare owner only = false
## Browsing/Identification ###
; wins server = w.x.y.z
; name resolve order = lmhosts host wins bcast
#### Networking ####
; bind interfaces only = yes
#### Debugging/Accounting ####
# syslog only = no
####### Authentication #######
# security = user
########## Domains ###########
; domain logons = yes
; logon path = \\%N\profiles\%U
; logon drive = H:
; logon script = logon.cmd
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
; add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
; add group script = /usr/sbin/addgroup --force-badname %g
########## Printing ##########
; printing = bsd
; printcap name = /etc/printcap
; printing = cups
; printcap name = cups
############ Misc ############
; include = /home/samba/etc/smb.conf.%m
; message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
; idmap uid = 10000-20000
; idmap gid = 10000-20000
; template shell = /bin/bash
; winbind enum groups = yes
; winbind enum users = yes
; usershare max shares = 100
#======================= Share Definitions =======================
;[homes]
; comment = Home Directories
; browseable = no
; read only = yes
; create mask = 0700
; directory mask = 0700
; valid users = %S
;[netlogon]
; comment = Network Logon Service
; path = /home/samba/netlogon
; guest ok = yes
; read only = yes
;[profiles]
; comment = Users profiles
; path = /home/samba/profiles
; guest ok = no
; browseable = no
; create mask = 0600
; directory mask = 0700
;[printers]
; comment = All Printers
; browseable = no
; path = /var/spool/samba
; printable = yes
; guest ok = no
; read only = yes
; create mask = 0700
# Windows clients look for this share name as a source of downloadable
# printer drivers
;[print$]
; comment = Printer Drivers
; path = /var/lib/samba/printers
; browseable = yes
; read only = yes
; guest ok = no
; write list = root, @lpadmin
;[cdrom]
; comment = Samba server's CD-ROM
; read only = yes
; locking = no
; path = /cdrom
; guest ok = yes
; preexec = /bin/mount /cdrom
; postexec = /bin/umount /cdrom
[ARCHIV]
path = /home/SMB_SHARES/ARCHIV/
comment = Files archiv
admin users = admin
writeable = yes
valid users = @group_all_usr
write list = admin
read list = @group_all_usr
inherit acls = yes
vfs object = recycle
recycle:touch = yes
recycle:exclude_dir = /tmp
recycle:exclude = *.tmp,*.pif,*.inf
recycle:keeptree = yes
recycle:maxsize = 0
recycle:repository = .deleted/%U
recycle:versions = yes
[OK]
admin users = admin
comment = Files OK
read only = no
writeable = yes
browseable = yes
valid users = @group_gk
write list = @group_gk
path = /home/SMB_SHARES/OK/
vfs object = recycle
recycle:repository = .deleted/%U
recycle:keeptree = yes
recycle:touch = yes
recycle:versions = yes
recycle:maxsize = 0
recycle:exclude = *.tmp,*.pif,*.inf
recycle:exclude_dir = /tmp
recycle:noversions = *.doc
[Other]
comment = Files common
path = /home/SMB_SHARES/OTHER/
admin users = admin
valid users = @group_all_usr
write list = @group_all_usr
writeable = yes
read only = no
locking = no
vfs object = recycle
recycle:exclude_dir = /tmp
recycle:maxsize = 0
recycle:touch = yes
recycle:noversions = *.doc
recycle:keeptree = yes
recycle:exclude = *.tmp,*.pif,*.inf
recycle:repository = .deleted/%U
recycle:versions = yes
veto files = /*.pif/Autorun.inf/POSLATIO/
delete veto files = yes
[Users]
browseable = no
admin users = admin
recycle:noversions = *.doc
write list = @group_all_usr
vfs object = recycle
recycle:keeptree = yes
veto files = /*.pif/
recycle:maxsize = 0
recycle:touch = yes
writeable = yes
recycle:exclude_dir = /tmp
path = /home/SMB_SHARES/USERS/
recycle:exclude = *.tmp,*.pif,*.inf
comment = Home
valid users = @group_all_usr
recycle:repository = .deleted/%U
recycle:versions = yes
Такой же точно конфиг был на предыдущем сервере 11.10 на нем все работало замечательно, Вот на свою голову решил оборудование и дистрибутив сменить.
На расшариваемые папки установил права 770 для admin и рабочей группы чья папка, права задал через setfacl,
MySQL работает нормально, ssh сессии не обрываются проблемы только с самбой.
Уже не знаю на что думать. В сети есть еще один Уьунту сервер 11.10 по образу которого делался этот конфиг и Windows 2003 может они влияют друг на друга, короче я в темноте.
Самое неприятно, что клиенты во время редактирования, если произошло отключение потом не могут сохранить открытый файл, пишет ошибку что файл уже используется, а под другим именем все сохраняется. И открытые программы тоже соответственно перестают работать.