LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Samba Issues (https://www.linuxquestions.org/questions/linux-newbie-8/samba-issues-68515/)

jetfanroy 06-27-2003 02:42 PM

Samba Issues
 
I am having a bit of problems getting the Smaba service to run on my Red Hat 9 install.

Forgive me if this topic has already been addressed....

The smb.log is as follows:

[2003/06/27 15:29:43, 0] lib/util_sock.c:open_socket_in(804)
bind failed on port 139 socket_addr = 0.0.0.0.
Error = Address already in use

and the smbstatus command yields:

Samba version 2.2.7a-security-rollup-fix
Service uid gid pid machine
----------------------------------------------

Failed to open byte range locking database
ERROR: Failed to initialise locking database
Can't initialise locking module - exiting

Any help would be gratly appreciated!!

david_ross 06-28-2003 12:30 PM

It sounds like somehtinng is already listenting to that port - (posibly samba is already running)

netstat -l --numeric-ports

and look for somehting listening on port 139

david_ross 06-28-2003 12:33 PM

sorry - just noticed I missed the "p":
netstat -lp --numeric-ports

cropcircle 06-28-2003 12:59 PM

Maybe another program is running on port 139? Do the following :

"su -"
"service smb stop"

What do you see if you enter the following commands :

"netstat -nlt"
"lsof -i"

jetfanroy 06-30-2003 10:19 AM

Thanks for all of the help -

Actually - there was another Samba server running - I have Vmware loaded and it was using that port - I actually modified the smb.conf file and added a socket address statement with the IP address of the actual interface under the interfaces section of the file.

This allowed the service to start correctly -
Then I had to disable my firewall to connect.

Thanks again for the help!!

XSIWILL 06-30-2003 11:40 PM

I'm having a simlar issue as well, when I run netstat -nlt I can see that it's listening for port 139 but when I try to connect to
127.0.0.1:901 I get a messages that reads Connection refused when trying to connect to that address.

I also notice that I don't have a swat file on /etc/xinetd.d
I am using RH 9.0 samba ver 2.2.7a-8.90

Thanks!

david_ross 07-01-2003 12:34 PM

With Redhat 9 you will need to install the samba-swat package:
ftp://fr.rpmfind.net/linux/redhat/9/...7.9.0.i386.rpm

XSIWILL 07-01-2003 04:31 PM

Thanks David! I also found that RH 9 includes it's own interface as well using redhat-config-samba

david_ross 07-01-2003 04:34 PM

Once you get used to it, editing the config file by hand is easy too. I can add a new share in the time it takes my browser to open and get to the right page :D

XSIWILL 07-01-2003 04:41 PM

Indeed, Thanks again for your assistance!

Turbo 07-29-2003 08:25 AM

I had the same problem but I downloaded the locking files and it is working now


All times are GMT -5. The time now is 11:06 AM.