Pessoal, Estava fazendo alguns testes por aqui e percebi que o samba "morria" quando eu tentava listar os compartilhamentos.
Na primeira vez fiz um compartilhamento aberto e outro autenticado. Nos dois o resultado foi o mesmo. algumas informações abaixo: vocês vão perceber que a configuração está bem simples.. ------------------- x ------------------ [r...@gmx /usr/local/etc/samba]# ll total 58K -rw------- 1 root wheel 44K Jan 10 21:31 secrets.tdb lrwxr-xr-x 1 root wheel 23 Jan 10 21:07 smb.conf -> /usr/local/etc/smb.conf -r--r--r-- 1 root wheel 11K Jan 10 20:54 smb.conf.orig -rw------- 1 root wheel 104 Jan 10 22:01 smbpasswd ------------------- x ------------------ [r...@gmx /usr/local/etc/samba]# grep -v \; smb.conf [global] workgroup = XYZ server string = SMB file Server netbios name = BSDSMB security = user hosts allow = 192.168.92.70 192.168.13.100 127. load printers = no encrypt passwords = yes browseable = yes log file = /var/log/samba/log.%m max log size = 50 dns proxy = no [homes] comment = Home-Directories browseable = no writable = yes [printers] comment = All Printers path = /var/spool/samba browseable = no guest ok = no writable = no printable = yes [shared] comment = Shared Stuff path = /var/sharedstuff read only = no ------------------- x ------------------ [r...@gmx /usr/local/etc/samba]# testparm Load smb config files from /usr/local/etc/smb.conf Processing section "[homes]" Processing section "[printers]" Processing section "[shared]" Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions [global] workgroup = XYZ netbios name = BSDSMB server string = SMB file Server log file = /var/log/samba/log.%m max log size = 50 load printers = No dns proxy = No hosts allow = 192.168.92.70, 192.168.13.100, 127. [homes] comment = Home-Directories read only = No browseable = No [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No [shared] comment = Shared Stuff path = /var/sharedstuff read only = No ------------------- x ------------------ [r...@gmx /usr/local/etc/samba]# ls -ld /var/sharedstuff/ drwxrwxrwx 2 root wheel 512 Jan 10 22:02 /var/sharedstuff/ ------------------- x ------------------ Antes de tentar a autenticação: [r...@gmx /usr/local/etc/samba]# netstat -f inet -na Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 *.139 *.* LISTEN tcp4 0 0 *.445 *.* LISTEN tcp4 0 0 192.168.13.125.22 192.168.92.70.35586 ESTABLISHED tcp4 0 0 *.22 *.* LISTEN udp4 0 0 172.16.86.125.138 *.* udp4 0 0 172.16.86.125.137 *.* udp4 0 0 192.168.13.125.138 *.* udp4 0 0 192.168.13.125.137 *.* udp4 0 0 *.138 *.* udp4 0 0 *.137 *.* ------------------- x ------------------ Antes de tentar a autenticação: [r...@gmx /usr/local/etc/samba]# tail /var/log/samba/log.smbd smbd version 3.3.8 started. Copyright Andrew Tridgell and the Samba Team 1992-2009 [2010/01/10 22:20:27, 0] printing/print_cups.c:cups_connect(103) Unable to connect to CUPS server localhost:631 - Connection refused [2010/01/10 22:20:27, 0] printing/print_cups.c:cups_connect(103) Unable to connect to CUPS server localhost:631 - Connection refused [2010/01/10 22:20:27, 1] smbd/files.c:file_init(195) file_init: Information only: requested 10000 open files, 5344 are available. ------------------- x ------------------ Cadastrei meu usuario no samba. smbpasswd -a m4rk ------------------- x ------------------ Eu existo! [r...@gmx /usr/local/etc/samba]# grep m4rk /etc/passwd m4rk:*:1001:1001:Marcus Vinicius:/home/m4rk:/usr/local/bin/bash ------------------- x ------------------ [r...@gmx /usr/local/etc/samba]# uname -a FreeBSD gmX.dtb.lan 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009 r...@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 ------------------- x ------------------ Eu tentando autenticar... [m4rk(zksky)~]> smbclient -W XYZ -L 192.168.13.125 -U m4rk Enter m4rk's password: protocol negotiation failed: NT_STATUS_END_OF_FILE ------------------- x ------------------ Depois de tentar a autenticação: [r...@gmx /usr/local/etc/samba]# tail -20 /var/log/samba/log.smbd =============================================================== [2010/01/10 22:28:31, 0] lib/fault.c:fault_report(41) INTERNAL ERROR: Signal 11 in pid 1683 (3.3.8) Please read the Trouble-Shooting section of the Samba3-HOWTO [2010/01/10 22:28:31, 0] lib/fault.c:fault_report(43) From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf [2010/01/10 22:28:31, 0] lib/fault.c:fault_report(44) =============================================================== [2010/01/10 22:28:31, 0] lib/util.c:smb_panic(1673) PANIC (pid 1683): internal error [2010/01/10 22:28:31, 0] lib/util.c:log_stack_trace(1777) BACKTRACE: 5 stack frames: #0 0x12d6ca5 <smb_panic+133> at /usr/local/sbin/smbd #1 0x12bfb4a <dump_core_setup+1594> at /usr/local/sbin/smbd #2 0xbfbfffb4 #3 0x15374c3 <main+6467> at /usr/local/sbin/smbd #4 0x1068fe9 <_start+137> at /usr/local/sbin/smbd [2010/01/10 22:28:31, 0] lib/fault.c:dump_core(231) dumping core in /var/log/samba/cores/smbd ------------------- x ------------------ Depois de tentar a autenticação: [r...@gmx /usr/local/etc/samba]# netstat -f inet -na Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 192.168.13.125.22 192.168.92.70.35586 ESTABLISHED tcp4 0 0 *.22 *.* LISTEN udp4 0 0 172.16.86.125.138 *.* udp4 0 0 172.16.86.125.137 *.* udp4 0 0 192.168.13.125.138 *.* udp4 0 0 192.168.13.125.137 *.* udp4 0 0 *.138 *.* udp4 0 0 *.137 *.* O bichin morreu! lib faltando? bug? esquecei algo? alguma ideia? ./flw ------------------------- Histórico: http://www.fug.com.br/historico/html/freebsd/ Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd