LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-25-2011, 12:00 PM   #1
mtlhd
Member
 
Registered: Sep 2007
Location: Florida
Distribution: Raspbian, Debian, CentOS, Ubuntu
Posts: 131

Rep: Reputation: 18
Unhappy Can not connect to Samba on Ubuntu 11.04


I have migrated a client's server from Ubuntu 8.04 to 11.04 (they wanted that instead of debian 6 or ubuntu server, despite my best efforts)

The only service still hanging in the balance is samba.
It refuses any connections to it and I can not figure out why.

Here is my conf file: (i noticed the interface line is commented out - eth0 is what the machine uses, it was commented out on the old machine and worked though)
Code:
[global]
   workgroup = WORKGROUP
   server string = %h server (Samba, Ubuntu)
   wins support = no
;   wins server = w.x.y.z
   dns proxy = no
   name resolve order = lmhosts host wins bcast
;   interfaces = 127.0.0.0/8 eth0
;   bind interfaces only = true
   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog only = no
   syslog = 2

   unix password sync = yes

# Do something sensible when Samba crashes: mail the admin a backtrace
   panic action = /usr/share/samba/panic-action %d
   security = user
   encrypt passwords = true
   passdb backend = tdbsam
# Below - obey pam restrictions = yes changed to no by IT Guy  18 March 2010 1129am
   obey pam restrictions = no
   guest account = nobody
   #invalid users = root
   map to guest = bad user
   socket options = TCP_NODELAY SO_RCVBUF=32767 SO_SNDBUF=32767

#======================= Share Definitions =======================
[homes]
   comment = Home Directories
   browseable = no
   read only = no
   create mask = 0775
   directory mask = 0775

# 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

[public]
        comment = Public Share
        browseable = yes
        read only = no
        create mask = 0775
        directory mask = 0775
        #path = /samba/public
        path = /home/public_share/public
        write list = user1 user2 user3
        valid users = user1 user2 user3
	max connections = 15
I also noticed this:
Code:
root@mail:/etc/init.d# start smbd
start: Job is already running: smbd
root@mail:/etc/init.d# chkconfig smbd
smbd  off
Can anyone see what is going wrong?

Thanks in advance.

-mtlhd

Last edited by mtlhd; 05-25-2011 at 12:03 PM. Reason: needed to add something-
 
Old 05-25-2011, 01:10 PM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,365

Rep: Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937
Is nmdb running?

I always run a wins server in the network. It appears you do not. You might try setting one up. Then you go into the other systems and define who the wins server is.

Have you installed swat? That is a very nice tool for doc, and problem determination.
 
Old 05-25-2011, 01:25 PM   #3
lcoronato
LQ Newbie
 
Registered: Jul 2009
Posts: 6

Rep: Reputation: 1
You can analyze the log file in /var/log/samba/, Is there some considerable error in logfile?
 
Old 05-25-2011, 01:56 PM   #4
mtlhd
Member
 
Registered: Sep 2007
Location: Florida
Distribution: Raspbian, Debian, CentOS, Ubuntu
Posts: 131

Original Poster
Rep: Reputation: 18
lcoronato -
output of log.smbd shows this quite often:

[2011/05/25 13:55:54.054313, 0] lib/util_sock.c:1441(get_peer_addr_internal)
getpeername failed. Error was Transport endpoint is not connected

and i see this from time to time too:

standard input is not a socket, assuming -D option

camorri -
it appears nmbd is running, I checked the log.nmbd file and saw this:

[2011/05/24 01:00:38.845407, 0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
*****

Samba name server MAIL is now a local master browser for workgroup WORKGROUP on subnet 192.168.10.2

*****

I forgot to mention, this server is also the DNS and DHCP server, didn't know if that affected anything or not.

Thank you both for replying.

-mtlhd

Last edited by mtlhd; 05-25-2011 at 02:08 PM. Reason: forgot to add something
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
windows 98 cannot connect to ubuntu samba shared file spikesync Linux - Newbie 6 03-08-2012 07:14 AM
how do i connect my blue tooth headset to Ubuntu, it is unable to connect. salfuser Linux - Hardware 2 01-12-2009 10:28 AM
Can't connect to samba share on windows, works via ubuntu Boffy Linux - Networking 1 06-27-2008 12:18 PM
windows XP crashed ran Ubuntu live CD want to connect using samba with linux laptop izquierdista Linux - Networking 3 03-20-2007 11:25 AM
Samba: can't connect to my local linux machine but can connect to windows. Royle Linux - Networking 3 01-18-2005 05:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration