Author Topic: samba timeout solved  (Read 4877 times)

Offline tm

  • Full Member
  • ***
  • Posts: 155
Re: samba timeout
« Reply #30 on: May 12, 2012, 06:37:37 AM »
OK Terry here we go

[tom@localhost ~]$ service smb status
smbd (pid  2513) is running...
nmbd (pid  2524) is running...
[tom@localhost ~]$

tom@localhost ~]$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:D8:98:11:57
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::211:d8ff:fe98:1157/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5627 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4345 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6148443 (5.8 MiB)  TX bytes:463359 (452.4 KiB)
          Interrupt:21

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:56 errors:0 dropped:0 overruns:0 frame:0
          TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3280 (3.2 KiB)  TX bytes:3280 (3.2 KiB)

[tom@localhost ~]$ smbtree -N
failed negprot: NT_STATUS_INVALID_NETWORK_RESPONSE
failed negprot: NT_STATUS_INVALID_NETWORK_RESPONSE
[tom@localhost ~]$

[tom@localhost ~]$ smbclient -L localhost
Enter tom's password:
protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE
[tom@localhost ~]$

Offline TerryN

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 723
Re: samba timeout
« Reply #31 on: May 12, 2012, 07:55:42 AM »
Did you change the "hosts allow" line ?

Terry
Dell E521 - AMD 64 X2 5000+, 4GB RAM, ATI X1300 graphics
PCLinuxOS 2013 (KDE)
|Twitter|

Offline tm

  • Full Member
  • ***
  • Posts: 155
Re: samba timeout
« Reply #32 on: May 12, 2012, 03:43:38 PM »
sorry about that.I did now and here are the results

[tom@localhost ~]$ service smb status
smbd (pid  3048) is running...
nmbd (pid  3057) is running...
[tom@localhost ~]$

[tom@localhost ~]$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:D8:98:11:57
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::211:d8ff:fe98:1157/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2005 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1416 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2331074 (2.2 MiB)  TX bytes:128815 (125.7 KiB)
          Interrupt:21 Base address:0xc000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:60 errors:0 dropped:0 overruns:0 frame:0
          TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3520 (3.4 KiB)  TX bytes:3520 (3.4 KiB)

[tom@localhost ~]$

[tom@localhost ~]$ smbtree -N
MSHOME
        \\SAMBA-SERVER                  localhost

tom@localhost ~]$ smbclient -L localhost
Enter tom's password:
protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE
[tom@localhost ~]$

Offline TerryN

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 723
Re: samba timeout
« Reply #33 on: May 12, 2012, 05:08:11 PM »
Quote
[tom@localhost ~]$ smbtree -N
MSHOME
        \\SAMBA-SERVER                  localhost

That's looking a little better  :)

Now try:

Code: [Select]
smbclient -L 192.168.1.2
Terry.
Dell E521 - AMD 64 X2 5000+, 4GB RAM, ATI X1300 graphics
PCLinuxOS 2013 (KDE)
|Twitter|

Offline tm

  • Full Member
  • ***
  • Posts: 155
Re: samba timeout
« Reply #34 on: May 13, 2012, 07:50:12 AM »
terry

tom@localhost ~]$ smbclient -L 192.168.1.2
Enter tom's password:
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.5.14]
Server requested LANMAN password (share-level security) but 'client lanman auth' is disabled
tree connect failed: NT_STATUS_ACCESS_DENIED
[tom@localhost ~]$
           tom

Offline TerryN

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 723
Re: samba timeout
« Reply #35 on: May 13, 2012, 12:00:27 PM »
Server requested LANMAN password (share-level security) but 'client lanman auth' is disabled
tree connect failed: NT_STATUS_ACCESS_DENIED

The problem here is that share-level security has been set.  It is better (simpler) in Linux to use USER level security.  Make the following change in the smb.conf

Code: [Select]
security = user
then restart SAMBA, give it a minute or so to settle then try the smbclient command again.

Terry
« Last Edit: May 13, 2012, 12:04:47 PM by TerryN »
Dell E521 - AMD 64 X2 5000+, 4GB RAM, ATI X1300 graphics
PCLinuxOS 2013 (KDE)
|Twitter|

Offline tm

  • Full Member
  • ***
  • Posts: 155
Re: samba timeout
« Reply #36 on: May 13, 2012, 02:52:46 PM »
Terry how is this

[tom@localhost ~]$ smbclient -L 192.168.1.2
Enter tom's password:
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.5.14]

        Sharename       Type      Comment
        ---------       ----      -------
        print$          Disk
        pdf-gen         Printer   PDF Generator (only valid users)
        homes           Disk      Home Directories
        IPC$            IPC       IPC Service (localhost)
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.5.14]

        Server               Comment
        ---------            -------
        SAMBA-SERVER         localhost

        Workgroup            Master
        ---------            -------
        MSHOME               SAMBA-SERVER
[tom@localhost ~]$ ifconfig
                                                             tom

Offline TerryN

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 723
Re: samba timeout
« Reply #37 on: May 13, 2012, 04:16:10 PM »
Tom,

Yes, it is looking OK now (although it isn't a strictly correct configuration it should work).
You should now be able to do:

Code: [Select]
smbclient //samba-server/tom
Enter tom's password:
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.5.14]
smb: \>ls
... the list of files in your shared folder will appear here ...
smb: \>q
 

Assuming that works OK, you should be able to start Dolphin or Konqueror and enter the URL

Code: [Select]
smb://samba-server/tom
and see the same listing in a GUI

If all is OK the next step is to try from the CLIENT machine.  First do an smbtree -N command to check that it is seeing the workgroup and the shares and then try the smbclient commands or the GUI method.

Terry.
Dell E521 - AMD 64 X2 5000+, 4GB RAM, ATI X1300 graphics
PCLinuxOS 2013 (KDE)
|Twitter|

Offline tm

  • Full Member
  • ***
  • Posts: 155
Re: samba timeout
« Reply #38 on: May 14, 2012, 04:38:02 AM »
Terry we were doing so well

[tom@localhost ~]$ smbclient -L 192.168.1.2
Enter tom's password:
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.5.14]

        Sharename       Type      Comment
        ---------       ----      -------
        print$          Disk
        pdf-gen         Printer   PDF Generator (only valid users)
        homes           Disk      Home Directories
        IPC$            IPC       IPC Service (localhost)
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.5.14]

        Server               Comment
        ---------            -------
        SAMBA-SERVER         localhost

        Workgroup            Master
        ---------            -------
        MSHOME               SAMBA-SERVER
[tom@localhost ~]$ smbclient //samba-server/tom
Enter tom's password:
Connection to samba-server failed (Error NT_STATUS_UNSUCCESSFUL)
[tom@localhost ~]$


Offline TerryN

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 723
Re: samba timeout
« Reply #39 on: May 14, 2012, 04:45:24 AM »
Terry we were doing so well

[tom@localhost ~]$ smbclient //samba-server/tom
Enter tom's password:
Connection to samba-server failed (Error NT_STATUS_UNSUCCESSFUL)
[tom@localhost ~]$


Add yourself (tom) as a SAMBA user in PCC->Network Sharing->SMB (the Samba Users tab)

Terry.
Dell E521 - AMD 64 X2 5000+, 4GB RAM, ATI X1300 graphics
PCLinuxOS 2013 (KDE)
|Twitter|

Offline tm

  • Full Member
  • ***
  • Posts: 155
Re: samba timeout
« Reply #40 on: May 14, 2012, 04:58:48 AM »
i did should i leave the recommended nobody entry

Offline TerryN

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 723
Re: samba timeout
« Reply #41 on: May 14, 2012, 05:06:50 AM »
i did should i leave the recommended nobody entry

You can, it shouldn't do any harm.
Dell E521 - AMD 64 X2 5000+, 4GB RAM, ATI X1300 graphics
PCLinuxOS 2013 (KDE)
|Twitter|

Offline tm

  • Full Member
  • ***
  • Posts: 155
Re: samba timeout
« Reply #42 on: May 14, 2012, 05:31:48 AM »
Here is the update

[tom@localhost ~]$ smbclient -L 192.168.1.2
Enter tom's password:
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.5.14]

        Sharename       Type      Comment
        ---------       ----      -------
        print$          Disk
        pdf-gen         Printer   PDF Generator (only valid users)
        homes           Disk      Home Directories
        IPC$            IPC       IPC Service (localhost)
        tom             Disk      Home Directories
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.5.14]

        Server               Comment
        ---------            -------
        SAMBA-SERVER         localhost

        Workgroup            Master
        ---------            -------
        MSHOME               SAMBA-SERVER
[tom@localhost ~]$ smbclient //samba-server/tom
Enter tom's password:
Connection to samba-server failed (Error NT_STATUS_UNSUCCESSFUL)
[tom@localhost ~]$


Offline TerryN

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 723
Re: samba timeout
« Reply #43 on: May 14, 2012, 05:32:55 AM »
Did you restart Samba?
Dell E521 - AMD 64 X2 5000+, 4GB RAM, ATI X1300 graphics
PCLinuxOS 2013 (KDE)
|Twitter|

Offline tm

  • Full Member
  • ***
  • Posts: 155
Re: samba timeout
« Reply #44 on: May 14, 2012, 05:52:49 AM »
reloaded and restarted. checked in system and is running and designated to start at boot[tom@localhost ~]$ smbclient -L 192.168.1.2
Enter tom's password:
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.5.14]

        Sharename       Type      Comment
        ---------       ----      -------
        print$          Disk
        pdf-gen         Printer   PDF Generator (only valid users)
        homes           Disk      Home Directories
        IPC$            IPC       IPC Service (localhost)
        tom             Disk      Home Directories
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.5.14]

        Server               Comment
        ---------            -------
        SAMBA-SERVER         localhost

        Workgroup            Master
        ---------            -------
        MSHOME               SAMBA-SERVER
[tom@localhost ~]$ smbclient //samba-server/tom
Enter tom's password:
Connection to samba-server failed (Error NT_STATUS_UNSUCCESSFUL)
[tom@localhost ~]$