LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-21-2003, 04:44 PM   #1
wlfdgcrkz
Member
 
Registered: Apr 2003
Location: North Hollywood Ca
Distribution: RedHat FreeBSD
Posts: 130

Rep: Reputation: 16
samba & NT_STATUS_BAD_NETWORK_NAME


Since updating to rh9 ive been getting incessent complaining from samba configuration. It won't accept any passwords and/or shows only empty directories. Wiping smb.conf clean does nothing to help. Swat ,manual configuration or random gui same thing. the most recent complaint is "NT_STATUS_BAD_NETWORK_NAME".
My configuration is simple as it is a closed network through an internal interface (also used for ip masqu).

# Global parameters
[global]
workgroup = OURHOUSE
interfaces = 192.168.1.1
encrypt passwords = Yes
update encrypted = Yes
username map = /etc/samba/smbusers
unix password sync = Yes
log level = 2
log file = /var/log/samba.log
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192
wins support = Yes
username = jacob
valid users = jacob randi
admin users = jacob randi
guest ok = Yes
hosts allow = randi 192.168.1.1 192.168.1.2 linux
map system = Yes
map hidden = Yes

[print1|My Printer 1]
path = /tmp
printable = Yes

[/shared]
path = /shared
read only = No

[/home/]
path = /home


heres what happens:
[root@linux root]# smbclient //192.168.1.1/shared
added interface ip=192.168.1.1 bcast=192.168.1.255 nmask=255.255.255.0
Password:
Domain=[OURHOUSE] OS=[Unix] Server=[Samba 2.2.7a-security-rollup-fix]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
[root@linux root]# smbclient //192.168.1.1/shared
added interface ip=192.168.1.1 bcast=192.168.1.255 nmask=255.255.255.0
Password:
Domain=[OURHOUSE] OS=[Unix] Server=[Samba 2.2.7a-security-rollup-fix]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
thanks
 
Old 04-21-2003, 04:51 PM   #2
sandy
Member
 
Registered: Aug 2002
Location: Mumbai,India
Distribution: Linux Mint 12, Gentoo
Posts: 230

Rep: Reputation: 30
Please check whether the share still exists in the target comp. AFAIK Samba gives that error when it cannot find such a share in the target PC.

try smbclient -L ip address of target
 
Old 04-21-2003, 04:53 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
My first impulse would be to rename the server
from
Server=[Samba 2.2.7a-security-rollup-fix]
to
Server=[Samba]

...
I haven't got the specs for nmb
naming conventions handy, but
am almost certain there's both
a length restriction and no whitespace
allowed...


Cheers,
Tink
 
Old 04-21-2003, 04:54 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Correct me if I'm wrong but I have never seen a "/" in a share name like "[/shared]" shouldn't it be "[shared]"? The same goes for home.
 
Old 04-21-2003, 05:04 PM   #5
wlfdgcrkz
Member
 
Registered: Apr 2003
Location: North Hollywood Ca
Distribution: RedHat FreeBSD
Posts: 130

Original Poster
Rep: Reputation: 16
I changed smb.conf to this and still the same.

# Samba config file created using SWAT
# from UNKNOWN (127.0.0.1)
# Date: 2003/04/21 15:03:03

# Global parameters
[global]
workgroup = OURHOUSE
server string = linux box
interfaces = 192.168.1.1
encrypt passwords = Yes
update encrypted = Yes
username map = /etc/samba/smbusers
unix password sync = Yes
log level = 2
log file = /var/log/samba.log
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192
wins support = Yes
username = jacob
valid users = jacob randi
admin users = jacob randi
guest ok = Yes
hosts allow = randi 192.168.1.1 192.168.1.2 linux
map system = Yes
map hidden = Yes

[print1|My Printer 1]
path = /tmp
printable = Yes

[shared]
path = /shared
read only = No

[home/]
path = /home
 
Old 04-21-2003, 05:09 PM   #6
sandy
Member
 
Registered: Aug 2002
Location: Mumbai,India
Distribution: Linux Mint 12, Gentoo
Posts: 230

Rep: Reputation: 30
Yes there shouldn't be a / in the share name . It should be [myshare]
 
Old 04-21-2003, 05:12 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Could you post a chunk from your
samba logfile?

Cheers,
Tink
 
Old 04-21-2003, 05:27 PM   #8
wlfdgcrkz
Member
 
Registered: Apr 2003
Location: North Hollywood Ca
Distribution: RedHat FreeBSD
Posts: 130

Original Poster
Rep: Reputation: 16
i gor in via teminal session on server but host and konquerer only see empty files.

log:
[2003/04/21 15:22:43, 2] smbd/reply.c:reply_special(92)
netbios connect: name1=192.168.1.1 name2=LINUX
[2003/04/21 15:22:43, 2] smbd/reply.c:reply_special(111)
netbios connect: local=192.168.1.1 remote=linux
[2003/04/21 15:22:43, 2] lib/access.c:check_access(329)
Allowed connection from 192.168.1.1 (192.168.1.1)
[2003/04/21 15:22:43, 0] smbd/service.c:make_connection(381)
make_connection: jacob logged in as admin user (root privileges)
[2003/04/21 15:22:43, 2] smbd/server.c:exit_server(461)
Closing connections
[2003/04/21 15:22:48, 0] smbd/oplock_linux.c:linux_init_kernel_oplocks(287)
Failed to setup RT_SIGNAL_LEASE handler
[2003/04/21 15:22:48, 1] lib/util_sock.c:get_socket_name(977)
Gethostbyaddr failed for 192.168.1.1
[2003/04/21 15:22:48, 2] lib/access.c:check_access(329)
Allowed connection from 192.168.1.1 (192.168.1.1)
[2003/04/21 15:22:48, 2] smbd/reply.c:reply_special(92)
netbios connect: name1=192.168.1.1 name2=LINUX
[2003/04/21 15:22:48, 2] smbd/reply.c:reply_special(111)
netbios connect: local=192.168.1.1 remote=linux
[2003/04/21 15:22:48, 2] lib/access.c:check_access(329)
Allowed connection from 192.168.1.1 (192.168.1.1)
[2003/04/21 15:22:48, 0] smbd/service.c:make_connection(381)
make_connection: jacob logged in as admin user (root privileges)
[2003/04/21 15:22:48, 1] smbd/service.c:make_connection(636)
linux (192.168.1.1) connect to service shared as user jacob (uid=0, gid=500) (pid 11700)
[2003/04/21 15:22:59, 2] smbd/server.c:exit_server(461)
Closing connections
[2003/04/21 15:22:59, 1] smbd/service.c:close_cnum(677)
linux (192.168.1.1) closed connection to service shared
[2003/04/21 15:23:10, 2] smbd/server.c:exit_server(461)
Closing connections
[2003/04/21 15:23:10, 1] smbd/service.c:close_cnum(677)
linux (192.168.1.1) closed connection to service shared

smb.conf:
# Samba config file created using SWAT
# from UNKNOWN (127.0.0.1)
# Date: 2003/04/21 15:25:39

# Global parameters
[global]
workgroup = OURHOUSE
server string = linuxbox
interfaces = 192.168.1.1
encrypt passwords = Yes
update encrypted = Yes
username map = /etc/samba/smbusers
unix password sync = Yes
log level = 2
log file = /var/log/samba.log
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192
wins support = Yes
username = jacob
valid users = jacob randi
admin users = jacob randi
guest ok = Yes
hosts allow = randi 192.168.1.1 192.168.1.2 linux
map system = Yes
map hidden = Yes

[print1|My Printer 1]
path = /tmp
printable = Yes

[shared]
path = /shared
read only = No

[home]
path = /home

[homes]
valid users = %S
read only = No



thanx alot you guys!
 
Old 04-21-2003, 05:35 PM   #9
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
What exactly is:
username = jacob

doing in the global section?

if you man smb.conf "username" is not a vaild variable.
 
Old 04-24-2003, 09:36 PM   #10
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
You can do a testparm and see if there are any errors in your config file.
 
Old 05-19-2009, 09:55 AM   #11
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
you need
netbios name = your_server_hostname
in smb.conf global configs
 
  


Reply



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: 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
Samba+windows printer=NT_STATUS_BAD_NETWORK_NAME rickenbacherus Linux - Networking 0 05-27-2004 05:28 PM
What does NT_STATUS_BAD_NETWORK_NAME mean ? ZhiYi Linux - Networking 2 02-14-2003 11:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:05 AM.

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