LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-12-2005, 11:52 AM   #1
jaa1180
Member
 
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307

Rep: Reputation: 30
Samba Error message, cannot connect from Windows


I am having a problem with getting Samba to work right.
when I try using the smbclient to test, I get...
Code:
jeff@jeff1:~$ smbclient '//172.16.0.50/mnt/data'
Password: 
Domain=[AVVEDUTI] OS=[Unix] Server=[Samba 3.0.14a-Ubuntu]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
for the password... I try nothing or the only password used on the system.

From the XP home desktop, it does not see the server path... Network path could not be found....

Here is my smb.conf....
Code:
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2005/11/12 11:21:42

# Global parameters
[global]
        workgroup = AVVEDUTI
        netbios name = DATA
        server string = %h server (Samba, Ubuntu)
        security = SHARE
        obey pam restrictions = Yes
        passdb backend = tdbsam, guest
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        preferred master = No
        local master = No
        dns proxy = No
        panic action = /usr/share/samba/panic-action %d
        printing = cups
        print command =
        lpq command = %p
        lprm command =

[homes]
        comment = Home Directories
        read only = No
        create mask = 0700
        directory mask = 0775

[printers]
        comment = All Printers
        path = /tmp
        create mask = 0700
        printable = Yes
        browseable = No

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers

[data]
        guest account = dawn
        comment = Data share on Linux Server
        writeable = yes
        public = yes
        path = /mnt/data

[cp]
        comment = Canon IP3000
        path = /tmp
        guest ok = Yes
        printable = Yes
Any ideas???

Using Ubunty 5.10.. by the way.
 
Old 11-12-2005, 12:27 PM   #2
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
The service 'mnt/data' does not exists try 'smbclient -L 172.16.0.50' to see all accessed services.
 
Old 11-12-2005, 01:58 PM   #3
jaa1180
Member
 
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307

Original Poster
Rep: Reputation: 30
Ok.
Code:
jeff@jeff1:~$ smbclient -L 172.16.0.50
Password:
Domain=[AVVEDUTI] OS=[Unix] Server=[Samba 3.0.14a-Ubuntu]

        Sharename       Type      Comment
        ---------       ----      -------
        homes           Disk      Home Directories
        print$          Disk      Printer Drivers
        data            Disk      Data share on Linux Server
        cp              Printer   Canon IP3000
        IPC$            IPC       IPC Service (jeff1 server (Samba, Ubuntu))
        ADMIN$          IPC       IPC Service (jeff1 server (Samba, Ubuntu))
Domain=[AVVEDUTI] OS=[Unix] Server=[Samba 3.0.14a-Ubuntu]

        Server               Comment
        ---------            -------
        DATA                 jeff1 server (Samba, Ubuntu)

        Workgroup            Master
        ---------            -------
        AVVEDUTI
 
Old 11-12-2005, 02:01 PM   #4
jaa1180
Member
 
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307

Original Poster
Rep: Reputation: 30
Here is my fstab...
Code:
jeff@jeff1:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hda1       /               ext3    defaults,errors=remount-ro 0       1
/dev/hda5       none            swap    sw              0       0
/dev/hdd        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/hdc        /media/cdrom1   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
/dev/hde1       /mnt/data       ext3    auto,user,rw    0      0
/dev/hdf1       /mnt/backup     ext3    auto,user,rw    0      0
Data is mounted..
I set the user 'nobody' to no password required.

ETH0 ....
Code:
jeff@jeff1:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:04:75:71:8C:1E
          inet addr:172.16.0.50  Bcast:172.16.255.255  Mask:255.255.0.0
          inet6 addr: fe80::204:75ff:fe71:8c1e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:679708 errors:109 dropped:0 overruns:1 frame:141
          TX packets:314353 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:329647732 (314.3 MiB)  TX bytes:89219412 (85.0 MiB)
          Interrupt:18 Base address:0xd800
 
Old 11-12-2005, 02:08 PM   #5
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
It seems smbd works well and you can mount yourself without any problems
Win32 cannot find you machine for IMHO nmbd does not run, am I right?
 
Old 11-12-2005, 03:02 PM   #6
jaa1180
Member
 
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307

Original Poster
Rep: Reputation: 30
From SWAT...
version: 3.0.14a-Ubuntu
smbd: running
nmbd: running
winbindd: not running
 
Old 11-12-2005, 03:28 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,757

Rep: Reputation: 6318Reputation: 6318Reputation: 6318Reputation: 6318Reputation: 6318Reputation: 6318Reputation: 6318Reputation: 6318Reputation: 6318Reputation: 6318Reputation: 6318
Quote:
jeff@jeff1:~$ smbclient '//172.16.0.50/mnt/data'
Password:
Domain=[AVVEDUTI] OS=[Unix] Server=[Samba 3.0.14a-Ubuntu]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
As Ygrex posted you used the wrong share name. The share from your smb.conf file is
data.
Try:
smbclient //172.16.0.50/data
 
Old 11-12-2005, 03:28 PM   #8
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
I do not know the matter, for I am not an administrator.
The only thing I noticed is a netmask, you have 255.255.0.0 meantime my own is 255.255.255.0, but I do not know even approximately what does netmask influence on :-P
By the way the latest released SAMBA is 3.0.20b
 
Old 11-12-2005, 03:39 PM   #9
jaa1180
Member
 
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307

Original Poster
Rep: Reputation: 30
More info...
Code:
root@jeff1:/home/jeff# nmblookup -A 172.16.0.50
Looking up status of 172.16.0.50
        DATA            <00> -         H <ACTIVE>
        DATA            <03> -         H <ACTIVE>
        DATA            <20> -         H <ACTIVE>
        AVVEDUTI        <00> - <GROUP> H <ACTIVE>
        AVVEDUTI        <1e> - <GROUP> H <ACTIVE>

        MAC Address = 00-00-00-00-00-00

root@jeff1:/home/jeff# nmblookup jeff1
querying jeff1 on 172.16.255.255
querying jeff1 on 172.16.47.255
172.16.47.1 jeff1<00>
Interesting...
Does this help anyone?
 
Old 11-12-2005, 03:40 PM   #10
jaa1180
Member
 
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307

Original Poster
Rep: Reputation: 30
Ok... sorry. I tried and got...
Code:
root@jeff1:/home/jeff# smbclient //172.16.0.50/data
Password:
tree connect failed: Call returned zero bytes (EOF)
 
Old 11-12-2005, 03:49 PM   #11
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
Oh, if you are about that:

smbmount //172.16.0.50/data ~/foo

Also, as it seems, you can use 'data' insteat of '172.16.0.50'
And another question, does 'smbtree -NS' shows your machine?
 
Old 11-12-2005, 04:59 PM   #12
jaa1180
Member
 
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307

Original Poster
Rep: Reputation: 30
Interesting...
Code:
root@jeff1:/mnt/data# smbtree -NS
AVVEDUTI
        \\LADYBUG                       Ladybug's computer...
        \\DATA                          jeff1 server (Samba, Ubuntu)
It should be \\jeff1.....
The host name is,
Code:
root@jeff1:/mnt/data# cat /etc/hostname
jeff1
 
Old 11-12-2005, 05:05 PM   #13
jaa1180
Member
 
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307

Original Poster
Rep: Reputation: 30
I changed the netbios name to Jeff1 and restarted the services...
Nothing...
WinXP still giving error, except now it is "\\Jeff1 is not accessable. ...... The network path is not found."
 
Old 11-12-2005, 05:11 PM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,757

Rep: Reputation: 6318Reputation: 6318Reputation: 6318Reputation: 6318Reputation: 6318Reputation: 6318Reputation: 6318Reputation: 6318Reputation: 6318Reputation: 6318Reputation: 6318
samba uses the hostname as default for the net bios name. Your name is DATA due the smb.conf statement:
netbios name = DATA

Does smbmount //data/data produce the same error?
 
Old 11-12-2005, 05:22 PM   #15
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
But if 'smbmount //data/data ~/foo' works fine so there is no problem with samba, configure windoze.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba: can't connect to my local linux machine but can connect to windows. Royle Linux - Networking 3 01-18-2005 05:32 PM
Can't connect to Windows shares w/ Samba everythingand2 Slackware 7 01-15-2005 10:13 PM
Windows Network error message captain skywave Linux - Networking 3 12-12-2004 11:42 AM
New windows error message BajaNick General 17 12-15-2003 12:03 AM
samba mount error message saavik Linux - Networking 1 04-24-2002 09:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration