WINDOWS-XP-PC findet keine SAMBA-Verbindung

Hallo,

ich habe im selben LAN
PC-0 mit WINDOWS-XP Home
PC-1 mit openSUSE-11.3 mit SAMBA 3.5.4-5.1.2-i586
Nun konnte -- und kann immer noch -- PC-0 auf ein
Verzeichnis /home/wetter des user "wetter" im PC-1
zugreifen und dies öffnen.

PC-1 wurde nun ausrangiert und durch PC-2 ersetzt,
auf dem ebenso wie auf PC-1 openSUSE-11.3 mit SAMBA
läuft. Auch das Verzeichnis /home/wetter, das aktiv
und freigegeben war und ist, wurde -- wie eben auch
SAMBA -- 1:1 vom PC-1 auf den PC-2 kopiert. Nun aber
lässt sich PC-0 von PC-2 nicht beeindrucken. Das
WINDOWS-XP des PC-0 beharrt auf PC-1. Offensichtlich
muss ich auf dem WINDOWS-XP irgend etwas löschen,
bevor das SAMBA auf PC-2 seine Informationen auf PC-0
senden kann.

Auch die nun am PC-2 angeschlossenen Drucker sucht PC-0
nach wie vor auf dem PC-1.

Wer kann mir hierbei helfen. Meinen Dank im Voraus.
Grüße,
Werner.
 
wie greifst du auf PC-1 bzw. PC-2 zu? über den Namen oder die IP?

hast du die Freigaben z.B. fest als Netzlaufwerke mit 'ner IP verknüpft und der PC-2 hat über DHCP eine andere IP vom Router bekommen als PC-1 hatte?

Wie sieht die smb.conf von PC-1 und PC-2 aus?
 
Danke für die rasche Antwort.
wie greifst du auf PC-1 bzw. PC-2 zu?
über den Namen oder die IP?
Über IP.
hast du die Freigaben z.B. fest als Netzlaufwerke mit 'ner IP verknüpft
Alle PCs in meinem LAN haben eine fest zugeteilte IP: PC-0 etwa
192.168.1.8, PC-1 (ausrangiert) 192.168.1.15, PC-2 192.168.1.2,
was ehemals dem PC-1 gehörte.
und der PC-2 hat über DHCP eine andere IP vom Router
bekommen als PC-1 hatte?
DHCP verwende ich nicht in meinem LAN mit Router.
Wie sieht die smb.conf von PC-1 und PC-2 aus?
Beide sind identisch; von PC-1 auf PC-2 kopiert. Hier das smb.config
beider, wobei durch das Kopieren das Format ruiniert ist:
Code:
# ############################################
# smb.conf is the main Samba configuration file.                               #
#                                                                                                                     #
# von DG1GWY auf dem PC-1 mit SuSE-10.0  am 20.07.2006         #
#                     am 21.03.2008                                                                  #
# mit SuSE-11.0 neu eingerichtet         am 04.07.2008                       #
#                                                                                      #
# mit SuSE-11.2 neu eingerichtet         am 27.03.2010                       #
#                                                                                                                    #
# vom PC-1 auf PC-2 übertragen             am 18.12.2010                        #
# hier mit SuSE-11.3                                                                                   #
# ############################################
#================== Global Settings ===================
[global]
# 1. Server Naming Options:
    workgroup = OHM
    unix charset = LOCALE
    server string = Samba %v %h

# -------------------------------------------------------------------
# 2. Printing Options:
# CHANGES TO ENABLE PRINTING ON ALL CUPS PRINTERS IN THE
# NETWORK
# (as cups is now used in linux-mandrake 7.2 by default)
# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
# (Printcap für lokale und remote Drucker)
    printcap name = cups
    load printers = yes

# It should not be necessary to spell out the print system
# type unless
# yours is non-standard. Currently supported print systems
# include:
# bsd, sysv, plp, lprng, aix, hpux, qnx, cups

    printing = cups

# Samba 2.2 supports the Windows NT-style point-and-print feature. To
# use this, you need to be able to upload print drivers to the samba
# server. The printer admins (or root) may install drivers onto samba.
# Note that this feature uses the print$ share, so you will need to
# enable it below.
# This parameter works like domain admin group:
#    printer admin = @<group> <user>
#    printer admin = @adm
# This should work well for winbind:
#    printer admin = @"Domain Admins"
#
# printer admin ist überholt!!
    printcap cache time = 750
    cups options = "raw media=a4"

# -------------------------------------------------------------
# 3. Logging Options:
# this tells Samba to use a separate log file for each machine
# that connects

    log file = /var/log/samba/log.%m

# Put a capping on the size of the log files (in Kb).
    max log size = 1000

# Set the log (verbosity) level (0 <= log level <= 10)
    log level = 5

# -------------------------------------------------------------
# 4. Security and Domain Membership Options:
# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page. Do not enable this if (tcp/ip) name
# resolution does not work for all the hosts in your network.
#    hosts deny = 0.0.0.0/0    # synonym zu "deny hosts"

# (Die Rechner wetter und netbook dürfen auf den SAMBA-Server
# zugreifen, alle anderen werden von vornherhein abgewiesen.
# Funktioniert aber mit "wetter" nicht!!)
#    allow hosts = wetter    # synonym zu "hosts allow".
#    allow hosts = 192.168.1.8,192.168.1.7
    allow hosts = 192.168.1.0/255.255.255.0

# Security mode. Most people will want user level security.
# See security_level.txt for details.
    security = USER

# ----------------------------------------------------------
# 5. Browser Control and Networking Options:
# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
#
#   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
#
# Domain Master specifies Samba to be the Domain Master Browser.
# This allows Samba to collate browse lists between subnets.
# Don't use this if you already have a Windows NT domain controller
# doing this job
#    domain master = Yes
#
# -----------------------------------------------------------------
# 6. Domain Control Options:
# Enable this if you want Samba to be a domain logon server for
# Windows95 workstations or Primary Domain Controller for
# WinNT and Win2k
#
# -------------------------------------------------------------------
# 7. Name Resolution Options:
# All NetBIOS names must be resolved to IP Addresses.
# 'Name Resolve Order' allows the named resolution mechanism
# to be
# specified the default order is "host lmhosts wins bcast".
# "host" means use the unix system gethostbyname() function
# call that
# will use either /etc/hosts OR DNS or NIS depending on the
# settings
# of /etc/host.config, /etc/nsswitch.conf and the
# /etc/resolv.conf
# file. "host" therefore is system configuration dependant.
# This
# parameter is most often of use to prevent DNS lookups in
# order to
# resolve NetBIOS names to IP Addresses. Use with care!
#                                        ^^^^^^^^^^^^^
# The example below excludes use of name resolution for
# machines that
# are NOT on the local network segment  - OR - are not
# deliberately to
# be known via lmhosts or via WINS.
    name resolve order = lmhosts bcast wins
#
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable
# it's WINS Server
    wins support = No
#
# WINS Server - Tells the NMBD components of Samba to be a
# WINS Client
#  Note: Samba can be either a WINS Server, or a WINS Client,
# but NOT both
#
# WINS Proxy - Tells Samba to answer name resolution queries
# on
# behalf of a non WINS capable client, for this to work there
# must be
# at least one  WINS Server on the network. The default is NO.
#    wins proxy = yes
#
# DNS Proxy - tells Samba whether or not to try to resolve
# NetBIOS
# names via DNS nslookups. The built-in default for versions
# 1.9.17 is
# yes, this has been changed in version 1.9.18 to no.
# SuSE-11.0 hat 
# die SAMBA-Version 3.2.0-22.1
#
#    dns proxy = no
#
#    map to guest = Bad User
    usershare allow guests = No
#    add machine script = /usr/sbin/useradd  -c Machine -d
#       /var/lib/nobody -s /bin/false %m$
#    domain logons = Yes
#    local master = Yes
#    os level = 65
    passdb backend = smbpasswd
#    preferred master = Yes
#
# ---------------------------------------------------------------
# DG1GWY:
# important, must add the line below otherwise windows will
# generate "Access denied" error.
    use client driver = yes
    idmap gid = 10000-20000
    idmap uid = 10000-20000
    usershare max shares = 100
    hosts allow = 192.168.1.0/255.255.255.0
    ldap suffix = 
    wins server = 

# ================== Share Definitions =================
# [public]
#    comment = vom_BigPC
#    path = /usr/local/pub
##    public = yes
##    writable = yes
#    printable = yes
#    guest ok = no
#    read only = No
#
# [homes]
#    comment = Home Directories
#    browseable = no
#
##     By default, the home directories are exported
##      read-only. Change next
##     parameter to 'yes' if you want to be able to 
##      write to them.
##    writable = no
#    writeable = yes
#
## File creation mask is set to 0700 for security reasons.
## If you want to
## create files with group=rw permissions, set next parameter
## to 0775.
##    create mask = 0700
#    create mask = 0775
#
## Directory creation mask is set to 0700 for security
## reasons. If you want to
## create directories with group=rw permissions, set next
## parameter to 0775.
##    directory mask = 0700
#    directory mask = 0775
#
# Un-comment the following to provide a specific roving
# profile share
# the default is to use the user's home directory
# [profiles]
#    path = /var/lib/samba/profiles
#    browseable = no
#    guest ok = yes
#
# ===============  D r u c k e r  ======================
# NOTE: If you have a CUPS print system there is no need to
# specifically define each individual printer.
# You must configure the samba printers with the appropriate
# Windows
# drivers on your Windows clients. On the Samba server no
# filtering is
# done. If you wish that the server provides the driver and
# the clients
# send PostScript ("Generic PostScript Printer" under
# Windows), you
# have to swap the 'print command' line below with the
# commented one.

[printers]
    comment = Alle Drucker
    printable = Yes        # default = NO
    path = /var/spool/samba
    create mask = 0600    # default = 0744
    browseable = no
    hosts allow = 192.168.1.8/24
# to allow user "guest account" to print. Optional if samba
# configured for guest
# uncommend below:
#    guest ok = yes
#    public = yes
#    read only = yes
#    writable = no
#    create mask = 0770
#
# [color]
#    comment = Canon-Farbdrucker
#    path = /var/spool/samba
#    read only = No
#    create mask = 0600
#    guest ok = yes
#    browseable = yes
#    printable = yes
#    writable = no
#    printer name = canon pixma ip4700
#    hosts allow = 192.168.1.8/24

[print$]
    comment = Druckertreiber-Download-Bereich
    path = /var/lib/samba/drivers
    browseable = no
    guest ok = yes
    read only = yes
    write list = @users, root
    create mask = 0664
    directory mask = 0775

; ================  V e r z e i c h n i s s e  ==============
; A private directory, usable only by wetter. Note that
; wetter requires write access to the directory.
[wetter-pc]
    comment = wetter
    path = /home/wetter
    valid users = root, wetter
    writable = yes
    username = wetter
    read only = No
    read list = root, wetter
    write list = root, wetter
    create mask = 0775
    directory mask = 0775
    force group = users
#    guest ok = no
    guest ok = yes

[netbook]
    comment = netbook
    path = /home/netbook
    valid users = root, netbook
    writable = yes
    username = netbook
    read only = no
    read list = root, netbook
    write list = root, netbook
    create mask = 0775
    directory mask = 0775
    force group = users

# ======================   logon   =========================
#    root preexec = genlogon.pl %U %G %L
#
# Un-comment the following and create the netlogon directory for Domain
# Logons
# (you need to configure Samba to act as a domain controller
# too.)
# [netlogon]
#    comment = Network Logon Service
#    path = /usr/local/samba/bin/netlogon
#    writeable = no
#    guest ok = no
#    browseable = no
#    public = no
#    root preexec = /usr/local/samba/bin/ntlogon --user=%U  --os=%m
#    root postexec = rm [I]/usr/local/samba/netlogon/[/I]%U.bat
# ###############################################
Code:
[2010/12/21 00:01:01.153730,  3] lib/access.c:389(check_access)
  check_access: no hostnames in host allow/deny list.
[2010/12/21 00:01:01.153767,  0] lib/util_sock.c:1432(get_peer_addr_internal)
  getpeername failed. Error was Der Socket ist nicht verbunden
[2010/12/21 00:01:01.153989,  0] lib/access.c:410(check_access)
[2010/12/21 00:01:01.154055,  0] lib/util_sock.c:1432(get_peer_addr_internal)
  getpeername failed. Error was Der Socket ist nicht verbunden
  Denied connection from  (0.0.0.0)
[2010/12/21 00:01:01.154204,  1] smbd/process.c:2295(smbd_process)
[2010/12/21 00:01:01.154229,  0] lib/util_sock.c:1432(get_peer_addr_internal)
  getpeername failed. Error was Der Socket ist nicht verbunden
  Connection denied from 0.0.0.0
[2010/12/21 00:01:01.154382,  0] lib/util_sock.c:675(write_data)
[2010/12/21 00:01:01.154447,  0] lib/util_sock.c:1432(get_peer_addr_internal)
  getpeername failed. Error was Der Socket ist nicht verbunden
  write_data: write failure in writing to client 0.0.0.0. Error Die Verbindung wurde vom Kommunikationspartner zurÃŒckgesetzt
[2010/12/21 00:01:01.154587,  0] smbd/process.c:79(srv_send_smb)
  Error writing 5 bytes to client. -1. (Der Socket ist nicht verbunden)
[2010/12/21 00:01:01.154689,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2010/12/21 00:01:01.154723,  5] auth/token_util.c:525(debug_nt_user_token)
  NT user token: (NULL)
[2010/12/21 00:01:01.154752,  5] auth/token_util.c:551(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2010/12/21 00:01:01.154796,  5] smbd/uid.c:369(change_to_root_user)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2010/12/21 00:01:01.154835,  3] smbd/connection.c:31(yield_connection)
  Yielding connection to 
[2010/12/21 00:01:01.154890,  3] smbd/connection.c:42(yield_connection)
  deleting connection record returned NT_STATUS_NOT_FOUND
[2010/12/21 00:01:01.154971,  3] smbd/server.c:902(exit_server_common)
  Server exit (connection denied)
[2010/12/21 10:09:14.198063,  3] lib/access.c:389(check_access)
  check_access: no hostnames in host allow/deny list.
[2010/12/21 10:09:14.211939,  0] lib/util_sock.c:1432(get_peer_addr_internal)
  getpeername failed. Error was Der Socket ist nicht verbunden
[2010/12/21 10:09:14.212041,  0] lib/access.c:410(check_access)
[2010/12/21 10:09:14.212074,  0] lib/util_sock.c:1432(get_peer_addr_internal)
  getpeername failed. Error was Der Socket ist nicht verbunden
  Denied connection from  (0.0.0.0)
[2010/12/21 10:09:14.212133,  1] smbd/process.c:2295(smbd_process)
[2010/12/21 10:09:14.212146,  0] lib/util_sock.c:1432(get_peer_addr_internal)
  getpeername failed. Error was Der Socket ist nicht verbunden
  Connection denied from 0.0.0.0
[2010/12/21 10:09:14.212191,  0] lib/util_sock.c:675(write_data)
[2010/12/21 10:09:14.212215,  0] lib/util_sock.c:1432(get_peer_addr_internal)
  getpeername failed. Error was Der Socket ist nicht verbunden
  write_data: write failure in writing to client 0.0.0.0. Error Die Verbindung wurde vom Kommunikationspartner zurÃŒckgesetzt
[2010/12/21 10:09:14.212241,  0] smbd/process.c:79(srv_send_smb)
  Error writing 5 bytes to client. -1. (Der Socket ist nicht verbunden)
[2010/12/21 10:09:14.212258,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2010/12/21 10:09:14.212268,  5] auth/token_util.c:525(debug_nt_user_token)
  NT user token: (NULL)
[2010/12/21 10:09:14.212276,  5] auth/token_util.c:551(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2010/12/21 10:09:14.212291,  5] smbd/uid.c:369(change_to_root_user)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2010/12/21 10:09:14.212303,  3] smbd/connection.c:31(yield_connection)
  Yielding connection to 
[2010/12/21 10:09:14.212322,  3] smbd/connection.c:42(yield_connection)
  deleting connection record returned NT_STATUS_NOT_FOUND
[2010/12/21 10:09:14.212352,  3] smbd/server.c:902(exit_server_common)
Server exit (connection denied)
 
Zuletzt bearbeitet:
Nun aber
lässt sich PC-0 von PC-2 nicht beeindrucken. Das
WINDOWS-XP des PC-0 beharrt auf PC-1.

Wie äußert sich das genau?

Hast du irgendwas in die hosts-Datei eingetragen?
Hast du die entsprechende Netzlaufwerkverbindung gelöscht und neu eingetragen?
Wie sieht es aus, wenn du den Share direkt über das Explorer-Fenster öffnest (Adressleiste)?

lG

Brabax
 
Hast du irgendwas in die hosts-Datei eingetragen?
Ja, sowohl im Linux-PC (PC-2) als auch im WINDOWS-PC
(PC-0) sind alle im LAN befindlichen PCs mit ihrem IP einge-
tragen.
Hast du die entsprechende Netzlaufwerkverbindung gelöscht
und neu eingetragen?
Hier scheint mir der Hase im Pfeffer zu liegen: Da ich doch
wesentlich Linux-Friend bin, finde ich die "Netzlaufwerkver-
bindung" nicht. Ich gehe: Start -> Einstellungen -> Netzwerk-
verbindungen, worin nur die LAN-Verbindung über Ethernet
zu sehen ist (Verbindung hergestellt.) Firewall zeitweilig de-
aktiviert.

In "Andere Orte" -> Netzwerkumgebung:
Nicht angegeben
share an Samba 3.0.20b-3.19-1616-SUSE (BigPC) <- Das ist PC-1 !!
wetter-pc an Samba 3.2.4-4.5-2154-SUSE-SL11.0 BigPC (bigpc)
... alles altes Zeug: SuSE-Linux-11.0 und der alte PC-1 !!
Soll ich das alles löschen?
Kommt dann eine neue, richtige Verbindung zum PC-2 zustande?
Oder habe ich -- dann aber wie? -- "neue" Verbindungen zu bauen?
Wie sieht es aus, wenn du den Share direkt über das Explorer-
Fenster öffnest (Adressleiste)?
Ich verwende Firefox. Gebe hier ein: http://192.168.1.2/home/wetter/
Ergebnis: Fehler: Verbindung Fehlgeschlagen -- Firefox kann keine
Verbindung zu dem Server unter 192.168.1.2 aufbauen. Im Übrigen
geht es mit dieser Adresse auch nicht auf dem selben PC-2.
 
Nene, da soll ja auch kein http-Request laufen, oder?

Ich meinte den normalen Windows-Explorer (also Doppelklick auf "Computer" oder WinTaste+E).

Gehe mal bitte wie folgt vor:

Trag den neuen Samaba auch in die Hosts mit ein, wo du den alten auch schon stehen hattest und lösch den alten raus.

Dann am Windows-Rechner:

Öffnen den "Arbeitsplatz" (Win+E) und schaue, ob dort noch "Netzlaufwerke" existieren, die auf den alten Samba zeigen.
Diese einfach löschen (brauchst du ja sowieso nicht mehr).

Danach öffnest du eine CommandShell (Win+R, dann "cmd") und pingst den neuen Samba.

Wenn der Ping in Ordnung ist, gehst du testweise wieder in den Windows-Explorer (Win+E) und gibst ob in das Adressfeld ein
"\\IP-ADRESSE-ZU-SAMBA2".

Wenn dort keine Verbindung aufgebaut werden kann, obwohl die IP pingbar ist, dann passt was mit deinem SMB-Service auf dem Linux-Server nicht.

Kannst du über die Explorer-Variante auf den Share zugreifen (dü müsstest den Share bei der Eingabe der IP ja Quasi sehen), dann kannst du erneut in den Arbeitsplatz gehen (gaaaaaanz an den Anfang, wo man Laufwerk C, D, ... sehen kann) und suchst dort den Menupunkt für Netzlaufwerke (je nach Windows-Version ist der irgendwo in der Menu-Leiste unter Extras oder so).

Dann folgst du dem Assistenten zur Einrichtung des neuen Shares.

lG

Brabax
 
Zurück
Oben