Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: Samba needs "...client software on the PC..."

  1. #11
    Join Date
    Feb 2011
    Location
    whereever I am
    Beans
    31
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Samba needs "...client software on the PC..."

    from the WIN7 machine, KLSTRFK,
    Code:
    c:\User\Kevin > hostname
    KLSTRFK
    
    c:\User\Kevin > net view \\kevcoder00
    System error 53 has occurred
    The network path was not found
    from linux machine, kevcoder00
    smbtree -d3
    Code:
    lp_load_ex: refreshing parameters
    Initialising global parameters
    rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
    params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
    Processing section "[global]"
    added interface eth0 ip=fe80::d227:88ff:fe19:ce11%eth0 bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
    added interface eth0 ip=192.168.2.2 bcast=192.168.2.255 netmask=255.255.255.0
    Enter dev's password: 
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    resolve_lmhosts: Attempting lmhosts lookup for name METALWAVE<0x1d>
    name_resolve_bcast: Attempting broadcast lookup for name METALWAVE<0x1d>
    Got a positive name query response from 192.168.2.2 ( 192.168.2.2 )
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
    Connecting to host=192.168.2.2
    Connecting to 192.168.2.2 at port 445
    Doing spnego session setup (blob length=58)
    got OID=1.3.6.1.4.1.311.2.2.10
    got principal=NONE
    Got challenge flags:
    Got NTLMSSP neg_flags=0x608a8215
    NTLMSSP: Set final flags:
    Got NTLMSSP neg_flags=0x60088215
    NTLMSSP Sign/Seal - Initialising with flags:
    Got NTLMSSP neg_flags=0x60088215
    name_resolve_bcast: Attempting broadcast lookup for name __MSBROWSE__<0x1>
    Got a positive name query response from 192.168.2.2 ( 192.168.2.2 )
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
    resolve_lmhosts: Attempting lmhosts lookup for name METALWAVE<0x1d>
    name_resolve_bcast: Attempting broadcast lookup for name METALWAVE<0x1d>
    Got a positive name query response from 192.168.2.2 ( 192.168.2.2 )
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
    Connecting to host=192.168.2.2
    Connecting to 192.168.2.2 at port 445
    Doing spnego session setup (blob length=58)
    got OID=1.3.6.1.4.1.311.2.2.10
    got principal=NONE
    Got challenge flags:
    Got NTLMSSP neg_flags=0x608a8215
    NTLMSSP: Set final flags:
    Got NTLMSSP neg_flags=0x60088215
    NTLMSSP Sign/Seal - Initialising with flags:
    Got NTLMSSP neg_flags=0x60088215
    METALWAVE
    resolve_lmhosts: Attempting lmhosts lookup for name METALWAVE<0x1d>
    name_resolve_bcast: Attempting broadcast lookup for name METALWAVE<0x1d>
    Got a positive name query response from 192.168.2.2 ( 192.168.2.2 )
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
    Connecting to host=192.168.2.2
    Connecting to 192.168.2.2 at port 445
    Doing spnego session setup (blob length=58)
    got OID=1.3.6.1.4.1.311.2.2.10
    got principal=NONE
    Got challenge flags:
    Got NTLMSSP neg_flags=0x608a8215
    NTLMSSP: Set final flags:
    Got NTLMSSP neg_flags=0x60088215
    NTLMSSP Sign/Seal - Initialising with flags:
    Got NTLMSSP neg_flags=0x60088215
        \\KEVCODER00             Samba 3.5.8
    Connecting to host=KEVCODER00
    resolve_lmhosts: Attempting lmhosts lookup for name KEVCODER00<0x20>
    resolve_wins: Attempting wins lookup for name KEVCODER00<0x20>
    resolve_wins: WINS server resolution selected and no WINS servers listed.
    resolve_hosts: Attempting host lookup for name KEVCODER00<0x20>
    Connecting to 127.0.1.1 at port 445
    Doing spnego session setup (blob length=58)
    got OID=1.3.6.1.4.1.311.2.2.10
    got principal=NONE
    Got challenge flags:
    Got NTLMSSP neg_flags=0x608a8215
    NTLMSSP: Set final flags:
    Got NTLMSSP neg_flags=0x60088215
    NTLMSSP Sign/Seal - Initialising with flags:
    Got NTLMSSP neg_flags=0x60088215
            \\KEVCODER00\IPC$               IPC Service (Samba 3.5.8)
            \\KEVCODER00\Share              kevcoder00 file share
    Code:
    dev@kevcoder00:/var/log/samba$ tail log.smbd
    [2011/06/14 23:25:08.191111,  1] smbd/service.c:1070(make_connection_snum)
      kevcoder00 (127.0.0.1) connect to service Share initially as user nobody (uid=65534, gid=65534) (pid 2823)
    [2011/06/14 23:28:17.631288,  1] smbd/service.c:1070(make_connection_snum)
      kevcoder00 (127.0.0.1) connect to service Share initially as user dev (uid=1000, gid=1000) (pid 2844)
    [2011/06/14 23:28:22.644107,  1] smbd/service.c:1251(close_cnum)
      kevcoder00 (127.0.0.1) closed connection to service Share
    [2011/06/15 08:20:28.787993,  1] smbd/server.c:267(remove_child_pid)
      Scheduled cleanup of brl and lock database after unclean shutdown
    [2011/06/15 08:20:48.796354,  1] smbd/server.c:240(cleanup_timeout_fn)
      Cleaning up brl and lock database after unclean shutdown
    and finally I can use smbclient with ip address
    Code:
    dev@kevcoder00:/var/log/samba$ smbclient //192.168.2.3/metalwave_public
    Enter dev's password: 
    Domain=[KLSTRFK] OS=[Windows 7 Ultimate N 7601 Service Pack 1] Server=[Windows 7 Ultimate N 6.1]
    smb: \> ls
      .                                  DR        0  Tue Mar 29 21:56:05 2011
      ..                                 DR        0  Tue Mar 29 21:56:05 2011
      Desktop                           DHR        0  Sat May  7 18:26:38 2011
      desktop.ini                       AHS      174  Tue Jul 14 00:08:58 2009
      Documents                          DR        0  Sun May 15 12:14:08 2011
      Downloads                          DR        0  Tue Jun  7 22:26:40 2011
      Favorites                         DHR        0  Mon Jul 13 22:04:25 2009
      Libraries                         DHR        0  Tue Jul 14 00:08:58 2009
      Music                              DR        0  Mon Jan 17 19:49:46 2011
      Pictures                           DR        0  Sun Apr  3 00:44:46 2011
      scheduled_tasks                     D        0  Tue Dec 21 02:05:04 2010
      Torrents                            D        0  Tue Apr 19 00:50:10 2011
      Videos                             DR        0  Wed Jun  8 22:58:12 2011
    
            37781 blocks of size 4194304. 13159 blocks available
    smb: \>

  2. #12
    Join Date
    Dec 2008
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Samba needs "...client software on the PC..."

    Code:
    Connecting to 127.0.1.1 at port 445
    This is part of the problem.

    Post the contents of
    Code:
    /etc/hosts
    
    and 
    
    c:\windows\system32\driver\etc\hosts

  3. #13
    Join Date
    Feb 2011
    Location
    whereever I am
    Beans
    31
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Samba needs "...client software on the PC..."

    C:\Windows\System32\drivers\etc\hosts
    Code:
        127.0.0.1        www.HomeApps.com
        192.168.2.2        kevcoder00
    /etc/hosts
    Code:
    127.0.0.1    localhost
    127.0.1.1    kevcoder00
    192.168.2.3    KLSTRFK
    
    # The following lines are desirable for IPv6 capable hosts
    ::1     ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    Last edited by kevcoder; June 16th, 2011 at 12:47 PM.

  4. #14
    Join Date
    Dec 2008
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Samba needs "...client software on the PC..."

    Quote Originally Posted by kevcoder View Post
    C:\Windows\System32\drivers\etc\hosts
    Code:
        127.0.0.1        www.HomeApps.com
        192.168.2.2        kevcoder00
    /etc/hosts
    Code:
    127.0.0.1    localhost
    127.0.1.1    kevcoder00
    192.168.2.3    KLSTRFK
    
    # The following lines are desirable for IPv6 capable hosts
    ::1     ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    The use of the 127.0.0./8 network is restricted to the local machine only (the loopback interface (lo)). This means any host mapped to an address that starts with 127 can only be reached when you are at that machine (no remote connections).

    If KLSTRFK is in the 192.168.2.0/24 network, then kevecoder00 must also be in that network. The /etc/hosts file needs to reflect that that like this
    Code:
    127.0.0.1    localhost
    192.168.2.2    kevcoder00
    192.168.2.3    KLSTRFK
    At its most basic level kevcoder00 can't find itself when KLSTRFK calls it by its name.

    FYI -- the use of 127.0.1.1 is a Debian workaround for a bug in some applications that need a hostname on a machine with no NIC in it. Bad business in my book.
    Last edited by capscrew; June 16th, 2011 at 03:19 PM.

  5. #15
    Join Date
    Feb 2011
    Location
    whereever I am
    Beans
    31
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Samba needs "...client software on the PC..."

    Quote Originally Posted by capscrew View Post

    If KLSTRFK is in the 192.168.2.0/24 network, then kevecoder00 must also be in that network. The /etc/hosts file needs to reflect that that like this
    Code:
    127.0.0.1    localhost
    192.168.2.2    kevcoder00
    192.168.2.3    KLSTRFK
    At its most basic level kevcoder00 can't find itself when KLSTRFK calls it by its name.

    FYI -- the use of 127.0.1.1 is a Debian workaround for a bug in some applications that need a hostname on a machine with no NIC in it. Bad business in my book.
    I'll try it. So SAMBA acts as a proxy shuttling messages back and forth and it is not able to resolve the name to the IP? Am I understanding that correctly?

    And if so, and I'm no network guru here... but isn't that what a DHCP server/service does. Does Linux/Ubuntu/Debian come with such a service and would enabling it solve the issue. As a developer I often find the hosts file convenient, but always assumed it was a workaround.

    Or am I trying to bite off more than I can chew?

  6. #16
    Join Date
    Dec 2008
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Samba needs "...client software on the PC..."

    Quote Originally Posted by kevcoder View Post
    I'll try it. So SAMBA acts as a proxy shuttling messages back and forth and it is not able to resolve the name to the IP? Am I understanding that correctly?
    Samba is is a suite of services and utilities. The daemons (services) are
    • nmbd = name services (translates DNS (host) names to NetBIOS names and manages NetBIOS services)
    • smbd = Manages the the SMB reasorces (//Server and /shares)


    Samba checks the hosts and lmhosts files and wins, then broadcasts for host/NetBIOS names. Like this (on kevcoder00)
    Code:
    resolve_lmhosts: Attempting lmhosts lookup for name KEVCODER00<0x20>
    resolve_wins: Attempting wins lookup for name KEVCODER00<0x20>
    resolve_wins: WINS server resolution selected and no WINS servers listed.
    resolve_hosts: Attempting host lookup for name KEVCODER00<0x20>
    It then resolves them to the IP address. Look at the error messages, you will see that the nmbd daemon did correctly (as you configured it) resolve the name to 127.0.1.1.
    Code:
    Connecting to 127.0.1.1 at port 445
    The problem occurs when KLSTRFK trys to talk to 127.0.1.1. It can only talk to the loopback adapter on itself as all 127.0.0.0/8 traffic goes only to that virtual adapter.

    And if so, and I'm no network guru here... but isn't that what a DHCP server/service does.
    DHCP only hands out IP addresses that you configure it to hand out. The IP range of 127.0.0.0/8 should not be available for DHCP usage.

    DNS is IP number to host name resolution. The first part of DNS is the hostname and this can be handled either by /etc/hosts or DNS servers. A FQDN (hostname.domainname.suffix) is handled only by DNS servers. As we are only working with hostnames converted to NetBIOS names, we can use either /etc/host or DNS to resolve these names. We are using /etc/hosts.

    Does Linux/Ubuntu/Debian come with such a service and would enabling it solve the issue. As a developer I often find the hosts file convenient, but always assumed it was a workaround.
    The hosts file is not a workaround at all. it is the starting point for all DNS. The DNS server could be considered a global hosts file: a hosts file on steroids.

    Or am I trying to bite off more than I can chew?
    Maybe

  7. #17
    Join Date
    Feb 2011
    Location
    whereever I am
    Beans
    31
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Samba needs "...client software on the PC..."

    Capscrew,

    I got it working.... with a damn good helping of your help. Thank you.

    The issue was on the WIN7 side. What i did (although I suspect that only the last two mattered):

    1. kicked the kids off the windows machine
    2. went into Local Security Policy -- Local Policies -- Security Options and set Network security:Mininum session security for NTLM SSP based client and servers to not require 128 bit encryption
    3. disabled IPV6
    4. in properties of IPV4 checked the "Validate settings upon exit"

    After OK'ing out ot the IPV4 property dialog, windows tossed up a dialog box stating that there were "problems" that would prevent access to other networks. I let it do its thing and voila, I can see my Ubuntu shares on kevcoder00 instantly.

    That's not a slam dunk 'cause, as usual, windows never detailed what the "problem" was. But at least I can move on now.

    Thanks dude... or dudette. I never checked.

    ps: how do I mark this as solved?
    Last edited by kevcoder; June 20th, 2011 at 05:47 PM. Reason: how do I mark this as solved?

  8. #18
    Join Date
    Dec 2008
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Samba needs "...client software on the PC..."

    Quote Originally Posted by kevcoder View Post
    Capscrew,

    I got it working.... with a damn good helping of your help. Thank you.

    The issue was on the WIN7 side. What i did (although I suspect that only the last two mattered):

    1. kicked the kids off the windows machine
    2. went into Local Security Policy -- Local Policies -- Security Options and set Network security:Mininum session security for NTLM SSP based client and servers to not require 128 bit encryption
    3. disabled IPV6
    4. in properties of IPV4 checked the "Validate settings upon exit"

    After OK'ing out ot the IPV4 property dialog, windows tossed up a dialog box stating that there were "problems" that would prevent access to other networks. I let it do its thing and voila, I can see my Ubuntu shares on kevcoder00 instantly.

    That's not a slam dunk 'cause, as usual, windows never detailed what the "problem" was. But at least I can move on now.

    Thanks dude... or dudette. I never checked.

    ps: how do I mark this as solved?
    It's dude. Glad you got it working.

    I've never even started a thread, so I'm not sure how to do that kind of thing. You can search on the term solved in the forum though.

  9. #19
    Join Date
    Nov 2009
    Beans
    97

    Re: Samba needs "...client software on the PC..."

    I had a detailed look at the thread..Looks like the problem was solved by specifying the Server and client address in /etc/host

    I am also trying to setup Samba in vain...., these are the contents of smb.conf:

    Code:
     
    [global]
    WORKGROUP = MSHOME
    NETBIOS NAME = VIKRAM-VOSTRO-1500
    server string =
    name resolve order = bcast lmhosts wins host
    preferred master = no
    os level = 20
    I am able to see my shared windows folder in my ubuntu , but except print$ folder in any folder I click I get the message "Unable to mount Failed to mount windows share"

    I have not given the machine names in /etc/hosts as the network is able to list the shared files...Only problem , i am not able to view the contents

    First I am trying to access only the windows shared folder and I am not going to access linux share from Win

    Why am I not able to view the folders?

  10. #20
    Join Date
    Dec 2008
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Samba needs "...client software on the PC..."

    A few of thoughts about posting to others threads:
    1) This thread is marked [SOLVED]. Most folks won't look at it.
    2) Your problem does not relate to the OP's problem
    3) Rather than hijacking an old thread you should start a new thread where you can describe your problem more specifically.

    Quote Originally Posted by vikrang View Post
    I had a detailed look at the thread..Looks like the problem was solved by specifying the Server and client address in /etc/host


    I am also trying to setup Samba in vain...., these are the contents of smb.conf:

    Code:
     
    [global]
    WORKGROUP = MSHOME
    NETBIOS NAME = VIKRAM-VOSTRO-1500
    server string =
    name resolve order = bcast lmhosts wins host
    preferred master = no
    os level = 20
    I am able to see my shared windows folder in my ubuntu , but except print$ folder in any folder I click I get the message "Unable to mount Failed to mount windows share"

    I have not given the machine names in /etc/hosts as the network is able to list the shared files...Only problem , i am not able to view the contents

    First I am trying to access only the windows shared folder and I am not going to access linux share from Win

    Why am I not able to view the folders?
    There are many ways to set up LAN side name services. Hosts is only one of the was to provide name services.

    Netbios names should be 15 characters or less. I'm not sure if the parameter should be lower case, but all examples sure are. I would edit the smb.conf file to reflect this
    Code:
    workgroup = MSHOME
    netbios name  = SMALLER_NAME
    You pick the name you want but make it less than 15 characters
    Last edited by capscrew; August 20th, 2011 at 06:56 AM.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •