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
 
LinkBack Search this Thread
Old 02-14-2003, 08:25 AM   #1
ZhiYi
Member
 
Registered: Feb 2003
Distribution: Redhat
Posts: 30

Rep: Reputation: 15
Question What does NT_STATUS_BAD_NETWORK_NAME mean ?


Hi!
I have an ethernet connection between 2 redhat linux 8 pcs at home.

I went to the terminal and typed /etc/init.d/smb start to start samba. The 2 messages appeared: starting SMB services [OK]
starting NMB services [OK]

Then I typed the ps aux | grep smb and the following messages appeared : root 1401 0.0 0.7 4916 1804 ? S 21:23 0:00 smbd-D
root 1459 0.0 0.2 3276 628 pts/os 21:41 0:00 grep smb
Does the above output messages mean that samba is up and working properly ?

Then I typed the smbclient //169.254.156.54/share and the following output messages appeared:
added interface ip=169.254.61.56 bcast=169.254.255.255 nmask=255.255.0.0
password:
I did not assign a network passwork so I typed Enter
Then the messages appeared:
Anonymous login successful
Domain=[ONG] OS=[UNIX] Server=[samba 2.2.5]
tree connect failed:NT_STATUS_BAD_NETWORK_NAME

Do you know what does the last output sentence mean and where does the problem lie and how to solve it ?
Oh yes,why is there no directory name e.g /usr/sbin/smbd before the smbd-D part ?

Please reply quickly if you can......thanks!!
 
Old 02-14-2003, 08:28 AM   #2
jmarsh
Member
 
Registered: Dec 2002
Posts: 129

Rep: Reputation: 15
check you smb.conf file. in order to connect to samba from another machine you need a username and password on the unix box that samba lies. also are you trying to connect from a linux or windows machine?
 
Old 02-14-2003, 11:31 AM   #3
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
The login appears to be successful so, I'm not so sure about having to have a user/password.

I note that your domain is [ONG] and assume that you've set this in your smb.conf on both ends

The running of smbd would imply that samba is up and running correctly, yes.

But :

Note that smbclient is case sensitive with respect to the SHARE name so you must get it exactly right otherwise you'll see the dreaded NT_STATUS_BAD_NETWORK_NAME error.

You can test the status of a machine using the smbclient -L command. Syntax is like :

smbclient -L /server -U username

It should show you the share names visible. So for a machine on my network it looks like this :

Sharename Type Comment
--------- ---- -------
Downloads Disk
HPLaserJ Printer HP LaserJet 6P/6MP PostScript
OmniBack Disk
Percy Printer HP LaserJet 6MP


where Downloads is a share name.

Slick.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
tree connect failed: NT_STATUS_BAD_NETWORK_NAME nilantha Linux - Networking 14 03-07-2011 10:38 PM
samba & NT_STATUS_BAD_NETWORK_NAME wlfdgcrkz Linux - Software 10 05-19-2009 09:55 AM
samba: NT_STATUS_BAD_NETWORK_NAME sohmc Linux - Networking 7 12-21-2007 11:49 AM
Nt_status_bad_network_name rtcary Linux - Newbie 0 08-10-2005 06:24 PM
Nt_status_bad_network_name MrFish Linux - Software 2 02-06-2005 01:54 AM


All times are GMT -5. The time now is 09:27 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration