Results 1 to 10 of 20

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

Hybrid View

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

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

    from Samba.org at http://www.samba.org/samba/docs/man/...diagnosis.html

    What software is this referring to??

    5. Run the command nmblookup -B ACLIENT `*'.
    You should get the PC's IP address back. If you do not, then the client software on the PC isn't installed correctly, or isn't started, or you got the name of the PC wrong.

  2. #2
    Join Date
    Aug 2006
    Beans
    1,223

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

    It's referring to the samba client (smbclient)
    There's no place like ~/

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

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

    Quote Originally Posted by Joe of loath View Post
    It's referring to the samba client (smbclient)
    OK so this is some type of ftp clone... but is it required for SAMBA to work? I don't it see it mentioned in any other how-to's... not even the one on samba.org.

    I'm trying to open a ubuntu share to a number of WIN7 machines.

  4. #4
    Join Date
    Dec 2008
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

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

    Quote Originally Posted by kevcoder View Post
    OK so this is some type of ftp clone... but is it required for SAMBA to work? I don't it see it mentioned in any other how-to's... not even the one on samba.org.
    What do you mean by required? It is the command line interface to the Samba daemon smbd. Of course you need it, but you don't have to use it if you don't want to.

    I'm trying to open a ubuntu share to a number of WIN7 machines.
    Are you having problems doing that? If so, what errors do you get? Did you pass the first two steps?

    • What did you get with
      Code:
      testparm -s
    • Can you ping all hosts from all hosts?

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

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

    kevcoder00 is the Ubuntu box
    KLSTRFK is the WIN7 box
    for right now I want this share to be wide open requiring no permissions
    I can ping both boxes from each other by name and ip (i added an entry in both c:\windows\system32\driver\etc\hosts and /etc/hosts)

    testparm -S
    Code:
    dev@kevcoder00:~$ testparm -S
    Load smb config files from /etc/samba/smb.conf
    rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
    Processing section "[Share]"
    Loaded services file OK.
    Server role: ROLE_STANDALONE
    Press enter to see a dump of your service definitions
    
    [global]
        workgroup = METALWAVE
        netbios name = KLSTRFK
        security = SHARE
        lanman auth = Yes
        client lanman auth = Yes
    
    [Share]
        comment = kevcoder00 file share
        path = /srv/samba/share
        read only = No
        create mask = 0777
        guest ok = Yes
    smbclient -L kevcoder00
    Code:
    Domain=[METALWAVE] OS=[Unix] Server=[Samba 3.5.8]
    
        Sharename       Type      Comment
        ---------       ----      -------
        Share           Disk      kevcoder00 file share
        IPC$            IPC       IPC Service (Samba 3.5.8)
    Domain=[METALWAVE] OS=[Unix] Server=[Samba 3.5.8]
    
        Server               Comment
        ---------            -------
        KLSTRFK              Samba 3.5.8
    
        Workgroup            Master
        ---------            -------
        METALWAVE            KLSTRFK
    smbclient -L KLSTRFK
    Code:
    Domain=[KLSTRFK] OS=[Windows 7 Ultimate N 7601 Service Pack 1] Server=[Windows 7 Ultimate N 6.1]
    
        Sharename       Type      Comment
        ---------       ----      -------
        ADMIN$          Disk      Remote Admin
        C$              Disk      Default share
        Fax - HP Officejet 6500 E710n-z Printer   Fax - HP Officejet 6500 E710n-z
        HP Officejet 6500 E710n-z Printer   HP Officejet 6500 E710n-z
        IPC$            IPC       Remote IPC
        METALWAVE_PUBLIC Disk      THE PUBLIC FOLDER
        metalwave_share Disk      
        print$          Disk      Printer Drivers
        Users           Disk      
    session request to KLSTRFK failed (Called name not present)
    session request to *SMBSERVER failed (Called name not present)
    NetBIOS over TCP disabled -- no workgroup available
    nmblookup -B kevcoder00 __SAMBA__
    Code:
    querying __SAMBA__ on 127.0.1.1
    192.168.2.2 __SAMBA__<00>
    nmblookup -d 2 '*'
    Code:
    rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
    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
    querying * on 192.168.2.255
    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
    192.168.2.2 *<00>
    I stopped there

    and finally my share permissions
    dev@kevcoder00:/srv/samba$ ls -l
    Code:
    total 4
    drwxr-xr-x 4 nobody nogroup 4096 2011-06-12 00:49 share
    Last edited by kevcoder; June 14th, 2011 at 01:37 AM.

  6. #6
    Join Date
    Dec 2008
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

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

    Quote Originally Posted by kevcoder View Post
    kevcoder00 is the Ubuntu box
    KLSTRFK is the WIN7 box
    for right now I want this share to be wide open requiring no permissions
    I can ping both boxes from each other by name and ip (i added an entry in both c:\windows\system32\driver\etc\hosts and /etc/hosts)
    Can the Ubuntu host kevcoder00 can ping itself by name?

    My comments below will be in red

    testparm -S
    Code:
    dev@kevcoder00:~$ testparm -S
    Load smb config files from /etc/samba/smb.conf
    rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
    Processing section "[Share]"
    Loaded services file OK.
    Server role: ROLE_STANDALONE
    Press enter to see a dump of your service definitions
    
    [global]
        workgroup = METALWAVE
        netbios name = KLSTRFK  <--This should be the Samba server machine
        security = SHARE  <-- This means Linux directory and file perms only
        lanman auth = Yes  <-- This is for Win95/98
        client lanman auth = Yes <-- Also for win95/98
    
    [Share]
        comment = kevcoder00 file share
        path = /srv/samba/share
        read only = No
        create mask = 0777
        guest ok = Yes  <- this is for security = user
    smbclient -L kevcoder00
    Code:
    Domain=[METALWAVE] OS=[Unix] Server=[Samba 3.5.8]
    
        Sharename       Type      Comment
        ---------       ----      -------
        Share           Disk      kevcoder00 file share
        IPC$            IPC       IPC Service (Samba 3.5.8)
    Domain=[METALWAVE] OS=[Unix] Server=[Samba 3.5.8]
    
        Server               Comment
        ---------            -------
        KLSTRFK  <--???            Samba 3.5.8 [B]
    
        Workgroup            Master
        ---------            -------
        METALWAVE            KLSTRFK <-- Which machine is this? 
    smbclient -L KLSTRFK
    Code:
    Domain=[KLSTRFK] OS=[Windows 7 Ultimate N 7601 Service Pack 1] Server=[Windows 7 Ultimate N 6.1]
    
        Sharename       Type      Comment
        ---------       ----      -------
        ADMIN$          Disk      Remote Admin
        C$              Disk      Default share
        Fax - HP Officejet 6500 E710n-z Printer   Fax - HP Officejet 6500 E710n-z
        HP Officejet 6500 E710n-z Printer   HP Officejet 6500 E710n-z
        IPC$            IPC       Remote IPC
        METALWAVE_PUBLIC Disk      THE PUBLIC FOLDER
        metalwave_share Disk      
        print$          Disk      Printer Drivers
        Users           Disk      
    session request to KLSTRFK failed (Called name not present)
    session request to *SMBSERVER failed (Called name not present)
    NetBIOS over TCP disabled -- no workgroup available <--Why is this desabled?
    nmblookup -B kevcoder00 __SAMBA__
    Code:
    querying __SAMBA__ on 127.0.1.1
    192.168.2.2 __SAMBA__<00>
    rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
    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
    querying * on 192.168.2.255
    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
    192.168.2.2 *<00>
    [/CODE]
    I stopped there

    and finally my share permissions
    dev@kevcoder00:/srv/samba$ ls -l
    Code:
    total 4
    drwxr-xr-x 4 nobody nogroup 4096 2011-06-12 00:49 share
    • I think should comment out the "netbios name = " section.
    • Comment out the lanman auth entries
    • See if the nmbd daemon is running
      Code:
      pgrep -l mbd


    See if that works. It might not, but it is a start.


    What are the IP addresses of all the hosts involved. On the Ubuntu host, can you post the output of
    Code:
    cat /etc/hosts
    I really don't like using security = share you loose Samba control of the share.

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
  •