Page 1 of 1

samba confusion

PostPosted: Tue Nov 01, 2005 3:31 pm
by Master of Reality
I really dont know why my samba server isnt working. When it to connect to it from another machine... or even from the same machine i get an error (using konqueror). And when trying to access it with smbclient it simply says connection failed.
In /var/log/samba.192.168.0.* it says "connection refused" from whichever IP i tried to connect from..
Heres my smb.conf
Any ideas what im missing or should check for?
Code: Select all
[global]
        dns proxy = no
        log file = /var/log/samba.%m
        load printers = no
        ldap ssl = No
        restrict anonymous = no
        max protocol = NT
        server string = Samba Server
        socket options = TCP_NODELAY
        workgroup = UNDERGROUND
        server signing = Auto
        domain master = no
        hosts allow = 192.168.0 127.
        security = share
        preferred master = no
        max log size = 50

[homes]
comment = Home Directories
browseable = yes
read only = no

[Music]
        writeable = yes
        path = /music


Oh yea, i used webmin to transfer over the user from /etc/passwd and set the password using smbpasswd

PostPosted: Tue Nov 01, 2005 4:04 pm
by caveman
Problem might be that the daemon is not started?

execute
ps -ef|grep smb

if the daemon is up you should get something like the following
root 2335 1 0 Oct01 ? 00:00:00 smbd -D
root 2337 2335 0 Oct01 ? 00:00:00 smbd -D

if not - start it with
/etc/init.d/smb start

and make sure it is started as a service by running
setup
... goto System services and make sure "smb" is checked.

Also
remember - whenever you make a change to /etc/samba/smb.conf
you must restart the daemon for the changes to take effect.
restart with
/etc/init.d/smb restart

PostPosted: Tue Nov 01, 2005 5:28 pm
by Master of Reality
yep its running, and i did restart it after my last change with /etc/rc.d/rc.samba restart (BSD init style :) ). Also nmbd is running.

PostPosted: Tue Nov 01, 2005 7:03 pm
by Void Main
So what do your log files say (/var/log/samba/*)? What are the exact commands you are using to try and connect? Are you running iptables and are the SMB ports blocked? What ports are showing "open" when you nmap your machine from another machine?

PostPosted: Mon Nov 14, 2005 2:43 pm
by Master of Reality
I dont have anything set in iptables. To connect I am just opening konqueror and typing smb://192.168.0.4
I also tried smbclient -L 192.168.0.4 in which i get a password dialogue and then it says "Tree connect failed: Call returned zero bytes (EOF)"

this is my /var/log/samba/log.smbd
Code: Select all
[2005/11/14 06:14:19, 0] smbd/server.c:main(802)
  smbd version 3.0.20 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2004
[2005/11/14 06:14:19, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Connection refused
[2005/11/14 06:14:19, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Connection refused


this is me /var/log/samba.smbd
Code: Select all
[2005/11/14 15:29:29, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Connection refused
[2005/11/14 15:29:29, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Connection refused
[2005/11/14 15:34:49, 0] lib/util_sock.c:get_peer_addr(1222)
  getpeername failed. Error was Transport endpoint is not connected
[2005/11/14 15:34:49, 0] lib/util_sock.c:get_peer_addr(1222)
  getpeername failed. Error was Transport endpoint is not connected
[2005/11/14 15:34:50, 0] lib/util_sock.c:get_peer_addr(1222)
  getpeername failed. Error was Transport endpoint is not connected


When i run nmap ports 22, 80, 139, 445, 5800, 5900 are shown as open.

PostPosted: Mon Nov 14, 2005 3:20 pm
by Tux
What's in /etc/samba/smbusers?

PostPosted: Mon Nov 14, 2005 4:10 pm
by Master of Reality
der?..... there is none. Should i make one? I used webmin to convert mor from unix user to samba user