在FreeBSD 8.1 RELEASE上configurationSamba35

我目前正试图在轻量级家庭networking上创build一个Samba共享,并且在configuration从ports树编译的Samba 3.5.6时遇到了一些问题。

我正在寻找的是非常基本的。 我只想要一个没有限制的分享,任何人都可以访问我的家庭networking。 更具体地说,我不会也不会需要打印。

/usr/local/etc/smb.conf看起来像这样:

 #======================= Global Settings ===================================== [global] workgroup = WORKGROUP server string = Server security = user ; netbios name = Server hosts allow = 192.168.1. 127. log file = /var/log/samba/log.%m max log size = 50 interfaces = 192.168.1.254/24 192.168.1.253/24 wins support = yes guest account = ftp #============================ Share Definitions ============================== [drop] comment = Server Drop path = /usr/drop/ public = yes writeable = yes printable = no ; admin users = User browseable = yes guest ok = yes hide dot files = yes 

而当我运行testparm我得到以下输出:

 $ testparm Load smb config files from /usr/local/etc/smb.conf max_open_files: sysctl_max (11095) below minimum Windows limit (16384) rlimit_max: rlimit_max (11095) below minimum Windows limit (16384) Processing section "[drop]" Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions [global] server string = Server interfaces = 192.168.1.254/24, 192.168.1.253/24 guest account = ftp log file = /var/log/samba/log.%m max log size = 50 wins support = Yes hosts allow = 192.168.1., 127. [drop] comment = Server Drop path = /usr/drop/ read only = No guest ok = Yes 

但是,当我尝试使用smbclient \\\\localhost\\drop\\在本地testing此连接时,我得到以下输出:

 $ smbclient \\\\localhost\\drop\\ Enter User's password: Connection to localhost failed (Error NT_STATUS_INVALID_PARAMETER) 

我也遇到了类似的问题在https://stackoverflow.com/questions/4034380/why-smb-returns-nt-status-invalid-parameter-how-to-fix-smbclient ,但这是惊人的含糊不清,来一个解决scheme。

有什么要解决的build议?

编辑:看来问题可能会比这更深入。 尽pipe/etc/rc.conf samba_enable="YES" ,尽pipe在启动后重新启动了几次samba,但运行ps -ax | grep mbd ps -ax | grep mbd看看有什么运行给我:

 $ ps -aux | grep mdb root 1802 0.0 0.1 7044 1348 0 R+ 9:41PM 0:00.00 grep mdb 

暗示桑巴甚至没有运行,尽pipe我所有的….

 $ /usr/local/etc/rc.d/samba restart Performing sanity check on Samba configuration: OK smbd not running? (check /var/run/samba/smbd.pid). nmbd not running? (check /var/run/samba/nmbd.pid). Removing stale Samba tdb files: ...... done Starting nmbd. Starting smbd. 

删除线路:

 wins support = yes guest account = ftp 

并改变线路

 interfaces = 192.168.1.254/24 192.168.1.253/24 

 interfaces = wlan0 

然后执行:

 $ /usr/local/etc/rc.d/samba stop smbd not running? (check /var/run/samba/smbd.pid). Stopping nmbd. Waiting for PIDS: 2219. $ /usr/local/etc/rc.d/samba status nmbd is not running. smbd is not running. $ /usr/local/etc/rc.d/samba start Removing stale Samba tdb files: ....... done Starting nmbd. Starting smbd. 

似乎已经解决了这个问题。 我想这可能是与胜者支持的冲突,或者客户账户ftp不存在或者是一些这样的愚蠢的事情。