Страница 1 из 1

Помогите новичку разобраться с ошибкой в SAMBA3

Добавлено: 2009-07-17 14:03:08
qwl
Доброго времени суток.

поставил SAMBA3
smb.conf:

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

[global].                                
workgroup = FIRMA.                      
netbios name = WL-BSD.                  
server string = FreeBSD server on FIRMA. 
interfaces = rl1.                        
security = SHARE.                        
hosts allow = 192.168.0.                
log file = /var/log/samba/log.%m.        
max log size = 50.                      
dns proxy = no.                          
dos charset = 866.                      
unix charset = koi8-r.                  
display charset = 866.                  
load printers = no.                      
show add printer wizard = no.            
printing = bsd.                          
printcap name = /dev/null.              
disable spoolss = yes.                 
вроде все работает, но на экране и в логах:

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

  smbd version 3.3.3 started.                                                
  Copyright Andrew Tridgell and the Samba Team 1992-2009                      
[2009/07/13 16:35:53,  1] smbd/files.c:file_init(195)                        
  file_init: Information only: requested 10000 open files, 7244 are available 
[2009/07/13 16:35:54,  0] lib/util_sock.c:open_socket_in(1300)                
  open_socket_in(): socket() call failed: Protocol not supported              
[2009/07/13 16:35:54,  0] lib/util_sock.c:open_socket_in(1300)                
  open_socket_in(): socket() call failed: Protocol not supported              
[2009/07/13 16:42:16,  0] lib/util_sock.c:get_peer_addr_internal(1676)        
  getpeername failed. Error was Socket is not connected                      
[2009/07/13 16:47:13,  0] lib/util_sock.c:get_peer_addr_internal(1676)        
  getpeername failed. Error was Socket is not connected                      
[2009/07/13 16:48:44,  0] lib/util_sock.c:get_peer_addr_internal(1676)        
  getpeername failed. Error was Socket is not connected                      
[2009/07/13 16:51:52,  0] lib/util_sock.c:get_peer_addr_internal(1676)        
  getpeername failed. Error was Socket is not connected                      
[2009/07/13 17:02:17,  0] lib/util_sock.c:get_peer_addr_internal(1676)        
  getpeername failed. Error was Socket is not connected                      
[2009/07/13 17:08:44,  0] lib/util_sock.c:get_peer_addr_internal(1676)        
  getpeername failed. Error was Socket is not connected                      
и т.д.
и в логе log.0.0.0.0:

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

[2009/07/13 18:28:44,  0] lib/access.c:check_access(410)                        
[2009/07/13 18:28:44,  0] lib/util_sock.c:get_peer_addr_internal(1676)          
  getpeername failed. Error was Socket is not connected                          
[2009/07/13 18:28:44,  0] lib/util_sock.c:get_peer_addr_internal(1676)          
  getpeername failed. Error was Socket is not connected                          
[2009/07/13 18:28:44,  1] lib/util_sock.c:get_peer_name(1866)                    
  get_peer_name: getnameinfo failed for 0.0.0.0 with error ai_family not support 
ed                                                                              
  Denied connection from 0.0.0.0 (0.0.0.0)                                      
[2009/07/13 18:28:44,  1] smbd/process.c:smbd_process(1906)                      
[2009/07/13 18:28:44,  0] lib/util_sock.c:get_peer_addr_internal(1676)          
  getpeername failed. Error was Socket is not connected                          
  Connection denied from 0.0.0.0                                                
[2009/07/13 18:28:44,  0] lib/util_sock.c:write_data(1136)                      
[2009/07/13 18:28:44,  0] lib/util_sock.c:get_peer_addr_internal(1676)          
  getpeername failed. Error was Socket is not connected                          
  write_data: write failure in writing to client 0.0.0.0. Error Socket is not co 
nnected                                                                          
[2009/07/13 18:28:44,  0] smbd/process.c:srv_send_smb(74)                        
  Error writing 5 bytes to client. -1. (Socket is not connected)               
Я нашел описание проблемы, но пока не могу допереть что надо сделать для устранения.
описание здесь: http://www.linuxquestions.org/questions ... og-499283/
Заранее благодарю.

Re: Помогите новичку разобраться с ошибкой в SAMBA3

Добавлено: 2009-07-17 14:50:38
Burner
по ссылке написано, что надо один из портов 445 и 139 закрыть

Re: Помогите новичку разобраться с ошибкой в SAMBA3

Добавлено: 2009-07-18 4:56:50
qwl
Закрыть.
А для кого? Для SAMBA или сети.
И как? В ipfw или в SAMBA.
Помогите пожалуйста.

Re: Помогите новичку разобраться с ошибкой в SAMBA3

Добавлено: 2009-07-18 4:58:48
Burner
на сервере закрыть порт, или вообще не слушать его.

Re: Помогите новичку разобраться с ошибкой в SAMBA3

Добавлено: 2009-07-18 9:01:21
qwl
Все решил :)
в smb.conf надо добавить:

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

smb ports = 445
Всем спасибо.