Author Topic: [SOLVED] Samba : Error NT_STATUS_CONNECTION_REFUSED  (Read 6448 times)

Offline metro

  • Full Member
  • ***
  • Posts: 109
[SOLVED] Samba : Error NT_STATUS_CONNECTION_REFUSED
« on: May 16, 2012, 01:50:18 AM »
I tried to  Hijack this thread http://www.pclinuxos.com/forum/index.php/topic,86405.0.html but my reply would not save

I too was experiencing "Error NT_STATUS_CONNECTION_REFUSED" and I happened to have an old copy of SMB.conf, so I saved the existing (problem) file and renamed the old copy back to  SMB.conf

This SMB.conf was causing the PROBLEM :
Code: [Select]
[global]
    netbios name = Samba24
    server string = Samba file and print server
    workgroup = metro
    security = user
    interfaces = 127.0.0.1/8 192.168.0.0/24
    bind interfaces only = yes
    remote announce = 192.168.0.255
    remote browse sync = 192.168.0.255
    printcap name = cups
    load printers = yes
    cups options = raw
    printing = cups
    guest account = smbguest
    log file = /var/log/samba/samba.log
    max log size = 1000
    null passwords = no
    username level = 6
    password level = 6
    encrypt passwords = yes
    unix password sync = yes
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    local master = yes
    domain master = yes
    preferred master = yes
    logon drive = m:
    logon home = \\%L\homes\%u
    logon path = \\%L\profiles\%u
    logon script = %G.bat
    time server = no
    name resolve order = wins lmhosts bcast
    wins proxy = no
    dns proxy = no
    preserve case = yes
    short preserve case = yes
    client use spnego = no
    client signing = no
    client schannel = no
    server signing = no
    server schannel = no
    nt pipe support = yes
    nt status support = yes
    allow trusted domains = no
    obey pam restrictions = yes
    enable spoolss = yes
    client plaintext auth = no
    disable netbios = no
    follow symlinks = no
    update encrypted = yes
    pam password change = no
    passwd chat timeout = 120
    hostname lookups = no
    username map = /etc/samba/smbusers
    passdb backend = tdbsam
    passwd program = /usr/bin/passwd '%u'
    passwd chat = *New*password* %n\n *ReType*new*password* %n\n *passwd*changed*\n
    add user script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null '%u'
    add user to group script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null -g '%g' '%u'
    add group script = /usr/sbin/groupadd '%g'
    delete user script = /usr/sbin/userdel '%u'
    delete user from group script = /usr/sbin/userdel '%u' '%g'
    delete group script = /usr/sbin/groupdel '%g'
    add machine script = /usr/sbin/useradd -d /dev/null -g sambamachines -c 'Samba Machine Account' -s /dev/null -M '%u'
    machine password timeout = 120
    idmap uid = 16777216-33554431
    idmap gid = 16777216-33554431
    template shell = /dev/null
    winbind use default domain = yes
    winbind separator = @
    winbind cache time = 360
    winbind trusted domains only = yes
    winbind nested groups = no
    winbind nss info = no
    winbind refresh tickets = no
    winbind offline logon = no

[printers]
    comment = All Printers
    path = /var/spool/samba
    browseable = yes
    writable = no
    guest ok = no
    public = no
    printable = yes
    locking = no
    strict locking = no

[pdf-documents]
    path = /var/lib/samba/pdf-documents
    comment = Converted PDF Documents
    admin users = %U
    available = yes
    browseable = yes
    writeable = yes
    guest ok = yes
    locking = no
    strict locking = no
[pdf-printer]
    path = /tmp
    comment = PDF Printer Service
    browseable = yes
    printable = yes
    print command = /usr/bin/gadmin-samba-pdf %s %u
    guest ok = yes
    writable = yes
    printing = bsd
    use client driver = yes
[homes]
    path = /home
    comment = Home Directories
    browseable = yes
    public = yes
    writable = yes
[netlogon]
    path = /var/lib/samba/netlogon
    comment = Network Logon Service
    browseable = yes
    public = yes
    writable = no
[profiles]
    path = /var/lib/samba/profiles
    comment = User Profiles
    browseable = yes
    public = yes
    writable = yes
    directory mask = 0700
« Last Edit: May 17, 2012, 07:17:56 AM by metro »

Offline metro

  • Full Member
  • ***
  • Posts: 109
Re: Samba : Error NT_STATUS_CONNECTION_REFUSED
« Reply #1 on: May 16, 2012, 01:56:17 AM »
NEW Problem is I can see the shared folders on my PCLINUXOS machine from my Win XP and can transfer files to and from whilst at the XP machine
but From PCLinux I cannot see and shared resources on either machine when using Dolphin or SMB4k
CURRENT SMB.conf:

NOTE:
the use of smbtree with the first SMB.conf in place resulted in much the same message as wayne1932's message but it showed the wrong IP
the IP for my machine is 192.168.0.163 and it reported failed to connect to 192.168.0.32 (no other computer on the network uses that address)
with the current smb.conf in place smbtree gives no output after I press enter for password

any help appreciated

Laurie

PS I tried to quote the replacement SMB.conf but it must be too big and the server keeps resetting
« Last Edit: May 16, 2012, 01:59:55 AM by metro »

Offline 7272andy

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1624
  • UK MLU
Re: Samba : Error NT_STATUS_CONNECTION_REFUSED
« Reply #2 on: May 16, 2012, 02:07:57 AM »
Hi metro,
you'll need nss_wins installed if not already there


Bare Metal 1         Bare Metal 2
Intel Celeron 420M   Intel i5 540M
2GB Ram              4GB Ram
Intel 943GM          Radeon HD 5650 PCI Express
RT2573               RT2790
32bit KDE            32&64bit KDE

Offline metro

  • Full Member
  • ***
  • Posts: 109
Re: Samba : Error NT_STATUS_CONNECTION_REFUSED
« Reply #3 on: May 16, 2012, 02:40:54 AM »
Hi 7272andy
nss_wins is already installed unfortunately

I tried this
[laurie@localhost ~]$ smbtree -U administrator
Enter administrator's password:
Server requested LANMAN password (share-level security) but 'client lanman auth' is disabled
failed tcon_X with NT_STATUS_ACCESS_DENIED
Server requested LANMAN password (share-level security) but 'client lanman auth' is disabled
failed tcon_X with NT_STATUS_ACCESS_DENIED
[laurie@localhost ~]$ ^C
[laurie@localhost ~]$

 ???
not sure what that means
« Last Edit: May 16, 2012, 02:58:56 AM by metro »

Offline 7272andy

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1624
  • UK MLU
Re: Samba : Error NT_STATUS_CONNECTION_REFUSED
« Reply #4 on: May 16, 2012, 05:27:47 AM »
The error message is a generic one unfortunately.

Editing /etc/nsswitch.conf and look for a line similar to this:

     hosts:mdns4_minimal files nis dns wins mdns4

and change it to read like this:

     hosts:mdns4_minimal files nis wins dns mdns4

Note that wins now comes before dns. As a first check for finding the windows share click on the PC button select Internet and SMB4K you should be able to see the server in the Network Neighborhood, clicking on the server name should show you the shares associated with it and allow you to mount them

Regards


Bare Metal 1         Bare Metal 2
Intel Celeron 420M   Intel i5 540M
2GB Ram              4GB Ram
Intel 943GM          Radeon HD 5650 PCI Express
RT2573               RT2790
32bit KDE            32&64bit KDE

Offline metro

  • Full Member
  • ***
  • Posts: 109
Re: Samba : Error NT_STATUS_CONNECTION_REFUSED
« Reply #5 on: May 16, 2012, 05:50:21 AM »
Thanks 7272andy
modified as instructed, unfortunately nothing shows up in SMB4K even after a scan of network

metro

Offline pags

  • Hero Member
  • *****
  • Posts: 2602
  • Keep it clean.
Re: Samba : Error NT_STATUS_CONNECTION_REFUSED
« Reply #6 on: May 16, 2012, 07:22:39 AM »
It's a bit of a long read, but check out this thread:
http://www.pclinuxos.com/forum/index.php/topic,105246.0.html

Offline 7272andy

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1624
  • UK MLU
Re: Samba : Error NT_STATUS_CONNECTION_REFUSED
« Reply #7 on: May 16, 2012, 07:23:38 AM »
Think I'm being a bit slow today  :)

You need to stop and restart the smb service, either reboot or start the PCC select System > Manage system services by enabling and disabling them scroll down to smb, stop and restart the service.

EDIT
Hi pags, that link of yours looks very promising
« Last Edit: May 16, 2012, 07:27:58 AM by 7272andy »


Bare Metal 1         Bare Metal 2
Intel Celeron 420M   Intel i5 540M
2GB Ram              4GB Ram
Intel 943GM          Radeon HD 5650 PCI Express
RT2573               RT2790
32bit KDE            32&64bit KDE

Offline metro

  • Full Member
  • ***
  • Posts: 109
[SOLVED] Re: Samba : Error NT_STATUS_CONNECTION_REFUSED
« Reply #8 on: May 17, 2012, 02:20:27 AM »
Thanks guys sorted,
@pags thanks for the link...
@7272andy thanks for hangin in there

Seems this problem was self inflicted, Some weeks back I purchased a PogoPlug and set it up to boot Arch Linux from a USB stick
that process somehow enabled the PogoPlug as the Samba Server. So when I inadvertently pull the power on the PogoPlug......no Samba Server

Not realising the lack of power I went on to try and solve the problem

After lots of reading I found via GADMIN-Samba these settings in samba.conf
local master = no
domain master = no   
preferred master = no

I changed them all to yes and problem fixed

thanks for taking the time guys

regards

metro

Offline 7272andy

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1624
  • UK MLU
Re: Samba : Error NT_STATUS_CONNECTION_REFUSED
« Reply #9 on: May 17, 2012, 03:02:07 AM »
Heh, we all do it, glad you got it fixed  :D

You need to edit the subject line on your first post to read Solved, otherwise it doesn't show in the forum index listing.

Regards


Bare Metal 1         Bare Metal 2
Intel Celeron 420M   Intel i5 540M
2GB Ram              4GB Ram
Intel 943GM          Radeon HD 5650 PCI Express
RT2573               RT2790
32bit KDE            32&64bit KDE

Offline metro

  • Full Member
  • ***
  • Posts: 109
Re: [SOLVED] Samba : Error NT_STATUS_CONNECTION_REFUSED
« Reply #10 on: May 17, 2012, 07:18:57 AM »
I'll try not make a habit of it  ;D

thanks again

metro