[Samba] samba goes down only on startup - tried solving myself

EricUmehara umeeguy at yahoo.com
Sat Dec 9 06:15:29 GMT 2006


hi,

samba will work normally if i issue the command '/etc/init.d/samba 
start', but as for starting up properly at boot time, it will go down 
when booted as the end of log.nmbd shows. as far as i'm able to read the 
logs, there is nothing suspicious happening.

why is this occurring and how do i fix it. i'm running samba version 
3.0.14a-3sarge2. i've included my smb.conf file.

thank you,
eric

log.smbd
--------------------------------------------------------
[2006/12/09 22:36:26, 0] smbd/server.c:main(798)
  smbd version 3.0.14a-Debian started.
  Copyright Andrew Tridgell and the Samba Team 1992-2004
[2006/12/09 22:36:26, 2] param/loadparm.c:do_section(3434)
  Processing section "[Home]"
[2006/12/09 22:36:26, 3] param/loadparm.c:lp_add_ipc(2409)
  adding IPC service
[2006/12/09 22:36:26, 3] param/loadparm.c:lp_add_ipc(2409)
  adding IPC service
[2006/12/09 22:36:28, 3] printing/pcap.c:pcap_cache_reload(114)
  reloading printcap cache
[2006/12/09 22:36:28, 3] printing/pcap.c:pcap_cache_reload(213)
  reload status: ok



log.nmbd
--------------------------------------------------------
[2006/12/09 22:36:29, 0] nmbd/nmbd.c:main(668)
  Netbios nameserver version 3.0.14a-Debian started.
  Copyright Andrew Tridgell and the Samba Team 1994-2004
[2006/12/09 22:36:31, 3] nmbd/nmbd.c:reload_nmbd_services(297)
  services not loaded
[2006/12/09 22:36:31, 2] nmbd/nmbd.c:main(692)
  Becoming a daemon.
[2006/12/09 22:36:31, 2] lib/tallocmsg.c:register_msg_pool_usage(57)
  Registered MSG_REQ_POOL_USAGE
[2006/12/09 22:36:31, 2] lib/dmallocmsg.c:register_dmalloc_msgs(71)
  Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2006/12/09 22:36:31, 3] nmbd/nmbd.c:main(724)
  Opening sockets 137
[2006/12/09 22:36:31, 3] nmbd/nmbd.c:open_sockets(591)
  open_sockets: Broadcast sockets opened.
[2006/12/09 22:36:31, 2] lib/interface.c:add_interface(81)
  added interface ip=192.168.0.4 bcast=192.168.0.255 nmask=255.255.255.0
[2006/12/09 22:36:31, 2] nmbd/nmbd_subnetdb.c:make_subnet(172)
  making subnet name:192.168.0.4 Broadcast address:192.168.0.255 Subnet 
mask:255.255.255.0
[2006/12/09 22:36:31, 2] nmbd/nmbd_subnetdb.c:make_subnet(172)
  making subnet name:UNICAST_SUBNET Broadcast address:0.0.0.0 Subnet 
mask:0.0.0.0
[2006/12/09 22:36:31, 2] nmbd/nmbd_subnetdb.c:make_subnet(172)
  making subnet name:REMOTE_BROADCAST_SUBNET Broadcast address:0.0.0.0 
Subnet mask:0.0.0.0
[2006/12/09 22:36:31, 3] nmbd/nmbd.c:main(743)
  Loaded hosts file /etc/samba/lmhosts
[2006/12/09 22:36:31, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name *<00> with first IP 192.168.0.4 
ttl=0 nb_flags= 0 to subnet 192.168.0.4
[2006/12/09 22:36:31, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name *<20> with first IP 192.168.0.4 
ttl=0 nb_flags= 0 to subnet 192.168.0.4
[2006/12/09 22:36:31, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP 
192.168.0.4 ttl=0 nb_flags= 0 to subnet 192.168.0.4
[2006/12/09 22:36:31, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP 
192.168.0.4 ttl=0 nb_flags= 0 to subnet 192.168.0.4
[2006/12/09 22:36:31, 3] 
nmbd/nmbd_serverlistdb.c:create_server_on_workgroup(159)
  create_server_on_workgroup: Created server entry FAMILY of type 
40019a03 (Linux Box) on workgroup UMEHARA.
[2006/12/09 22:36:31, 3] 
nmbd/nmbd_workgroupdb.c:initiate_myworkgroup_startup(267)
  initiate_myworkgroup_startup: Added server name entry FAMILY on subnet 
192.168.0.4
[2006/12/09 22:36:31, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name *<00> with first IP 192.168.0.4 
ttl=0 nb_flags= 0 to subnet 192.168.0.4
[2006/12/09 22:36:31, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name *<20> with first IP 192.168.0.4 
ttl=0 nb_flags= 0 to subnet 192.168.0.4
[2006/12/09 22:36:31, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP 
192.168.0.4 ttl=0 nb_flags= 0 to subnet 192.168.0.4
[2006/12/09 22:36:31, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP 
192.168.0.4 ttl=0 nb_flags= 0 to subnet 192.168.0.4
[2006/12/09 22:36:31, 3] 
nmbd/nmbd_serverlistdb.c:create_server_on_workgroup(159)
  create_server_on_workgroup: Created server entry FAMILY of type 
40019a03 (Linux Box) on workgroup UMEHARA.
[2006/12/09 22:36:31, 3] 
nmbd/nmbd_workgroupdb.c:initiate_myworkgroup_startup(267)
  initiate_myworkgroup_startup: Added server name entry FAMILY on subnet 
192.168.0.4
[2006/12/09 22:36:31, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name *<00> with first IP 192.168.0.4 
ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2006/12/09 22:36:31, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name *<20> with first IP 192.168.0.4 
ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2006/12/09 22:36:31, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP 
192.168.0.4 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2006/12/09 22:36:31, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP 
192.168.0.4 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2006/12/09 22:36:31, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name FAMILY<20> with first IP 
192.168.0.4 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2006/12/09 22:36:31, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name FAMILY<03> with first IP 
192.168.0.4 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2006/12/09 22:36:31, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name FAMILY<00> with first IP 
192.168.0.4 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2006/12/09 22:36:31, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name UMEHARA<00> with first IP 
192.168.0.4 ttl=0 nb_flags=80 to subnet UNICAST_SUBNET
[2006/12/09 22:36:31, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name UMEHARA<1e> with first IP 
192.168.0.4 ttl=0 nb_flags=80 to subnet UNICAST_SUBNET
[2006/12/09 22:36:31, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name *<00> with first IP 192.168.0.4 
ttl=0 nb_flags= 0 to subnet REMOTE_BROADCAST_SUBNET
[2006/12/09 22:36:31, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name *<20> with first IP 192.168.0.4 
ttl=0 nb_flags= 0 to subnet REMOTE_BROADCAST_SUBNET
[2006/12/09 22:36:31, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP 
192.168.0.4 ttl=0 nb_flags= 0 to subnet REMOTE_BROADCAST_SUBNET
[2006/12/09 22:36:31, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(236)
  add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP 
192.168.0.4 ttl=0 nb_flags= 0 to subnet REMOTE_BROADCAST_SUBNET
[2006/12/09 22:36:31, 0] nmbd/nmbd.c:terminate(56)
  Got SIGTERM: going down...
[2006/12/09 22:36:31, 3] 
nmbd/nmbd_sendannounce.c:send_host_announcement(208)
  send_host_announcement: type 0 for host FAMILY on subnet 192.168.0.4 
for workgroup UMEHARA



smb.conf
--------------------------------------------------------
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not many any basic syntactic errors.
#
#======================= Global Settings 
=====================================
[global]

# Do something sensible when Samba crashes: mail the admin a backtrace
   panic action = /usr/share/samba/panic-action %d

# workgroup = NT-Domain-Name or Workgroup-Name
   workgroup = Umehara
   netbios name = Family


# Uncomment this if you want a guest account, you must add this to 
/etc/passwd
# otherwise the user "nobody" is used
   guest account = smbguest

# this tells Samba to use a separate log file for each machine
# that connects
#   log file = /var/log/samba/log.%m
   log file = /var/log/samba/log 

# this is the granularity of logging samba will log at
   log level = 3 

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

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

# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
   socket options = TCP_NODELAY

# 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.
   dns proxy = no


#============================ Share Definitions ===========================

[Home]
comment = Home Directory
path = /home
public = yes
writeable = yes
create mask = 0777
guest ok = yes







More information about the samba mailing list