作者 主題: Samba 3.0.14a-3 on debian ,windows 無法登入  (閱讀 2308 次)

0 會員 與 1 訪客 正在閱讀本文。

peiga

  • 憂鬱的高中生
  • ***
  • 文章數: 117
    • 檢視個人資料
各位前輩好,小弟有一台samba server,日前於vmware和個人pc上模擬都正常存取
但是卻在實作上卻出了錯,如下:


系統帳號和samba帳號(smbpasswd)只有cloud一個帳號


原本以為會是被防火牆擋掉了,所以下了,可是還是不行
引用

iptables -F
iptables -X
iptables -Z


在此附上小弟的各個設定檔

從netstat -nutlp裡也可以看到samba正在listen中
引用

file-server:~# netstat -nutlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN     1615/smbd
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN     1405/portmap
tcp        0      0 0.0.0.0:113             0.0.0.0:*               LISTEN     1605/inetd
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN     1615/smbd
tcp6       0      0 :::22                   :::*                    LISTEN     1622/sshd
udp        0      0 192.168.1.2:137         0.0.0.0:*                          1613/nmbd
udp        0      0 0.0.0.0:137             0.0.0.0:*                          1613/nmbd
udp        0      0 192.168.1.2:138         0.0.0.0:*                          1613/nmbd
udp        0      0 0.0.0.0:138             0.0.0.0:*                          1613/nmbd
udp        0      0 0.0.0.0:111             0.0.0.0:*                          1405/portmap

/etc/samba/smb.conf
引用

[global]
        workgroup = x3_servers
        netbios name = file_server
        server string = x3 file server
        security = user
        encrypt passwords = true
        smb passwd file = /etc/samba/smbpasswd
        #hosts allow = 192.168.1. 127.
        log file = /var/log/samba/%m.log
        max log size = 0
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        dns proxy = no

[homes]
        comment = Home Directories
        browseable = no
        writable = yes
        valid users = %S
        create mode = 0664
        directory mode =0775


/etc/network/interfaces
引用

auto eth0
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1


/etc/hosts
引用

127.0.0.1       localhost.localdomain   localhost       file-server

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


/etc/hosts.deny
引用

# /etc/hosts.deny: list of hosts that are _not_ allowed to access the system.
#                  See the manual pages hosts_access(5), hosts_options(5)
#                  and /usr/doc/netbase/portmapper.txt.gz
#
# Example:    ALL: some.host.name, .some.domain
#             ALL EXCEPT in.fingerd: other.host.name, .other.domain
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper. See portmap(8)
# and /usr/doc/portmap/portmapper.txt.gz for further information.
#
# The PARANOID wildcard matches any host whose name does not match its
# address.

# You may wish to enable this to ensure any programs that don't
# validate looked up hostnames still leave understandable logs. In past
# versions of Debian this has been the default.
# ALL: PARANOID


另外附上log檔(節錄)

192.168.1.202.log
引用

[2005/09/30 09:14:36, 0] lib/util_sock.c:open_socket_in(708)
[2005/09/30 09:14:36, 0] smbd/oplock.c:init_oplocks(1357)
  open_oplock_ipc: Failed to get local UDP socket for address 100007f. Error was Cannot assign reque                                                                                sted address


謝謝大大耐心看完,真的很急,請幫小弟解答

peiga

  • 憂鬱的高中生
  • ***
  • 文章數: 117
    • 檢視個人資料
Samba 3.0.14a-3 on debian ,windows 無法登入
« 回覆 #1 於: 2005-10-02 07:36 »
我找到問題所在了

我將apt的sourcelist從原本的http://linux.cdpa.nsysu.edu.tw換成ftp://debian.linux.org.tw
然後重新安裝
引用

apt-get --purge remove samba #連同設定檔將samba移除
apt-get clean #將原本已經抓下來的.deb檔清空
apt-get update #從新的sourcelist上下載新的清單
apt-get install samba


平平是一樣的東西(也許不一樣啦),這樣的動作花了我半天才完成
我咧~~>,<~~