samba confusion

Place to discuss anything, almost. No politics, religion, Microsoft, or anything else that I (the nazi censor) deem inappropriate.

samba confusion

Postby Master of Reality » Tue Nov 01, 2005 3:31 pm

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
Master of Reality
guru
guru
 
Posts: 562
Joined: Thu Jan 09, 2003 8:25 pm

Postby caveman » Tue Nov 01, 2005 4:04 pm

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
caveman
programmer
programmer
 
Posts: 130
Joined: Sun Feb 09, 2003 1:08 pm
Location: Midrand Gauteng, South Africa

Postby Master of Reality » Tue Nov 01, 2005 5:28 pm

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.
Master of Reality
guru
guru
 
Posts: 562
Joined: Thu Jan 09, 2003 8:25 pm

Postby Void Main » Tue Nov 01, 2005 7:03 pm

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?
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Master of Reality » Mon Nov 14, 2005 2:43 pm

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.
Master of Reality
guru
guru
 
Posts: 562
Joined: Thu Jan 09, 2003 8:25 pm

Postby Tux » Mon Nov 14, 2005 3:20 pm

What's in /etc/samba/smbusers?
Tux
guru
guru
 
Posts: 689
Joined: Wed Jan 08, 2003 10:40 am

Postby Master of Reality » Mon Nov 14, 2005 4:10 pm

der?..... there is none. Should i make one? I used webmin to convert mor from unix user to samba user
Master of Reality
guru
guru
 
Posts: 562
Joined: Thu Jan 09, 2003 8:25 pm


Return to The Lounge

Who is online

Users browsing this forum: No registered users and 0 guests

cron