[Samba] samba and dhcp

Hidong Kim hkim at decode.com
Tue Jan 21 07:21:00 GMT 2003


I've turned off ipchains and iptables.  Here's the global section of 

         workgroup = WORKGROUP
         server string = Samba Server
         security = SHARE
         encrypt passwords = Yes
         username map = /etc/samba/smbusers
         log file = /var/log/samba/log.%m
         max log size = 50
         socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
         os level = 33
         preferred master = True
         local master = No
         domain master = False
         dns proxy = No
         wins support = Yes
         guest account = smbuser
         interfaces =
         hosts allow = 192.168.230. 127.

I added the interfaces line according to your suggestion.  I'm not sure 
if this is correct.  The Samba server laptop is getting an IP address of  I still can't start samba.  "ps aux" shows nmbd -D, but 
no smbd.  The strange thing is that the icon for the Samba server 
appears in the Windows 2000 Network Neighborhood.  But when I click on 
the icon, I get an error window saying that the network path was not 
found.  I'm trying to set up this laptop as a Samba server so that I can 
share files with a virtual Windows 2000 machine I set up in VMware on 
this laptop.  This configuration of native Red Hat running Samba with 
guest OS Windows 2000 is something that I've been running for a long 
time on a desktop Red Hat machine.  For some reason, I can't get it 
working on this laptop.  Thanks,


Kurt Weiss wrote:
> Hidong Kim schrieb:
>> Hi,
>> Can a machine getting its IP address by DHCP run as a Samba server? I've 
> why it should *not* be ok.
>> set up several Red Hat machines as Samba servers.  They all have 
>> static IP addresses.  I want to have a Red Hat 8.0 laptop which gets 
>> its IP address by DHCP running as a Samba server.  I usually start 
>> Samba with "/etc/rc.d/init.d/smb start".  When I do this on the 
>> laptop, it says 
> u can also use
> service smb start|stop|status
>> that smb and nmb start OK.  But when I do "/etc/rc.d/init.d/smb 
>> status" on the laptop, it says that smbd is stopped and nmbd is 
>> running.  When I 
> seems, that u have a config problem / look at the log scripts
> smb.conf in rh8.0 lays under /etc/samba/smb.conf
>> do "smbclient -L localhost" on the laptop, it says that connection is 
>> refused to  I've tried installing Samba 2.2.7a from source, 
> look @ smb.conf (interfaces?)
> did u install the rh firewall? in 1 situation on our rh machines 
> rh-firewall did refuse all netbios ports...
>> and installing Samba 2.2.5 from RPMS.  I still can't start smbd.  
>> Thanks for any suggestions,
>> Hidong

More information about the samba mailing list