I thought I had Samba set up but ..... this is what I get: root@linux:/etc > smbclient -L localhost added interface ip=192.168.1.1 bcast=192.168.1.255 nmask=255.255.255.0 added interface ip=127.0.0.1 bcast=127.0.0.255 nmask=255.255.255.0 error connecting to 127.0.0.1:139 (Connection refused) Connection to localhost failed Any suggestions appreciated. Ed Harrison, broadcasting on ----/ / _ ---/ / (_)__ __ ____ __ --/ /__/ / _ \/ // /\ \/ / -/____/_/_//_/\_,_/ /_/\_\ by SuSE(7.1), Kernel 2.4.6, X 4.1 or Windows98 (running in vmware 2.0.4 for fun) PolarBarMailer 1.20 with IBM JDK 1.3.0
Two ideas: Is samba running? Check with ps aux|grep smbd or rcsamba status. rcsamba start, if it isn't Second, do you have 127.0.0.1 set up as an interface for samba? In swat, enter all the machine's interfaces in the "interfaces" box. If these fail, check /var/log/log.smb for any error messages regards Anders On Friday 24 August 2001 05:13, Ed Harrison wrote:
I thought I had Samba set up but .....
this is what I get:
root@linux:/etc > smbclient -L localhost added interface ip=192.168.1.1 bcast=192.168.1.255 nmask=255.255.255.0 added interface ip=127.0.0.1 bcast=127.0.0.255 nmask=255.255.255.0 error connecting to 127.0.0.1:139 (Connection refused) Connection to localhost failed
Any suggestions appreciated.
Ed Harrison, broadcasting on ----/ / _ ---/ / (_)__ __ ____ __ --/ /__/ / _ \/ // /\ \/ / -/____/_/_//_/\_,_/ /_/\_\ by SuSE(7.1), Kernel 2.4.6, X 4.1 or Windows98 (running in vmware 2.0.4 for fun) PolarBarMailer 1.20 with IBM JDK 1.3.0
** Reply to message from Anders Johansson
Two ideas: Is samba running? Check with ps aux|grep smbd or rcsamba status. rcsamba start, if it isn't
Yes, it was running; but until I tried this I wasn't sure. I'm not too sharp on this stuff yet.
Second, do you have 127.0.0.1 set up as an interface for samba? In swat, enter all the machine's interfaces in the "interfaces" box.
I had to change the interfaces to 192.168.1.0/24 127.0.0.0/24. Before I had a "1" at the end of each sequence and that gave me the error message: root@linux:/etc > tail /var/log/log.smb standard input is not a socket, assuming -D option [2001/08/24 00:12:56, 0] lib/util_sock.c:open_socket_in(863) bind failed on port 139 socket_addr=192.168.1.1 (Cannot assign requested address) So, I now know that you need the whole range for bind. Ed Harrison, broadcasting on ----/ / _ ---/ / (_)__ __ ____ __ --/ /__/ / _ \/ // /\ \/ / -/____/_/_//_/\_,_/ /_/\_\ by SuSE(7.1), Kernel 2.4.6, X 4.1 or Windows98 (running in vmware 2.0.4 for fun) PolarBarMailer 1.20 with IBM JDK 1.3.0
On Friday 24 August 2001 06:28, Ed Harrison wrote:
I had to change the interfaces to 192.168.1.0/24 127.0.0.0/24. Before I had a "1" at the end of each sequence and that gave me the error message:
root@linux:/etc > tail /var/log/log.smb standard input is not a socket, assuming -D option [2001/08/24 00:12:56, 0] lib/util_sock.c:open_socket_in(863) bind failed on port 139 socket_addr=192.168.1.1 (Cannot assign requested address)
So, I now know that you need the whole range for bind.
You don't actually. I'm using it as you did, with 192.168.1.2/24. With the netmask at 24, .0, .1 and .2 is the same thing. You have to make sure that .1 really is your ip, and that you're running as root. I have to correct two mistakes. In 7.2, for some ungodly reason, the default log file has changed name to log.smbd, and been moved to /var/lock/samba Also, the rc-script is rcsmb Anders
participants (2)
-
Anders Johansson
-
Ed Harrison