当前位置: 技术问答>linux和unix
为什么samba无法共享自己的目录?
来源: 互联网 发布时间:2015-11-13
本文导语: 按网上教材的说法写了一个smb.conf,其中security = share, 共享的目录的权限为:drwxr-xr-x ,运行:smbclient -L //localhost, 结果是: added interface ip=192.168.0.3 bcast=192.168.0.255 nmask=255.255.255.0 timeout connecting to 127.0.0.1:139...
按网上教材的说法写了一个smb.conf,其中security = share,
共享的目录的权限为:drwxr-xr-x ,运行:smbclient -L //localhost,
结果是:
added interface ip=192.168.0.3 bcast=192.168.0.255 nmask=255.255.255.0
timeout connecting to 127.0.0.1:139
Error connecting to 127.0.0.1 (Operation already in progress)
Connection to localhost failed
而用smbclient加载别的windows共享出来的目录毫无问题,用别的windows机器
可以看到那台linux机器的主机名字,不过也进不去。查看smbd.log,里面的出错
原因是:
[2006/03/09 18:28:53, 0] lib/util_sock.c:open_socket_in(804)
[2006/03/09 18:28:53, 0] smbd/oplock.c:init_oplocks(1217)
open_oplock_ipc: Failed to get local UDP socket for address 100007f.
Error was Cannot assign requested address
我已经运行了iptables -F将防火墙关掉了,请问还可能有什么原因?
共享的目录的权限为:drwxr-xr-x ,运行:smbclient -L //localhost,
结果是:
added interface ip=192.168.0.3 bcast=192.168.0.255 nmask=255.255.255.0
timeout connecting to 127.0.0.1:139
Error connecting to 127.0.0.1 (Operation already in progress)
Connection to localhost failed
而用smbclient加载别的windows共享出来的目录毫无问题,用别的windows机器
可以看到那台linux机器的主机名字,不过也进不去。查看smbd.log,里面的出错
原因是:
[2006/03/09 18:28:53, 0] lib/util_sock.c:open_socket_in(804)
[2006/03/09 18:28:53, 0] smbd/oplock.c:init_oplocks(1217)
open_oplock_ipc: Failed to get local UDP socket for address 100007f.
Error was Cannot assign requested address
我已经运行了iptables -F将防火墙关掉了,请问还可能有什么原因?
|
lo没指定IP:
ifconfig lo 127.0.0.1
ifconfig lo 127.0.0.1