Код: Выделить всё
/etc/> uname -a
FreeBSD FreeBSD 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
Код: Выделить всё
/etc/> cat /var/log/samba/log.nmbd
[2011/11/29 01:28:03, 0] nmbd/nmbd.c:860(main)
nmbd version 3.6.1 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
[2011/11/29 01:28:04, 0] lib/util_sock.c:664(open_socket_in)
bind failed on port 137 socket_addr = 192.168.1.113.
Error = Can't assign requested address
[2011/11/29 01:28:04, 0] nmbd/nmbd_subnetdb.c:113(make_subnet)
nmbd_subnetdb:make_subnet()
Failed to open nmb socket on interface 192.168.1.113 for port 137. Error was Can't assign requested address
[2011/11/29 01:28:04, 0] nmbd/nmbd.c:974(main)
ERROR: Failed when creating subnet lists. Exiting.
/etc/>
Код: Выделить всё
/etc/> cat /usr/local/etc/smb.conf
[global]
workgroup = WORKGROUP
netbios name = FreeBSD
server string = FreeBSD Test-Server
interfaces = 192.168.1.113/255.255.255.0
security = SHARE
log file = /var/log/samba/log.%m
max log size = 50
smb ports = 139
dns proxy = No
socket options =
create mask = 0777
directory mask = 0777
include = /usr/local/etc/samba/users/%I.conf
/etc/>
Код: Выделить всё
/etc/> ifconfig
nfe0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8210b<RXCSUM,TXCSUM,VLAN_MTU,TSO4,WOL_MAGIC,LINKSTATE>
ether 00:01:6c:e6:76:c1
inet 192.168.1.113 netmask 0xffffff00 broadcast 192.168.1.255
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
/etc/>
Код: Выделить всё
/etc/> /usr/local/etc/rc.d/samba status
nmbd is not running.
smbd is running as pid 907.
/etc/>