Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba doesn't start
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mips
n00b
n00b


Joined: 15 Oct 2007
Posts: 28
Location: Yverdon

PostPosted: Sun Nov 18, 2007 4:53 pm    Post subject: Samba doesn't start Reply with quote

Hello, i try to set up a samba-server to browse disk space on my net.

It seams that the server starts its services but i can't see it on my windows client.
For the moment i don't need any printers, thats why i don't care the error about CUPS in the logfile.
Is it normal thet nmbd is Masterbrowser after a few minutes, not earlier?
The client is Win2000.

Where is the problem?
If somebody could help me,please...

log.smbd:
Code:

[2007/11/18 18:24:44, 0] smbd/server.c:main(847)
  smbd version 3.0.24 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
[2007/11/18 18:24:44, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Connection refused
[2007/11/18 18:24:44, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Connection refused


log.nmbd:
Code:

[2007/11/18 18:24:44, 0] nmbd/nmbd.c:main(699)
  Netbios nameserver version 3.0.24 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
[2007/11/18 18:30:21, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)

  *****
  Samba name server FEIN10 is now a local master browser for workgroup TESTGROUP on subnet 192.168.1.10
  *****

[2007/11/18 18:30:21, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)

  *****
  Samba name server FEIN10 is now a local master browser for workgroup TESTGROUP on subnet 192.168.1.11
  *****


smb.conf:
Code:

; /etc/samba/smb.conf
;
; Config file for SAMBA
; Ivo Jacquemai

[global]
  workgroup = testgroup      
  security = user
  load printers = no

;[homes]
;  public = no
;  writeable = yes
;  browseable = no

;[printers]
  ; no printers

;[archiv]
;  directory = /mnt/archiv
;  writeable = Yes


netstat -leepn | grep mb:
Code:

tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN      0          14439      5359/smbd           
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN      0          14438      5359/smbd           
udp        0      0 192.168.1.10:137        0.0.0.0:*                           0          14466      5369/nmbd           
udp        0      0 192.168.1.11:137        0.0.0.0:*                           0          14464      5369/nmbd           
udp        0      0 0.0.0.0:137             0.0.0.0:*                           0          14461      5369/nmbd           
udp        0      0 192.168.1.10:138        0.0.0.0:*                           0          14467      5369/nmbd           
udp        0      0 192.168.1.11:138        0.0.0.0:*                           0          14465      5369/nmbd           
udp        0      0 0.0.0.0:138             0.0.0.0:*                           0          14462      5369/nmbd   
Back to top
View user's profile Send private message
melchoir
n00b
n00b


Joined: 24 Apr 2007
Posts: 30
Location: Salt Lake City, UT

PostPosted: Sun Nov 18, 2007 6:08 pm    Post subject: Reply with quote

Am I correct in understanding that this machine has two interfaces, 192.168.1.10 and 192.168.1.11?

Also, is your windows machine setup to be under the same workgroup name, "testgroup"?

Try browsing by IP address from your windows machine, by entering in explorer \\192.168.1.1x. If you can reach it that way I'll assume they are in fact in different workgroups.
_________________
Try answering some unanswered posts.
It will make your mother happy.
Back to top
View user's profile Send private message
mips
n00b
n00b


Joined: 15 Oct 2007
Posts: 28
Location: Yverdon

PostPosted: Sun Nov 18, 2007 7:11 pm    Post subject: Reply with quote

:oops: I have just remarqued that i have troubles to ping my server from all my windows machines.
I don't no why. I changed the switch. perhaps i have to look there....

Jep, it is the switch. if i connect directly it is working.
:cry: i lost some hours...

thanks for helping
Back to top
View user's profile Send private message
mips
n00b
n00b


Joined: 15 Oct 2007
Posts: 28
Location: Yverdon

PostPosted: Sun Nov 18, 2007 7:32 pm    Post subject: Reply with quote

Hi, in fact it is not the switch....

The problem are my network interfaces. if i connect the 192.168.1.11 it is working (ping and samba)

how can i change that the samba is just working on 192.168.1.10? The second interface i don't need at the moment, later for internet routing.

this is the network interface configuration:

Code:

nis_domain_lo="feinnet"
config_eth0=( "192.168.1.10 netmask 255.255.255.0 brd 192.168.1.255" )
routes_eth0=( "default via 192.168.1.1" )

config_eth1=( "192.168.1.11 netmask 255.255.255.0 brd 192.168.1.255" )
#routes_eth1=( "default via 192.168.1.1" )
Back to top
View user's profile Send private message
melchoir
n00b
n00b


Joined: 24 Apr 2007
Posts: 30
Location: Salt Lake City, UT

PostPosted: Wed Nov 21, 2007 3:50 am    Post subject: Reply with quote

Put this is your smb.conf

Code:
interfaces = eth0


The smb.conf manpage has more options of that if you are inclined to skim it over.
_________________
Try answering some unanswered posts.
It will make your mother happy.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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