Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba möchte noch nicht so
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Heinzelmännchen
Apprentice
Apprentice


Joined: 11 Mar 2004
Posts: 179
Location: MV, Germany

PostPosted: Thu Oct 06, 2005 7:32 pm    Post subject: Samba möchte noch nicht so Reply with quote

Hi,

ich wollte heute mal einen Samba Server aufsetzen, doch bis jetzt komme ich nicht über die Fehlermeldungen in den Logs hinweg.

Zum Anfang:
Code:
emerge -vp samba

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] net-fs/samba-3.0.14a-r2  -acl +cups -doc -kerberos +ldap -libclamav +mysql -oav +pam -postgres +python -quotas +readline (-selinux) -winbind -xml +xml2


/etc/samba/smb.conf
Code:
[global]
;String, mit dem sich der Samba-Server meldet
;(%h = Hostname, %v = Samba-Version)
server string = %h %v
comment = Samba 3.0.5
;Fuer "myworkgroup" den Namen der Arbeitsgruppe einsetzen,
;der auch auf dem Win-PC eingetragen ist
workgroup = ARBEITSGRUPPE
guest account = nobody

keep alive = 60
os level = 2
kernel oplocks = false
security = share
;Rechner eintragen, die auf die Freigaben zugreifen dürfen
hosts allow = 192.200.0.
encrypt passwords = yes
;printing = bsd
;printcap name = /etc/printcap
;load printers = yes
socket options = TCP_NODELAY
map to guest = Bad User
wins support = no
;IP-Adressen der Interfaces, die Samba abfragen soll
interfaces = 192.200.0.3/255.255.255.0

[Freigabe]
comment = Freigabe
path = /home/ftp
public = yes
writable = yes
;chmod = 777

Habe schon chmod und printer auskommentiert. Doch folgende Fehler bleiben.

/var/log/samba/log.smbd
Code:
[2005/10/06 21:20:58, 0] smbd/server.c:main(798)
  smbd version 3.0.14a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2004
[2005/10/06 21:20:59, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Connection refused
[2005/10/06 21:20:59, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Connection refused


/var/log/samba/log.nmbd
Code:
[2005/10/06 21:20:59, 0] nmbd/nmbd.c:main(668)
  Netbios nameserver version 3.0.14a started.
  Copyright Andrew Tridgell and the Samba Team 1994-2004
[2005/10/06 21:20:59, 0] lib/util_sock.c:open_socket_in(708)
  bind failed on port 137 socket_addr = 192.200.0.3.
  Error = Cannot assign requested address
[2005/10/06 21:20:59, 0] nmbd/nmbd_subnetdb.c:make_subnet(126)
nmbd_subnetdb:make_subnet()
  Failed to open nmb socket on interface 192.200.0.3 for port 137.  Error was Cannot assign requested address
[2005/10/06 21:20:59, 0] nmbd/nmbd.c:main(736)
  ERROR: Failed when creating subnet lists. Exiting.


netstat -at
Code:

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 localhost:mysql         *:*                     LISTEN
tcp        0      0 *:netbios-ssn           *:*                     LISTEN
tcp        0      0 *:www                   *:*                     LISTEN
tcp        0      0 *:ftp                   *:*                     LISTEN
tcp        0      0 *:ssh                   *:*                     LISTEN
tcp        0      0 *:smtp                  *:*                     LISTEN
tcp        0      0 *:microsoft-ds          *:*                     LISTEN


Hoffe hier alle benötigende Informationen erbracht zu haben.

Bei dem Rechner mit der IP 192.200.0.3 handelt es sich um einen WinXP Rechner wo die Firewall deaktiviert ist. Pingen funktioniert auch zwischen den Rechnern.

Hat einer von Euch die Lösung vielleicht verfügbar?

MfG
Heinzelmännchen
_________________
Gute Dinge, will Weile haben!
Back to top
View user's profile Send private message
Freiburg
Guru
Guru


Joined: 19 Jun 2004
Posts: 504
Location: Freiburg

PostPosted: Thu Oct 06, 2005 8:12 pm    Post subject: Reply with quote

Ich denke mal die IP die da angegeben wird ist die auf dem der Sambaserver arbeitet, sprich die IP des Rechners auf dem du dich gerade befindest. Normalerweise wird samba sich denke ich auf alle Interfaces binden, so das das interface statement eigentlich nur von Nutzen ist wenn du willst das Samba sich nur auf ein Interface bindet.

Beispiel 1: Du hast einen Rechner mit einer Netzwerkkarte die die ip 192.168.1.2 hat dann ist interfaces = 192.168.1.2

Beispiel 2: Du hast einen Rechner mit zwei Netzwerkkrate, eth0 hat die ip 192.168.1.2 und eth1 hat die ip 192.168.10.2 dann kannst du mit interfaces=192.168.1.2 bestimmen das samba nur auf eth0 erreichbar ist...

Ansonsten steht das in der beispiel configuration die im selben Verzeichniss liegt

Code:
# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
;   interfaces = 192.168.12.2/24 192.168.13.2/24


...
Back to top
View user's profile Send private message
Heinzelmännchen
Apprentice
Apprentice


Joined: 11 Mar 2004
Posts: 179
Location: MV, Germany

PostPosted: Thu Oct 06, 2005 8:24 pm    Post subject: Reply with quote

Cool,

genau das war das Problem. Habe interfaces an die IP des Servers gerichtet und nun funktioniert zumindestens schon mal das ich den Rechner sehe unter Netzwerkumgebung.

Besten Dank soweit.
_________________
Gute Dinge, will Weile haben!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum