Re: [Samba] I am so frustrated - Samba ports not opening and no error message

2009-06-08 Thread Walter Mautner
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/tcpopen  ssh
 53/tcpopen  domain
 80/tcpopen  http
 81/tcpopen  hosts2-ns
 82/tcpopen  xfer
 83/tcpopen  mit-ml-dev
 111/tcp   open  rpcbind
 389/tcp   open  ldap
 443/tcp   open  https
 631/tcp   open  ipp
 901/tcp   open  samba-swat

That'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 -ppid-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?

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] I am so frustrated - Samba ports not opening and no error message

2009-06-05 Thread 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

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/tcpopen  ssh
53/tcpopen  domain
80/tcpopen  http
81/tcpopen  hosts2-ns
82/tcpopen  xfer
83/tcpopen  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
1/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
m...@imparisystems.com
(301) 682-7901
502 Fairview Avenue
Frederick, MD  21701
http://www.imparisystems.com 

[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 UBUNTU03 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 UBUNTU20 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 WORKGROUP1b with 

Re: [Samba] I am so frustrated - Samba ports not opening and no error message

2009-06-05 Thread Jeremy Allison
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/tcpopen  ssh
 53/tcpopen  domain
 80/tcpopen  http
 81/tcpopen  hosts2-ns
 82/tcpopen  xfer
 83/tcpopen  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
 1/tcp open  snet-sensor-mgmt

This ports list shows smbd is not binding to the external
ports. smbd uses TCP 139  445. nmbd uses udp 137 and 138.

Jeremy
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba