Newbie to Samba and need help... with "tree connect failed: NT_STATUS_BAD_NETWORK_NAME " error "

Newbie to Samba and need help... with "tree connect failed: NT_STATUS_BAD_NETWORK_NAME " error "

Post by Ye Myin » Sun, 07 Jul 2002 19:42:40



Hi there,

I am a newbie to Samba and I really need help to have my linux box (SuSE
8.0) on my home network, which is Windows XP Professional machines. It's
just a peer to peer network and domain name is "WORKGROUP".

My Samba is the latest one: 2.2.5 version that I downloaded yesterday,
compiled and installed.

My linux box's host name is "YMSAMBA" as you can see below.

In my smb.conf, I set "netbios name" as "YMSAMBA".

Please check out my smb.conf and tell me what I did wrong with it because I
keep getting "tree connect failed: NT_STATUS_BAD_NETWORK_NAME " error all
the time and my linux box could be seen on the network.

Your help is much appreciated.

Sincerely,

YM

Indiana University

== ==
========================================================================

I am using smbclient to test the configuration.

I was fine with "testparm" and my parameters in smb.conf are fine.

=============================================================== = =

YMSAMBA:/usr/local/samba/bin # ./nmbd -D

YMSAMBA:/usr/local/samba/bin # ./smbd -D

YMSAMBA:/usr/local/samba/bin # smbclient -L YMSAMBA -N

added interface ip=192.168.1.2 bcast=192.168.1.255 nmask=255.255.255.0
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 2.2.5]

Sharename   Type Comment

---------   ---- ------

homes             Disk Home Directories

boss1             Disk Shared Directory from YM-2

IPC$        IPC   IPC Service (Samba 2.2.5)

ADMIN$      Disk IPC Service (Samba 2.2.5)

Server Comment

--------- ------

YMSAMBA Samba 2.2.5

Workgroup   Master

---------   ------

WORKGROUP   YMSAMBA

YMSAMBA:/usr/local/samba/bin # smbclient //YMSAMBA/windows/D -U yemyint

added interface ip=192.168.1.2 bcast=192.168.1.255 nmask=255.255.255.0

Password:

Domain=[WORKGROUP] OS=[Unix] Server=[Samba 2.2.5]

tree connect failed: NT_STATUS_BAD_NETWORK_NAME

YMSAMBA:/usr/local/samba/bin # smbclient //YMSAMBA/windows/D -U ye

added interface ip=192.168.1.2 bcast=192.168.1.255 nmask=255.255.255.0

Password:

Domain=[WORKGROUP] OS=[Unix] Server=[Samba 2.2.5]

tree connect failed: NT_STATUS_BAD_NETWORK_NAME

YMSAMBA:/usr/local/samba/bin # smbclient //YMSAMBA/root/honme -U ye

added interface ip=192.168.1.2 bcast=192.168.1.255 nmask=255.255.255.0

Password:

Domain=[WORKGROUP] OS=[Unix] Server=[Samba 2.2.5]

tree connect failed: NT_STATUS_BAD_NETWORK_NAME

YMSAMBA:/usr/local/samba/bin # smbclient //YMSAMBA/boss1 -U ye

added interface ip=192.168.1.2 bcast=192.168.1.255 nmask=255.255.255.0

Password:

Domain=[WORKGROUP] OS=[Unix] Server=[Samba 2.2.5]

tree connect failed: NT_STATUS_WRONG_PASSWORD YMSAMBA:/usr/local/samba/bin #

= == =  = = ========================== = =

My smb.conf :

Please check out my smb.conf below.

#

# /etc/samba/smb.conf ist the main samba configuration file. Cf. the

# manual page of smb.conf and the included documantation in

# /usr/share/doc/packages/samba in order to understand the options

# listed here and many more features.

#

# Lines in this example which starts with ; and # are ignored comment

# ones. # indicates a comment and ; a deactivated example line.

#

# We suggest to use the command 'testparm' after any changes you made.

#

# Copyright (c) 1999 - 2001 SuSE GmbH Nuernberg, Germany.

#


#

[global]

      netbios name = YMSAMBA

      workgroup = WORKGROUP

      os level = 2

      security = user

      encrypt passwords = Yes

      guest account = Nobody

      map to guest = Bad User

# This tells samba to use the file smbusers for user mapping.

;     username map = /etc/samba/smbusers

# This tells samba to write log files per machine.

      log file = /var/log/samba/%m

# This sets an alternate log level. Default is 2.

      log level = 3

# Uncomment the following, if you want to use an existing NT-Server to

# authenticate users, but don't forget that you also have to create them

# locally!

;     security = server

;     password server = 192.168.1.10

      printing = LPRNG

      printcap name = /etc/printcap

      load printers = Yes

# These settings are a suggestion for a local network. Cf. section

# 'socket options' in the man page of smb.conf and socket(7).

      socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY

# Uncomment this, if you want to integrate your server

# into an existing net e.g. with NT-WS to prevent nettraffic

;     local master = No

# Please uncomment the following entry and replace the ip number and

# netmask with the values of your network interface configuration.

      interfaces = 192.168.1.2/255.255.255.0

# If you want Samba to act as a wins server, please set

# 'wins support' to yes.

      wins support = No

# If you want Samba to use an existing wins server, please uncomment the

# following line and replace the dummy with the wins server's ip number.

;     wins server = 192.168.1.1

# Set these two parameters to your DOS code page and appropriate UNIX

# character set. These values are for west European languages (Latin-9)

# UNIX character and MS-DOS Latin 1 code page.

      character set = ISO8859-15

      client code page = 850

# This is a simple measure against Nimba Worm. Cf. README.Win32-Viruses

      veto files = /*.eml/*.nws/riched20.dll/*.{*}/

# Do you wan't samba to act as a logon-server for your windows 95/98

# clients, so uncomment the following:

;     domain logons = Yes

;     domain master = Yes

# For a specific logon script per user

;     logon script = %U.bat

# For a specific logon script per machine

;     logon script = %m.bat

# Where to store the logon scripts.

;[netlogon]

;;    comment = Network Logon Service

      ;;  path = /var/lib/samba/netlogon

# Where profiles of Windows 9x systems are stored.

# First example for a centralized place.

;     logon home = \\%L\profiles\%U

# Second example for a subdirectory of the users home.

;     logon home = \\%L\%U\profile

# Where profiles of Windows NT systems are stored.

;     logon path = \\%L\profiles\%U

# Extra share for profiles. Default is the home of the user.

;[profiles]

;     comment = Network Profiles Service

;     path = /var/lib/samba/profiles

;     browseable = No

[homes]

      comment = Home Directories

      path = $H

      writable = yes

      valid users = %s

      read only = No

      create mask = 0640

      directory mask = 0750

      browseable = Yes

      locking = no

[boss1]

      comment = Shared Directory from YM-2

      ;; Absolute Path to this directory

      path = /windows/D

      writable = yes


      locking = no

      create mode = 0660

      directory mode = 0770

# The following share gives all users access to the Server's CD drive,

# assuming it is mounted under /media/cdrom. To enable this share,

# please remove the semicolons before the lines

;[cdrom]

;     comment = Linux CD-ROM

;     path = /media/cdrom

;     locking = No

[printers]

      comment = All Printers

      path = /var/tmp

      create mask = 0600

      printable = Yes

      browseable = Yes

 
 
 

Newbie to Samba and need help... with "tree connect failed: NT_STATUS_BAD_NETWORK_NAME " error "

Post by Andrew William » Sun, 07 Jul 2002 21:58:13



> Hi there,

> I am a newbie to Samba and I really need help to have my linux box (SuSE
> 8.0) on my home network, which is Windows XP Professional machines. It's
> just a peer to peer network and domain name is "WORKGROUP".

> My Samba is the latest one: 2.2.5 version that I downloaded yesterday,
> compiled and installed.

> My linux box's host name is "YMSAMBA" as you can see below.

> In my smb.conf, I set "netbios name" as "YMSAMBA".

> Please check out my smb.conf and tell me what I did wrong with it because I
> keep getting "tree connect failed: NT_STATUS_BAD_NETWORK_NAME " error all
> the time and my linux box could be seen on the network.

> Your help is much appreciated.

> Sincerely,

> YM

> Indiana University

snip

Quote:

> Sharename   Type Comment

> ---------   ---- ------

> homes             Disk Home Directories
> boss1             Disk Shared Directory from YM-2
> IPC$        IPC   IPC Service (Samba 2.2.5)
> ADMIN$      Disk IPC Service (Samba 2.2.5)

snip

Quote:

> tree connect failed: NT_STATUS_WRONG_PASSWORD YMSAMBA:/usr/local/samba/bin #

snip

Ok, you have 2 different problems here.  All the BAD_NETWORK_NAMEs are
because you are trying to access shares you do not have configured.
Your windows/D is not mentioned in the smb.conf at all (smbclient tells
you that) and your 'homes' should be mounted as: //YSAMBA/yemyint.

I consider that NT_STATUS_WRONG_PASSWORD to be a clue.  You have
encrypted passwords (this is good) but do not say if you used the
smbpasswd program to set your Samba password.  Look at doing a
'smbpasswd -a yemyint' and maybe adding an entry for 'nobody' as well.
Whilst on that subject, look at
http://home.arcor.de/36bit/samba.html#4.10 and consider changing your
guest account to something else.

best of luck.

--
opinions personal, facts suspect.
http://home.arcor.de/36bit/samba.html

 
 
 

Newbie to Samba and need help... with "tree connect failed: NT_STATUS_BAD_NETWORK_NAME " error "

Post by Ye Myin » Thu, 11 Jul 2002 11:23:48


Dear Mr. Andrew Williams,

Thanks to your sound advice, my Samba is up and running and talking to the
two Windows XP boxes at home.

Cheers..!!

YM
Indiana University

==== = = = = = ==== ===  ===========



> > Hi there,

> > I am a newbie to Samba and I really need help to have my linux box (SuSE
> > 8.0) on my home network, which is Windows XP Professional machines. It's
> > just a peer to peer network and domain name is "WORKGROUP".

> > My Samba is the latest one: 2.2.5 version that I downloaded yesterday,
> > compiled and installed.

> > My linux box's host name is "YMSAMBA" as you can see below.

> > In my smb.conf, I set "netbios name" as "YMSAMBA".

> > Please check out my smb.conf and tell me what I did wrong with it
because I
> > keep getting "tree connect failed: NT_STATUS_BAD_NETWORK_NAME " error
all
> > the time and my linux box could be seen on the network.

> > Your help is much appreciated.

> > Sincerely,

> > YM

> > Indiana University

> snip

> > Sharename   Type Comment

> > ---------   ---- ------

> > homes             Disk Home Directories
> > boss1             Disk Shared Directory from YM-2
> > IPC$        IPC   IPC Service (Samba 2.2.5)
> > ADMIN$      Disk IPC Service (Samba 2.2.5)

> snip

> > tree connect failed: NT_STATUS_WRONG_PASSWORD

YMSAMBA:/usr/local/samba/bin #

- Show quoted text -

Quote:

> snip

> Ok, you have 2 different problems here.  All the BAD_NETWORK_NAMEs are
> because you are trying to access shares you do not have configured.
> Your windows/D is not mentioned in the smb.conf at all (smbclient tells
> you that) and your 'homes' should be mounted as: //YSAMBA/yemyint.

> I consider that NT_STATUS_WRONG_PASSWORD to be a clue.  You have
> encrypted passwords (this is good) but do not say if you used the
> smbpasswd program to set your Samba password.  Look at doing a
> 'smbpasswd -a yemyint' and maybe adding an entry for 'nobody' as well.
> Whilst on that subject, look at
> http://home.arcor.de/36bit/samba.html#4.10 and consider changing your
> guest account to something else.

> best of luck.

> --
> opinions personal, facts suspect.
> http://home.arcor.de/36bit/samba.html

 
 
 

1. Problems with special characters like ("?","ΓΌ","?","?",aso.)

Hi

I use Samba 2.0.4b.
When I copy a file with a filename including a special
character from a win95 machine to my linux server, I dont find the special
characters any more. They have changed to "_" or something like that.

What can I do?
Do I have to write something special in the smb.conf?

Cya
   Markus

PGBP (PrettyGoodBlubberPrivacy) V9.9478239jd2n38943
----
dslktj3reio598uterdghnv897re7thj5258934uteretpjeriotjergmnfdg9834t34terehwjkrwq
ejrklejwr98u5r8934nf3nr04n58934vn5534n2c5345m493056xk05,29035734256nr4k3985u4t8
g45t70,df5?.54?5345934+534?5634685356834?tli34290571383rfhbjksdbhfztf4567vse
kdfvqkurzfj438rtjifm3409tmk3409tf3490jt43095j23423p4k2390423i409234k23904kkdfks
...
Code verified!
----

2. Running CDE under HPUX 10.20

3. Error 633 "Dailup connection "x" failed" HELP

4. MDL Apps

5. Swat fails to start smbd when click "start" or "restart" - SOLUTION

6. determining rights on network

7. "bind failed"/"Address already in use"..

8. Barcodes

9. The Parser Component named "Biztalk.ParserFFile.1" failed on the method "GetInterchangeDetails"

10. Need Start Up Business Money "Fast" Read "HOW"!!!!!!!!!

11. Windows "Help" Can't Create "Find" Database

12. Error "Gethostbyaddr failed" connecting on samba server from NT

13. Help please = getObject("WinNT://" & sDomain & "/" & sUser)