diogospace
(usa Debian)
Enviado em 21/01/2015 - 09:45h
Galera boa tarde.
Estou com um problema, meu servidor samba esta funcionando apenas qnd a internet esta ativa no servidor, se cai a internet o samba tmb cai, porem os serviços continuam em execução
Segue meu smb.conf.
#======================= Global Settings ================================
[global]
workgroup = empresa
server string = empresaFileServer
netbios name = server
unix charset = iso8859-1
# --------------------------- Logging Options -----------------------------
# logs split per machine
log file = /var/log/samba/%m.log
# max 50KB per log file, then rotate
max log size = 50
security = user
passdb backend = tdbsam
domain master = yes
domain logons = yes
# the login script name depends on the machine name
logon script = WKIX32.EXE kixtart.kix
# the login script name depends on the unix user used
; logon script = %u.bat
; logon path = \\%L\Profiles\%u
# disables profiles support by specifing an empty path
; logon path =
; add user script = /usr/sbin/useradd "%u" -n -g users
add group script = /usr/sbin/groupadd "%g"
# ; add machine script = /usr/sbin/useradd -n -c "Workstation (%u)" -M -d /nohome -s /bin/false "%u"
; add machine script = /usr/sbin/add_machine "%u"
add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/nobody %u
; delete user script = /usr/sbin/userdel "%u"
; delete user from group script = /usr/sbin/userdel "%u" "%g"
; delete group script = /usr/sbin/groupdel "%g"
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
netbios name = server
netbios aliases = server
time server = yes
wins support = yes
domain logons = yes
os level = 100
; os level era 64
preferred master = Yes
domain master = Yes
logon home =
logon path =
logon drive = u:
oplocks = no
level2 oplocks = no
admin users = root
; domain administrators
interfaces = eth1
bind interfaces only = yes
# --------------------------- Printing Options -----------------------------
load printers = yes
cups options = raw
; printcap name = /etc/printcap
#obtain list of printers automatically on SystemV
; printcap name = lpstat
; printing = cups
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes
create mask = 0700
directory mask = 0700
[Operacao]
comment = Business Drives
path = /empresa
read only = No
force create mode = 0660
force directory mode = 0660
create mask = 0660
directory mask = 2770
guest ok = No
;write list = diogo
valid users = @vendas @compras @producao @publico @administracao @financeiro @cobranca @cadastro
### ==================== lixeira ================================== ####
vfs object = recycle
#Local da Lixeira
recycle:repository = .lixeira
# Permite Organizar as Pastas dentro da Lixeira
recycle:keeptree = yes
# Arquivos que não irao para a Lixeira
recycle:exclude = *.tmp, *.log, *.obj, *.bak, *.iso, ~*.*, *.mp*
recycle:exclude_dir = tmp, cache
#Versoes Ativadas
recycle:versions = Yes
#log da Lixeira
# recycle:facility = LOCAL1
# recycle:priority = NOTICE
### fim da lixeira ###
### Auditoria ###
#vfs objects = full_audit
#full_audit:facility = local5
#full_audit:priority = notice
#full_audit:prefix = %u|%I|%S
#full_audit:success = rename, rmdir, unlink, chmod, chown
#full_audit:failure = none
### Fim Auditoria ###
# Un-comment the following and create the netlogon directory for Domain Logons
[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
guest ok = yes
writable = no
share modes = no
[backup]
path = /var/lib/backup
comment = Business Drives
read only = No
force create mode = 0660
force directory mode = 0660
create mask = 0660
directory mask = 2770
guest ok = No
;write list = diogo
valid users = @internet
este é o log que gera.
Percebi que esta recebendo duas subnet meu ip externo e interno, mas, não sei porque sendo que está setado a interface do eth1
[2014/12/29 17:01:38, 0] nmbd/nmbd.c:66(terminate)
Got SIGTERM: going down...
[2014/12/29 17:01:41, 0] nmbd/nmbd.c:861(main)
nmbd version 3.6.6 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
[2014/12/29 17:01:41, 0] nmbd/asyncdns.c:157(start_async_dns)
started asyncdns process 29255
[2014/12/29 17:01:41, 0] nmbd/nmbd_logonnames.c:162(add_logon_names)
add_domain_logon_names:
Attempting to become logon server for workgroup EMPRESA on subnet
IPEXTERNO
[2014/12/29 17:01:41, 0] nmbd/nmbd_logonnames.c:162(add_logon_names)
add_domain_logon_names:
Attempting to become logon server for workgroup EMPRESA on subnet 192.168.11.254
[2014/12/29 17:01:41, 0] nmbd/nmbd_logonnames.c:162(add_logon_names)
add_domain_logon_names:
Attempting to become logon server for workgroup EMPRESA on subnet UNICAST_SUBNET
[2014/12/29 17:01:41, 0] nmbd/nmbd_become_dmb.c:339(become_domain_master_browser_wins)
become_domain_master_browser_wins:
Attempting to become domain master browser on workgroup EMPRESA , subnet UNICAST_SUBNET.
[2014/12/29 17:01:41, 0] nmbd/nmbd_become_dmb.c:353(become_domain_master_browser_wins)
become_domain_master_browser_wins: querying WINS server from IP 192.168.11.254 for domain master browser name EMPRESA <1b> on workgroup EMPRESA
[2014/12/29 17:01:45, 0] nmbd/nmbd_logonnames.c:123(become_logon_server_success)
become_logon_server_success: Samba is now a logon server for workgroup EMPRESA on subnet
IPEXTERNO
[2014/12/29 17:01:45, 0] nmbd/nmbd_logonnames.c:123(become_logon_server_success)
become_logon_server_success: Samba is now a logon server for workgroup EMPRESA on subnet 192.168.11.254
[2014/12/29 17:01:47, 0] nmbd/nmbd_logonnames.c:123(become_logon_server_success)
become_logon_server_success: Samba is now a logon server for workgroup EMPRESA on subnet UNICAST_SUBNET
[2014/12/29 17:01:47, 0] nmbd/nmbd_become_dmb.c:112(become_domain_master_stage2)
*****
Samba server SERVER is now a domain master browser for workgroup EMPRESA on subnet UNICAST_SUBNET
*****
[2014/12/29 17:01:47, 0] nmbd/nmbd_become_dmb.c:294(become_domain_master_browser_bcast)
become_domain_master_browser_bcast:
Attempting to become domain master browser on workgroup EMPRESA on subnet
IPEXTERNO
[2014/12/29 17:01:47, 0] nmbd/nmbd_become_dmb.c:307(become_domain_master_browser_bcast)
become_domain_master_browser_bcast: querying subnet IPEXTERNO for domain master browser on workgroup EMPRESA
[2014/12/29 17:01:47, 0] nmbd/nmbd_become_dmb.c:294(become_domain_master_browser_bcast)
become_domain_master_browser_bcast:
Attempting to become domain master browser on workgroup EMPRESA on subnet 192.168.11.254
[2014/12/29 17:01:47, 0] nmbd/nmbd_become_dmb.c:307(become_domain_master_browser_bcast)
become_domain_master_browser_bcast: querying subnet 192.168.11.254 for domain master browser on workgroup EMPRESA
[2014/12/29 17:01:55, 0] nmbd/nmbd_become_dmb.c:112(become_domain_master_stage2)
*****
Samba server SERVER is now a domain master browser for workgroup EMPRESA on subnet
IPEXTERNO
*****
[2014/12/29 17:01:55, 0] nmbd/nmbd_become_dmb.c:112(become_domain_master_stage2)
*****
Samba server SERVER is now a domain master browser for workgroup EMPRESA on subnet 192.168.11.254
*****
[2014/12/29 17:02:03, 0] nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
*****
Samba name server SERVER is now a local master browser for workgroup EMPRESA on subnet
IPEXTERNO
*****
[2014/12/29 17:02:03, 0] nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
*****
Samba name server SERVER is now a local master browser for workgroup EMPRESA on subnet 192.168.11.254