Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
11-12-2005, 11:52 AM
|
#1
|
Member
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307
Rep:
|
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.
|
|
|
11-12-2005, 12:27 PM
|
#2
|
Member
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666
Rep:
|
The service 'mnt/data' does not exists try 'smbclient -L 172.16.0.50' to see all accessed services.
|
|
|
11-12-2005, 01:58 PM
|
#3
|
Member
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307
Original Poster
Rep:
|
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
|
|
|
11-12-2005, 02:01 PM
|
#4
|
Member
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307
Original Poster
Rep:
|
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
|
|
|
11-12-2005, 02:08 PM
|
#5
|
Member
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666
Rep:
|
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?
|
|
|
11-12-2005, 03:02 PM
|
#6
|
Member
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307
Original Poster
Rep:
|
From SWAT...
version: 3.0.14a-Ubuntu
smbd: running
nmbd: running
winbindd: not running
|
|
|
11-12-2005, 03:28 PM
|
#7
|
Moderator
Registered: Aug 2002
Posts: 26,757
|
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
|
|
|
11-12-2005, 03:28 PM
|
#8
|
Member
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666
Rep:
|
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 
|
|
|
11-12-2005, 03:39 PM
|
#9
|
Member
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307
Original Poster
Rep:
|
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?
|
|
|
11-12-2005, 03:40 PM
|
#10
|
Member
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307
Original Poster
Rep:
|
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)
|
|
|
11-12-2005, 03:49 PM
|
#11
|
Member
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666
Rep:
|
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?
|
|
|
11-12-2005, 04:59 PM
|
#12
|
Member
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307
Original Poster
Rep:
|
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
|
|
|
11-12-2005, 05:05 PM
|
#13
|
Member
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307
Original Poster
Rep:
|
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."
|
|
|
11-12-2005, 05:11 PM
|
#14
|
Moderator
Registered: Aug 2002
Posts: 26,757
|
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?
|
|
|
11-12-2005, 05:22 PM
|
#15
|
Member
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666
Rep:
|
But if 'smbmount //data/data ~/foo' works fine so there is no problem with samba, configure windoze.
|
|
|
All times are GMT -5. The time now is 06:42 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|