Matt Burkhardt
2009-Jun-05  21:40 UTC
[Samba] I am so frustrated - Samba ports not opening and no error message
Okay - I've been plugging away and it got to the point that running
smbclient was returning information about an Alfresco install that I
never used, so I went ahead and deleted everything I could find on my
machine that said "alfresco".  I then removed samba using apt-get from
the machine by typing
apt-get remove --purge samba 
I deleted the /etc/samba directory and re-installed samba.
So now I've made sure that DHCP, DNS and OpenLDAP are now working
correctly and I started to reconfigure Samba.  I start it up and I look
at the log.smbd and log.nmbd files, don't see a single error message and
when I run nmap - there's nothing listening on the ports that Samba is
supposed to be using.  I have no firewall set up and nothing between me
and the server.   Here's showing that the daemons are running:
 ps -e | grep mb
 6984 ?        00:00:00 nmbd
 6986 ?        00:00:00 smbd
Here's the results from nmap
 nmap ubuntu
Starting Nmap 4.53 ( http://insecure.org ) at 2009-06-05 17:34 EDT
Interesting ports on 192.168.1.100:
Not shown: 1697 closed ports
PORT      STATE SERVICE
22/tcp    open  ssh
53/tcp    open  domain
80/tcp    open  http
81/tcp    open  hosts2-ns
82/tcp    open  xfer
83/tcp    open  mit-ml-dev
111/tcp   open  rpcbind
389/tcp   open  ldap
443/tcp   open  https
631/tcp   open  ipp
901/tcp   open  samba-swat
3306/tcp  open  mysql
5001/tcp  open  commplex-link
5432/tcp  open  postgres
8009/tcp  open  ajp13
8080/tcp  open  http-proxy
10000/tcp open  snet-sensor-mgmt
Nmap done: 1 IP address (1 host up) scanned in 0.151 seconds
I have attached the log.smbd, log.nmbd and smb.conf files.  Any ideas?
I can't logon - just says Connection refused.
On a side note - I can't stop samba by running
sudo /etc/init.d/samba stop
It kills the nmbd daemon but not the smbd daemon
Thanks!
-- 
Matt Burkhardt, M.Sci. Technology Management
mlb@imparisystems.com
(301) 682-7901
502 Fairview Avenue
Frederick, MD  21701
http://www.imparisystems.com 
-------------- next part --------------
[2009/06/05 17:33:17, 0] nmbd/nmbd.c:main(721)
  Netbios nameserver version 3.0.28a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2008
[2009/06/05 17:33:17, 3] nmbd/nmbd.c:reload_nmbd_services(298)
  services not loaded
[2009/06/05 17:33:17, 2] nmbd/nmbd.c:main(745)
  Becoming a daemon.
[2009/06/05 17:33:17, 2] lib/tallocmsg.c:register_msg_pool_usage(105)
  Registered MSG_REQ_POOL_USAGE
[2009/06/05 17:33:17, 2] lib/dmallocmsg.c:register_dmalloc_msgs(75)
  Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2009/06/05 17:33:17, 3] nmbd/nmbd.c:main(783)
  Opening sockets 137
[2009/06/05 17:33:17, 3] nmbd/nmbd.c:open_sockets(639)
  open_sockets: Broadcast sockets opened.
[2009/06/05 17:33:17, 2] lib/interface.c:add_interface(81)
  added interface ip=192.168.1.100 bcast=192.168.1.255 nmask=255.255.255.0
[2009/06/05 17:33:17, 2] nmbd/nmbd_subnetdb.c:make_subnet(144)
  making subnet name:192.168.1.100 Broadcast address:192.168.1.255 Subnet
mask:255.255.255.0
[2009/06/05 17:33:17, 2] nmbd/nmbd_subnetdb.c:make_subnet(144)
  making subnet name:UNICAST_SUBNET Broadcast address:192.168.1.100 Subnet
mask:192.168.1.100
[2009/06/05 17:33:17, 2] nmbd/nmbd_subnetdb.c:make_subnet(144)
  making subnet name:REMOTE_BROADCAST_SUBNET Broadcast address:0.0.0.0 Subnet
mask:0.0.0.0
[2009/06/05 17:33:17, 2] nmbd/nmbd_subnetdb.c:make_subnet(144)
  making subnet name:WINS_SERVER_SUBNET Broadcast address:0.0.0.0 Subnet
mask:0.0.0.0
[2009/06/05 17:33:17, 2] nmbd/nmbd_lmhosts.c:load_lmhosts_file(41)
  load_lmhosts_file: Can't open lmhosts file /etc/samba/lmhosts. Error was
No such file or directory
[2009/06/05 17:33:17, 3] nmbd/nmbd.c:main(802)
  Loaded hosts file /etc/samba/lmhosts
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name *<00> with first IP 192.168.1.100
ttl=0 nb_flags=60 to subnet WINS_SERVER_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name *<20> with first IP 192.168.1.100
ttl=0 nb_flags=60 to subnet WINS_SERVER_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP
192.168.1.100 ttl=0 nb_flags=60 to subnet WINS_SERVER_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP
192.168.1.100 ttl=0 nb_flags=60 to subnet WINS_SERVER_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name UBUNTU<03> with first IP
192.168.1.100 ttl=259053 nb_flags=66 to subnet WINS_SERVER_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name UBUNTU<20> with first IP
192.168.1.100 ttl=259053 nb_flags=66 to subnet WINS_SERVER_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name WORKGROUP<1b> with first IP
192.168.1.100 ttl=259053 nb_flags=64 to subnet WINS_SERVER_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name WORKGROUP<1c> with first IP
192.168.1.100 ttl=259053 nb_flags=e4 to subnet WINS_SERVER_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name WORKGROUP<00> with first IP
255.255.255.255 ttl=259053 nb_flags=e4 to subnet WINS_SERVER_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name UBUNTU<00> with first IP
192.168.1.100 ttl=259053 nb_flags=66 to subnet WINS_SERVER_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name WORKGROUP<1e> with first IP
255.255.255.255 ttl=259053 nb_flags=e4 to subnet WINS_SERVER_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name *<00> with first IP 192.168.1.100
ttl=0 nb_flags=60 to subnet 192.168.1.100
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name *<20> with first IP 192.168.1.100
ttl=0 nb_flags=60 to subnet 192.168.1.100
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP
192.168.1.100 ttl=0 nb_flags=60 to subnet 192.168.1.100
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP
192.168.1.100 ttl=0 nb_flags=60 to subnet 192.168.1.100
[2009/06/05 17:33:17, 3]
nmbd/nmbd_workgroupdb.c:initiate_myworkgroup_startup(245)
  initiate_myworkgroup_startup: preferred master startup for workgroup WORKGROUP
on subnet 192.168.1.100
[2009/06/05 17:33:17, 3]
nmbd/nmbd_serverlistdb.c:create_server_on_workgroup(157)
  create_server_on_workgroup: Created server entry UBUNTU of type 40819a0b
(ubuntu server (Samba, Ubuntu)) on workgroup WORKGROUP.
[2009/06/05 17:33:17, 3]
nmbd/nmbd_workgroupdb.c:initiate_myworkgroup_startup(265)
  initiate_myworkgroup_startup: Added server name entry UBUNTU on subnet
192.168.1.100
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name *<00> with first IP 192.168.1.100
ttl=0 nb_flags=60 to subnet UNICAST_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name *<20> with first IP 192.168.1.100
ttl=0 nb_flags=60 to subnet UNICAST_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP
192.168.1.100 ttl=0 nb_flags=60 to subnet UNICAST_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP
192.168.1.100 ttl=0 nb_flags=60 to subnet UNICAST_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name UBUNTU<20> with first IP
192.168.1.100 ttl=259200 nb_flags=64 to subnet UNICAST_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name UBUNTU<03> with first IP
192.168.1.100 ttl=259200 nb_flags=64 to subnet UNICAST_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name UBUNTU<00> with first IP
192.168.1.100 ttl=259200 nb_flags=64 to subnet UNICAST_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name WORKGROUP<00> with first IP
192.168.1.100 ttl=259200 nb_flags=e4 to subnet UNICAST_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name WORKGROUP<1e> with first IP
192.168.1.100 ttl=259200 nb_flags=e4 to subnet UNICAST_SUBNET
[2009/06/05 17:33:17, 3]
nmbd/nmbd_serverlistdb.c:create_server_on_workgroup(157)
  create_server_on_workgroup: Created server entry UBUNTU of type 40819a0b
(ubuntu server (Samba, Ubuntu)) on workgroup WORKGROUP.
[2009/06/05 17:33:17, 3]
nmbd/nmbd_workgroupdb.c:initiate_myworkgroup_startup(265)
  initiate_myworkgroup_startup: Added server name entry UBUNTU on subnet
UNICAST_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name *<00> with first IP 192.168.1.100
ttl=0 nb_flags=60 to subnet UNICAST_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name *<20> with first IP 192.168.1.100
ttl=0 nb_flags=60 to subnet UNICAST_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP
192.168.1.100 ttl=0 nb_flags=60 to subnet UNICAST_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP
192.168.1.100 ttl=0 nb_flags=60 to subnet UNICAST_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name *<00> with first IP 192.168.1.100
ttl=0 nb_flags=60 to subnet REMOTE_BROADCAST_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name *<20> with first IP 192.168.1.100
ttl=0 nb_flags=60 to subnet REMOTE_BROADCAST_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP
192.168.1.100 ttl=0 nb_flags=60 to subnet REMOTE_BROADCAST_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP
192.168.1.100 ttl=0 nb_flags=60 to subnet REMOTE_BROADCAST_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_sendannounce.c:send_host_announcement(208)
  send_host_announcement: type 819a0b for host UBUNTU on subnet 192.168.1.100
for workgroup WORKGROUP
[2009/06/05 17:33:17, 0] nmbd/nmbd_logonnames.c:add_logon_names(163)
  add_domain_logon_names:
  Attempting to become logon server for workgroup WORKGROUP on subnet
192.168.1.100
[2009/06/05 17:33:17, 2] nmbd/nmbd_logonnames.c:become_logon_server(136)
  become_logon_server: Atempting to become logon server for workgroup WORKGROUP
on subnet 192.168.1.100
[2009/06/05 17:33:17, 3] nmbd/nmbd_logonnames.c:become_logon_server(139)
  become_logon_server: go to first stage: register WORKGROUP<1c> name
[2009/06/05 17:33:17, 0] nmbd/nmbd_logonnames.c:add_logon_names(163)
  add_domain_logon_names:
  Attempting to become logon server for workgroup WORKGROUP on subnet
UNICAST_SUBNET
[2009/06/05 17:33:17, 2] nmbd/nmbd_logonnames.c:become_logon_server(136)
  become_logon_server: Atempting to become logon server for workgroup WORKGROUP
on subnet UNICAST_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_logonnames.c:become_logon_server(139)
  become_logon_server: go to first stage: register WORKGROUP<1c> name
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name WORKGROUP<1c> with first IP
192.168.1.100 ttl=259200 nb_flags=e4 to subnet UNICAST_SUBNET
[2009/06/05 17:33:17, 0]
nmbd/nmbd_become_dmb.c:become_domain_master_browser_wins(335)
  become_domain_master_browser_wins:
  Attempting to become domain master browser on workgroup WORKGROUP, subnet
UNICAST_SUBNET.
[2009/06/05 17:33:17, 0]
nmbd/nmbd_become_dmb.c:become_domain_master_browser_wins(349)
  become_domain_master_browser_wins: querying WINS server from IP 192.168.1.100
for domain master browser name WORKGROUP<1b> on workgroup WORKGROUP
[2009/06/05 17:33:17, 3]
nmbd/nmbd_winsserver.c:wins_process_name_query_request(1892)
  wins_process_name_query: name query for name WORKGROUP<1b> from IP
192.168.1.100
[2009/06/05 17:33:17, 3]
nmbd/nmbd_winsserver.c:wins_process_name_query_request(1944)
  wins_process_name_query: name query for name WORKGROUP<1b> returning
first IP 192.168.1.100.
[2009/06/05 17:33:17, 3]
nmbd/nmbd_become_dmb.c:become_domain_master_query_success(222)
  become_domain_master_query_success():
  Our address (192.168.1.100) returned in query for name WORKGROUP<1b>
(domain master browser name) on subnet UNICAST_SUBNET.
  Continuing with domain master code.
[2009/06/05 17:33:17, 2] nmbd/nmbd_become_dmb.c:become_domain_master_stage1(181)
  become_domain_master_stage1: Becoming domain master browser for workgroup
WORKGROUP on subnet UNICAST_SUBNET
[2009/06/05 17:33:17, 3] nmbd/nmbd_become_dmb.c:become_domain_master_stage1(190)
  become_domain_master_stage1: go to first stage: register <1b> name
[2009/06/05 17:33:17, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name WORKGROUP<1b> with first IP
192.168.1.100 ttl=259200 nb_flags=64 to subnet UNICAST_SUBNET
[2009/06/05 17:33:17, 3]
nmbd/nmbd_winsserver.c:wins_process_multihomed_name_registration_request(1520)
  wins_process_multihomed_name_registration_request: name registration for name
UBUNTU<20> IP 192.168.1.100
[2009/06/05 17:33:17, 3]
nmbd/nmbd_winsserver.c:wins_process_multihomed_name_registration_request(1520)
  wins_process_multihomed_name_registration_request: name registration for name
UBUNTU<03> IP 192.168.1.100
[2009/06/05 17:33:17, 3]
nmbd/nmbd_winsserver.c:wins_process_multihomed_name_registration_request(1520)
  wins_process_multihomed_name_registration_request: name registration for name
UBUNTU<00> IP 192.168.1.100
[2009/06/05 17:33:17, 3]
nmbd/nmbd_winsserver.c:wins_process_name_registration_request(1138)
  wins_process_name_registration_request: Group name registration for name
WORKGROUP<00> IP 192.168.1.100
[2009/06/05 17:33:17, 3]
nmbd/nmbd_winsserver.c:wins_process_name_registration_request(1222)
  wins_process_name_registration_request: Adding IP 255.255.255.255 to group
name WORKGROUP<00>.
[2009/06/05 17:33:17, 3]
nmbd/nmbd_winsserver.c:wins_process_name_registration_request(1138)
  wins_process_name_registration_request: Group name registration for name
WORKGROUP<1e> IP 192.168.1.100
[2009/06/05 17:33:17, 3]
nmbd/nmbd_winsserver.c:wins_process_name_registration_request(1222)
  wins_process_name_registration_request: Adding IP 255.255.255.255 to group
name WORKGROUP<1e>.
[2009/06/05 17:33:17, 3]
nmbd/nmbd_winsserver.c:wins_process_name_registration_request(1138)
  wins_process_name_registration_request: Group name registration for name
WORKGROUP<1c> IP 192.168.1.100
[2009/06/05 17:33:17, 3]
nmbd/nmbd_winsserver.c:wins_process_name_registration_request(1222)
  wins_process_name_registration_request: Adding IP 192.168.1.100 to group name
WORKGROUP<1c>.
[2009/06/05 17:33:17, 0] nmbd/nmbd_logonnames.c:become_logon_server_success(124)
  become_logon_server_success: Samba is now a logon server for workgroup
WORKGROUP on subnet UNICAST_SUBNET
[2009/06/05 17:33:17, 3]
nmbd/nmbd_winsserver.c:wins_process_multihomed_name_registration_request(1520)
  wins_process_multihomed_name_registration_request: name registration for name
WORKGROUP<1b> IP 192.168.1.100
[2009/06/05 17:33:17, 0] nmbd/nmbd_become_dmb.c:become_domain_master_stage2(113)
  *****
  
  Samba server UBUNTU is now a domain master browser for workgroup WORKGROUP on
subnet UNICAST_SUBNET
  
  *****
[2009/06/05 17:33:17, 0]
nmbd/nmbd_become_dmb.c:become_domain_master_browser_bcast(290)
  become_domain_master_browser_bcast:
  Attempting to become domain master browser on workgroup WORKGROUP on subnet
192.168.1.100
[2009/06/05 17:33:17, 0]
nmbd/nmbd_become_dmb.c:become_domain_master_browser_bcast(303)
  become_domain_master_browser_bcast: querying subnet 192.168.1.100 for domain
master browser on workgroup WORKGROUP
[2009/06/05 17:33:17, 3]
nmbd/nmbd_winsserver.c:wins_process_name_query_request(1892)
  wins_process_name_query: name query for name *<1b> from IP 192.168.1.100
[2009/06/05 17:33:21, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name UBUNTU<20> with first IP
192.168.1.100 ttl=0 nb_flags=60 to subnet 192.168.1.100
[2009/06/05 17:33:21, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name UBUNTU<03> with first IP
192.168.1.100 ttl=0 nb_flags=60 to subnet 192.168.1.100
[2009/06/05 17:33:21, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name UBUNTU<00> with first IP
192.168.1.100 ttl=0 nb_flags=60 to subnet 192.168.1.100
[2009/06/05 17:33:21, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name WORKGROUP<00> with first IP
192.168.1.100 ttl=0 nb_flags=e0 to subnet 192.168.1.100
[2009/06/05 17:33:21, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name WORKGROUP<1e> with first IP
192.168.1.100 ttl=0 nb_flags=e0 to subnet 192.168.1.100
[2009/06/05 17:33:21, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name WORKGROUP<1c> with first IP
192.168.1.100 ttl=0 nb_flags=e0 to subnet 192.168.1.100
[2009/06/05 17:33:21, 0] nmbd/nmbd_logonnames.c:become_logon_server_success(124)
  become_logon_server_success: Samba is now a logon server for workgroup
WORKGROUP on subnet 192.168.1.100
[2009/06/05 17:33:21, 2] nmbd/nmbd_become_dmb.c:become_domain_master_stage1(181)
  become_domain_master_stage1: Becoming domain master browser for workgroup
WORKGROUP on subnet 192.168.1.100
[2009/06/05 17:33:21, 3] nmbd/nmbd_become_dmb.c:become_domain_master_stage1(190)
  become_domain_master_stage1: go to first stage: register <1b> name
[2009/06/05 17:33:21, 3] nmbd/nmbd_elections.c:check_elections(366)
  check_elections: >>> Starting election for workgroup WORKGROUP on
subnet 192.168.1.100 <<<
[2009/06/05 17:33:23, 3] nmbd/nmbd_serverlistdb.c:write_browse_list(419)
  write_browse_list: Wrote browse list into file /var/cache/samba/browse.dat
[2009/06/05 17:33:23, 2] nmbd/nmbd_elections.c:send_election_dgram(41)
  send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet
192.168.1.100
[2009/06/05 17:33:25, 2] nmbd/nmbd_elections.c:send_election_dgram(41)
  send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet
192.168.1.100
[2009/06/05 17:33:25, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name WORKGROUP<1b> with first IP
192.168.1.100 ttl=0 nb_flags=60 to subnet 192.168.1.100
[2009/06/05 17:33:25, 0] nmbd/nmbd_become_dmb.c:become_domain_master_stage2(113)
  *****
  
  Samba server UBUNTU is now a domain master browser for workgroup WORKGROUP on
subnet 192.168.1.100
  
  *****
[2009/06/05 17:33:28, 2] nmbd/nmbd_elections.c:send_election_dgram(41)
  send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet
192.168.1.100
[2009/06/05 17:33:28, 3] nmbd/nmbd_serverlistdb.c:write_browse_list(419)
  write_browse_list: Wrote browse list into file /var/cache/samba/browse.dat
[2009/06/05 17:33:30, 2] nmbd/nmbd_elections.c:send_election_dgram(41)
  send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet
192.168.1.100
[2009/06/05 17:33:32, 2] nmbd/nmbd_elections.c:send_election_dgram(41)
  send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet
192.168.1.100
[2009/06/05 17:33:32, 2] nmbd/nmbd_elections.c:run_elections(204)
  run_elections: >>> Won election for workgroup WORKGROUP on subnet
192.168.1.100 <<<
[2009/06/05 17:33:32, 2] nmbd/nmbd_become_lmb.c:become_local_master_browser(537)
  become_local_master_browser: Starting to become a master browser for workgroup
WORKGROUP on subnet 192.168.1.100
[2009/06/05 17:33:32, 3] nmbd/nmbd_become_lmb.c:become_local_master_browser(539)
  become_local_master_browser: first stage - attempt to register
^1^2__MSBROWSE__^2^1
[2009/06/05 17:33:32, 3] nmbd/nmbd_serverlistdb.c:write_browse_list(419)
  write_browse_list: Wrote browse list into file /var/cache/samba/browse.dat
[2009/06/05 17:33:36, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name __MSBROWSE__<01> with first IP
192.168.1.100 ttl=0 nb_flags=e0 to subnet 192.168.1.100
[2009/06/05 17:33:36, 3] nmbd/nmbd_become_lmb.c:become_local_master_stage1(452)
  become_local_master_stage1: go to stage 2: register the WORKGROUP<1d>
name.
[2009/06/05 17:33:36, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name __MSBROWSE__<01> with first IP
192.168.1.100 ttl=0 nb_flags=e0 to subnet UNICAST_SUBNET
[2009/06/05 17:33:40, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name WORKGROUP<1d> with first IP
192.168.1.100 ttl=0 nb_flags=60 to subnet 192.168.1.100
[2009/06/05 17:33:40, 3] nmbd/nmbd_become_lmb.c:become_local_master_stage2(353)
  become_local_master_stage2: registered as master browser for workgroup
WORKGROUP on subnet 192.168.1.100
[2009/06/05 17:33:40, 3] nmbd/nmbd_sendannounce.c:broadcast_announce_request(69)
  broadcast_announce_request: sending announce request for workgroup WORKGROUP
to subnet 192.168.1.100
[2009/06/05 17:33:40, 3] nmbd/nmbd_namelistdb.c:add_name_to_subnet(247)
  add_name_to_subnet: Added netbios name WORKGROUP<1d> with first IP
192.168.1.100 ttl=0 nb_flags=60 to subnet UNICAST_SUBNET
[2009/06/05 17:33:40, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
  *****
  
  Samba name server UBUNTU is now a local master browser for workgroup WORKGROUP
on subnet 192.168.1.100
  
  *****
[2009/06/05 17:33:40, 3]
nmbd/nmbd_sendannounce.c:send_local_master_announcement(166)
  send_local_master_announcement: type 8c9b0b for name UBUNTU on subnet
192.168.1.100 for workgroup WORKGROUP
[2009/06/05 17:33:40, 3]
nmbd/nmbd_sendannounce.c:send_workgroup_announcement(185)
  send_workgroup_announcement: on subnet 192.168.1.100 for workgroup WORKGROUP
[2009/06/05 17:33:40, 2]
nmbd/nmbd_browsesync.c:announce_local_master_browser_to_domain_master_browser(108)
  announce_local_master_browser_to_domain_master_browser:
  We are both a domain and a local master browser for workgroup WORKGROUP.  Do
not announce to ourselves.
[2009/06/05 17:33:40, 2] nmbd/nmbd_browsesync.c:sync_with_dmb(152)
  sync_with_dmb:
  Initiating sync with domain master browser UBUNTU<20> at IP
192.168.1.100 for workgroup WORKGROUP
[2009/06/05 17:34:00, 3] nmbd/nmbd_serverlistdb.c:write_browse_list(419)
  write_browse_list: Wrote browse list into file /var/cache/samba/browse.dat
-------------- next part --------------
[2009/06/05 17:33:17, 0] smbd/server.c:main(944)
  smbd version 3.0.28a started.
  Copyright Andrew Tridgell and the Samba Team 1992-2008
[2009/06/05 17:33:17, 2] param/loadparm.c:do_section(3819)
  Processing section "[homes]"
[2009/06/05 17:33:17, 2] param/loadparm.c:do_section(3819)
  Processing section "[Profiles]"
[2009/06/05 17:33:17, 2] param/loadparm.c:do_section(3819)
  Processing section "[printers]"
[2009/06/05 17:33:17, 2] param/loadparm.c:do_section(3819)
  Processing section "[print$]"
[2009/06/05 17:33:17, 2] param/loadparm.c:do_section(3819)
  Processing section "[tmp]"
[2009/06/05 17:33:17, 3] param/loadparm.c:lp_add_ipc(2733)
  adding IPC service
[2009/06/05 17:33:17, 3] printing/pcap.c:pcap_cache_reload(117)
  reloading printcap cache
[2009/06/05 17:33:17, 3] printing/pcap.c:pcap_cache_reload(223)
  reload status: ok
[2009/06/05 17:33:17, 3] param/loadparm.c:lp_add_printer(2771)
  adding printer service HP_Photosmart_C3100_series_USB_1
[2009/06/05 17:33:17, 2] lib/interface.c:add_interface(81)
  added interface ip=192.168.1.100 bcast=192.168.1.255 nmask=255.255.255.0
[2009/06/05 17:33:17, 3] smbd/server.c:main(982)
  loaded services
[2009/06/05 17:33:17, 3] smbd/server.c:main(997)
  Becoming a daemon.
[2009/06/05 17:33:17, 2] lib/tallocmsg.c:register_msg_pool_usage(105)
  Registered MSG_REQ_POOL_USAGE
[2009/06/05 17:33:17, 2] lib/dmallocmsg.c:register_dmalloc_msgs(75)
  Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2009/06/05 17:33:17, 2] lib/smbldap_util.c:smbldap_search_domain_info(256)
  smbldap_search_domain_info: Searching
for:[(&(objectClass=sambaDomain)(sambaDomainName=WORKGROUP))]
[2009/06/05 17:33:17, 2] lib/smbldap.c:smbldap_open_connection(786)
  smbldap_open_connection: connection opened
[2009/06/05 17:33:17, 3] lib/smbldap.c:smbldap_connect_system(997)
  ldap_connect_system: succesful connection to the LDAP server
[2009/06/05 17:33:17, 3] smbd/sec_ctx.c:push_sec_ctx(208)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2009/06/05 17:33:17, 3] smbd/uid.c:push_conn_ctx(358)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2009/06/05 17:33:17, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2009/06/05 17:33:17, 3] smbd/sec_ctx.c:push_sec_ctx(208)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2
[2009/06/05 17:33:17, 3] smbd/uid.c:push_conn_ctx(358)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 1
[2009/06/05 17:33:17, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2
[2009/06/05 17:33:17, 2] passdb/pdb_ldap.c:init_sam_from_ldap(545)
  init_sam_from_ldap: Entry found for user: root
[2009/06/05 17:33:17, 3] smbd/sec_ctx.c:push_sec_ctx(208)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 3
[2009/06/05 17:33:17, 3] smbd/uid.c:push_conn_ctx(358)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 2
[2009/06/05 17:33:17, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 3
[2009/06/05 17:33:17, 3] smbd/sec_ctx.c:pop_sec_ctx(356)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 2
[2009/06/05 17:33:17, 3] smbd/sec_ctx.c:pop_sec_ctx(356)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
[2009/06/05 17:33:17, 3] smbd/sec_ctx.c:pop_sec_ctx(356)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2009/06/05 17:33:17, 3] smbd/sec_ctx.c:push_sec_ctx(208)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2009/06/05 17:33:17, 3] smbd/uid.c:push_conn_ctx(358)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2009/06/05 17:33:17, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2009/06/05 17:33:17, 3] smbd/sec_ctx.c:pop_sec_ctx(356)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2009/06/05 17:33:17, 3] smbd/sec_ctx.c:push_sec_ctx(208)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2009/06/05 17:33:17, 3] smbd/uid.c:push_conn_ctx(358)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2009/06/05 17:33:17, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2009/06/05 17:33:17, 2] passdb/pdb_ldap.c:init_group_from_ldap(2167)
  init_group_from_ldap: Entry found for group: 544
[2009/06/05 17:33:17, 3] smbd/sec_ctx.c:pop_sec_ctx(356)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2009/06/05 17:33:17, 3] passdb/lookup_sid.c:store_gid_sid_cache(1151)
  store_gid_sid_cache: gid 544 in cache -> S-1-5-32-544
[2009/06/05 17:33:17, 3] smbd/sec_ctx.c:push_sec_ctx(208)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2009/06/05 17:33:17, 3] smbd/uid.c:push_conn_ctx(358)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2009/06/05 17:33:17, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2009/06/05 17:33:17, 3] smbd/sec_ctx.c:pop_sec_ctx(356)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2009/06/05 17:33:17, 3] smbd/sec_ctx.c:push_sec_ctx(208)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2009/06/05 17:33:17, 3] smbd/uid.c:push_conn_ctx(358)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2009/06/05 17:33:17, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2009/06/05 17:33:17, 3] smbd/sec_ctx.c:pop_sec_ctx(356)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2009/06/05 17:33:17, 3] lib/privileges.c:get_privileges(261)
  get_privileges: No privileges assigned to SID
[S-1-5-21-3529111891-2609867799-3129462049-500]
[2009/06/05 17:33:17, 3] lib/privileges.c:get_privileges(261)
  get_privileges: No privileges assigned to SID [S-1-5-2]
[2009/06/05 17:33:17, 3] lib/privileges.c:get_privileges(261)
  get_privileges: No privileges assigned to SID [S-1-5-11]
[2009/06/05 17:33:17, 3] lib/util_seaccess.c:se_access_check(250)
[2009/06/05 17:33:17, 3] lib/util_seaccess.c:se_access_check(251)
  se_access_check: user sid is S-1-5-21-3529111891-2609867799-3129462049-500
  se_access_check: also S-1-5-32-544
  se_access_check: also S-1-1-0
  se_access_check: also S-1-5-2
  se_access_check: also S-1-5-11
[2009/06/05 17:33:17, 3] lib/util_seaccess.c:se_access_check(250)
[2009/06/05 17:33:17, 3] lib/util_seaccess.c:se_access_check(251)
  se_access_check: user sid is S-1-5-21-3529111891-2609867799-3129462049-500
  se_access_check: also S-1-5-32-544
  se_access_check: also S-1-1-0
  se_access_check: also S-1-5-2
  se_access_check: also S-1-5-11
[2009/06/05 17:33:17, 3] lib/util_seaccess.c:se_access_check(250)
[2009/06/05 17:33:17, 3] lib/util_seaccess.c:se_access_check(251)
  se_access_check: user sid is S-1-5-21-3529111891-2609867799-3129462049-500
  se_access_check: also S-1-5-32-544
  se_access_check: also S-1-1-0
  se_access_check: also S-1-5-2
  se_access_check: also S-1-5-11
[2009/06/05 17:33:17, 3] lib/util_seaccess.c:se_access_check(250)
[2009/06/05 17:33:17, 3] lib/util_seaccess.c:se_access_check(251)
  se_access_check: user sid is S-1-5-21-3529111891-2609867799-3129462049-500
  se_access_check: also S-1-5-32-544
  se_access_check: also S-1-1-0
  se_access_check: also S-1-5-2
  se_access_check: also S-1-5-11
[2009/06/05 17:33:17, 3] lib/util_seaccess.c:se_access_check(250)
[2009/06/05 17:33:17, 3] lib/util_seaccess.c:se_access_check(251)
  se_access_check: user sid is S-1-5-21-3529111891-2609867799-3129462049-500
  se_access_check: also S-1-5-32-544
  se_access_check: also S-1-1-0
  se_access_check: also S-1-5-2
  se_access_check: also S-1-5-11
[2009/06/05 17:33:17, 3] lib/util_seaccess.c:se_access_check(250)
[2009/06/05 17:33:17, 3] lib/util_seaccess.c:se_access_check(251)
  se_access_check: user sid is S-1-5-21-3529111891-2609867799-3129462049-500
  se_access_check: also S-1-5-32-544
  se_access_check: also S-1-1-0
  se_access_check: also S-1-5-2
  se_access_check: also S-1-5-11
[2009/06/05 17:33:17, 3] lib/util_seaccess.c:se_access_check(250)
[2009/06/05 17:33:17, 3] lib/util_seaccess.c:se_access_check(251)
  se_access_check: user sid is S-1-5-21-3529111891-2609867799-3129462049-500
  se_access_check: also S-1-5-32-544
  se_access_check: also S-1-1-0
  se_access_check: also S-1-5-2
  se_access_check: also S-1-5-11
[2009/06/05 17:33:17, 3] lib/util_seaccess.c:se_access_check(250)
[2009/06/05 17:33:17, 3] lib/util_seaccess.c:se_access_check(251)
  se_access_check: user sid is S-1-5-21-3529111891-2609867799-3129462049-500
  se_access_check: also S-1-5-32-544
  se_access_check: also S-1-1-0
  se_access_check: also S-1-5-2
  se_access_check: also S-1-5-11
[2009/06/05 17:33:17, 3] lib/util_seaccess.c:se_access_check(250)
[2009/06/05 17:33:17, 3] lib/util_seaccess.c:se_access_check(251)
  se_access_check: user sid is S-1-5-21-3529111891-2609867799-3129462049-500
  se_access_check: also S-1-5-32-544
  se_access_check: also S-1-1-0
  se_access_check: also S-1-5-2
  se_access_check: also S-1-5-11
[2009/06/05 17:33:17, 3] smbd/sec_ctx.c:push_sec_ctx(208)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2009/06/05 17:33:17, 3] smbd/uid.c:push_conn_ctx(358)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2009/06/05 17:33:17, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2009/06/05 17:33:17, 3] smbd/sec_ctx.c:pop_sec_ctx(356)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
-------------- next part --------------
#======================= Global Settings ======================
[global]
## Browsing/Identification ###
# Change this to the workgroup/NT-domain name your Samba server will part of
   name resolve order = lmhosts wins bcast host
   workgroup = WORKGROUP
# server string is the equivalent of the NT Description field
   server string = %h server (Samba, Ubuntu)
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
   wins support = true
# This will prevent nmbd to search for NetBIOS names through DNS.
   dns proxy = no
   os level = 35
#### Debugging/Accounting ####
# This tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba/log.%m
   log level = 3
# Cap the size of the individual log files (in KiB).
   max log size = 1000
# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.
   syslog = 0
# Do something sensible when Samba crashes: mail the admin a backtrace
   panic action = /usr/share/samba/panic-action %d
####### Authentication #######
# "security = user" is always a good idea. This will require a Unix
account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
   security = user
# You may wish to use password encryption.  See the section on
# 'encrypt passwords' in the smb.conf(5) manpage before enabling.
   encrypt passwords = true
# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.  
#   passdb backend = tdbsam
#   Changed to ldapsam backend
passdb backend = ldapsam:ldap://localhost/
obey pam restrictions = yes
#######################################################################
#
#       Begin: Custom LDAP Entries
#
ldap admin dn = cn=admin,dc=imparisystems,dc=local
ldap suffix = dc=imparisystems,dc=local
ldap group suffix = ou=Groups
ldap user suffix = ou=Users
ldap machine suffix = ou=Computers
ldap idmap suffix = ou=Idmap
; Do ldap passwd sync
ldap passwd sync = Yes
# Samba and the LDAP server are on the same server so it does not need 
# to be encrypted
ldap ssl = no
passwd program = /usr/sbin/smbldap-passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n
*all*authentication*tokens*updated*
add user script = /usr/sbin/smbldap-useradd -m "%u"
ldap delete dn = Yes
delete user script = /usr/sbin/smbldap-userdel "%u"
add machine script = /usr/sbin/smbldap-useradd -w "%u"
add group script = /usr/sbin/smbldap-groupadd -p "%g"
delete group script = /usr/sbin/smbldap-groupdel "%g"
add user to group script = /usr/sbin/smbldap-groupmod -m "%u"
"%g"
delete user from group script = /usr/sbin/smbldap-groupmod -x "%u"
"%g"
set primary group script = /usr/sbin/smbldap-usermod -g "%g"
"%u"
#
#       End: Custom LDAP Entries
#
#####################################################
#  Commented out
;   invalid users = root
# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
   unix password sync = no
# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
   pam password change = yes
# This option controls how nsuccessful authentication attempts are mapped 
# to anonymous connections
   map to guest = bad user
########## Domains ###########
# Is this machine able to authenticate users. Both PDC and BDC
# must have this setting enabled. If you are the BDC you must
# change the 'domain master' setting to no
#
   domain logons = yes
#
# The following setting only takes effect if 'domain logons' is set
# It specifies the location of the user's profile directory
# from the client point of view)
# The following required a [profiles] share to be setup on the
# samba server (see below)
   logon path = \\%N\profiles\%U
# Another common choice is storing the profile in the user's home directory
;   logon path = \\%N\%U\profile
# The following setting only takes effect if 'domain logons' is set
# It specifies the location of a user's home directory (from the client
# point of view)
   logon drive = H:
   logon home = \\%N\%U
# The following setting only takes effect if 'domain logons' is set
# It specifies the script to run during logon. The script must be stored
# in the [netlogon] share
# NOTE: Must be store in 'DOS' file format convention
   logon script = logon.cmd
# This is required for Windows XP client ..
   server signing = auto
   server schannel = Auto
# This allows Unix users to be created on the domain controller via the SAMR
# RPC pipe.  The example command creates a user account with a disabled Unix
# password; please adapt to your needs
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos
"" %u
########## Printing ##########
# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
   load printers = yes
# lpr(ng) printing. You may wish to override the location of the
# printcap file
;   printing = bsd
;   printcap name = /etc/printcap
# CUPS printing.  See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
   printing = cups
   printcap name = cups
############ Misc ############
# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include = /home/samba/etc/smb.conf.%m
# Most people will find that this option gives better performance.
# See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/speed.html
# for details
# You may want to add the following on a Linux system:
#         SO_RCVBUF=8192 SO_SNDBUF=8192
   socket options = TCP_NODELAY
# The following parameter is useful only if you have the linpopup package
# installed. The samba maintainer and the linpopup maintainer are
# working to ease installation and configuration of linpopup and samba.
;   message command = /bin/sh -c '/usr/bin/linpopup "%f"
"%m" %s; rm %s' &
# Domain Master specifies Samba to be the Domain Master Browser. If this
# machine will be configured as a BDC (a secondary logon server), you
# must set this to 'no'; otherwise, the default behavior is recommended.
   domain master = auto
# Some defaults for winbind (make sure you're not using the ranges
# for something else.)
;   idmap uid = 10000-20000
;   idmap gid = 10000-20000
;   template shell = /bin/bash
# The following was the default behaviour in sarge,
# but samba upstream reverted the default because it might induce
# performance issues in large organizations.
# See Debian bug #368251 for some of the consequences of *not*
# having this setting and smb.conf(5) for details.
;   winbind enum groups = yes
;   winbind enum users = yes
# Setup usershare options to enable non-root users to share folders
# with the net usershare command.
# Maximum number of usershare. 0 (default) means that usershare is disabled.
;   usershare max shares = 100
# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones
   usershare allow guests = yes
#======================= Share Definitions ======================
# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares.  This will share each
# user's home directory as \\server\username
[homes]
	comment = Home Directories
	browseable = no
# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
	read only = no
# By default, \\server\username shares can be connected to by anyone
# with access to the samba server.  Un-comment the following parameter
# to make sure that only "username" can connect to \\server\username
# This might need tweaking when using external authentication schemes
	valid users = %S
# 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 = /var/lib/samba/netlogon
;	guest ok = yes
;	browseable = no
# Un-comment the following and create the profiles directory to store
# users profiles (see the "logon path" option above)
# (you need to configure Samba to act as a domain controller too.)
# The path below should be writable by all users so that their
# profile directory may be created the first time they log on
[Profiles]
	comment = Users profiles
	path = /samba/profiles
	read only = no
	profile acls = yes
	browseable = no
[printers]
	comment = All Printers
	browseable = yes
	public = yes
	writable = yes
	admin users = root
	write list = root
	path = /var/spool/samba
	use client driver = yes
	printable = yes
	guest ok = yes
	create mask = 0600
# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
	comment = Printer Drivers
	path = /var/lib/samba/printers
	write list = root, @Administrators
	create mask = 0664
	directory mask = 0775
	admin users = root
# A sample share for sharing your CD-ROM with others.
;[cdrom]
;   comment = Samba server's CD-ROM
;   read only = yes
;   locking = no
;   path = /cdrom
;   guest ok = yes
# The next two parameters show how to auto-mount a CD-ROM when the
#	cdrom share is accesed. For this to work /etc/fstab must contain
#	an entry like this:
#
#       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0
#
# The CD-ROM gets unmounted automatically after the connection to the
#
# If you don't want to use auto-mounting/unmounting make sure the CD
#	is mounted on /cdrom
#
;   preexec = /bin/mount /cdrom
;   postexec = /bin/umount /cdrom
[tmp]
	public = yes
	path = /tmp
Jeremy Allison
2009-Jun-05  22:00 UTC
[Samba] I am so frustrated - Samba ports not opening and no error message
On Fri, Jun 05, 2009 at 05:40:20PM -0400, Matt Burkhardt wrote:> Okay - I've been plugging away and it got to the point that running > smbclient was returning information about an Alfresco install that I > never used, so I went ahead and deleted everything I could find on my > machine that said "alfresco". I then removed samba using apt-get from > the machine by typing > > apt-get remove --purge samba > > I deleted the /etc/samba directory and re-installed samba. > > So now I've made sure that DHCP, DNS and OpenLDAP are now working > correctly and I started to reconfigure Samba. I start it up and I look > at the log.smbd and log.nmbd files, don't see a single error message and > when I run nmap - there's nothing listening on the ports that Samba is > supposed to be using. I have no firewall set up and nothing between me > and the server. Here's showing that the daemons are running: > > ps -e | grep mb > 6984 ? 00:00:00 nmbd > 6986 ? 00:00:00 smbd > > Here's the results from nmap > > nmap ubuntu > > Starting Nmap 4.53 ( http://insecure.org ) at 2009-06-05 17:34 EDT > Interesting ports on 192.168.1.100: > Not shown: 1697 closed ports > PORT STATE SERVICE > 22/tcp open ssh > 53/tcp open domain > 80/tcp open http > 81/tcp open hosts2-ns > 82/tcp open xfer > 83/tcp open mit-ml-dev > 111/tcp open rpcbind > 389/tcp open ldap > 443/tcp open https > 631/tcp open ipp > 901/tcp open samba-swat > 3306/tcp open mysql > 5001/tcp open commplex-link > 5432/tcp open postgres > 8009/tcp open ajp13 > 8080/tcp open http-proxy > 10000/tcp open snet-sensor-mgmtThis ports list shows smbd is not binding to the external ports. smbd uses TCP 139 & 445. nmbd uses udp 137 and 138. Jeremy
Walter Mautner
2009-Jun-08  15:40 UTC
[Samba] I am so frustrated - Samba ports not opening and no error message
Am Freitag 05 Juni 2009 23:40:20 schrieb Matt Burkhardt:> Okay - I've been plugging away and it got to the point that running > smbclient was returning information about an Alfresco install that I > never used, so I went ahead and deleted everything I could find on my > machine that said "alfresco". I then removed samba using apt-get from > the machine by typing > > apt-get remove --purge samba > > I deleted the /etc/samba directory and re-installed samba. > > So now I've made sure that DHCP, DNS and OpenLDAP are now working > correctly and I started to reconfigure Samba. I start it up and I look > at the log.smbd and log.nmbd files, don't see a single error message and > when I run nmap - there's nothing listening on the ports that Samba is > supposed to be using. I have no firewall set up and nothing between me > and the server. Here's showing that the daemons are running: > > ps -e | grep mb > 6984 ? 00:00:00 nmbd > 6986 ? 00:00:00 smbd > > Here's the results from nmap > > nmap ubuntu >Is "ubuntu" equal to localhost or did you nmap remotely?> Starting Nmap 4.53 ( http://insecure.org ) at 2009-06-05 17:34 EDT > Interesting ports on 192.168.1.100: > Not shown: 1697 closed ports > PORT STATE SERVICE > 22/tcp open ssh > 53/tcp open domain > 80/tcp open http > 81/tcp open hosts2-ns > 82/tcp open xfer > 83/tcp open mit-ml-dev > 111/tcp open rpcbind > 389/tcp open ldap > 443/tcp open https > 631/tcp open ipp > 901/tcp open samba-swatThat's the only samba-related port I can find open ... You may try https://ubuntu:901 or uninstall the samba-swat package.> On a side note - I can't stop samba by running > > sudo /etc/init.d/samba stop > > It kills the nmbd daemon but not the smbd daemon >Can you strace -p<pid-of-samba-daemon> and look where it hangs? Interestingly, the attached logfiles don't show anything special. You might as well try to specify (man smb.conf) a "interfaces" global statement?