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 05-07-2003, 07:20 AM   #1
bm1
Member
 
Registered: Nov 2002
Location: NZ
Distribution: freeBSD, slack
Posts: 156

Rep: Reputation: 30
Nt_bad_network_name


when i try to access samba on my linux comp i get
ignoring badly formed line in configuration file: path /home/bm
tree connect failed NT_BAD_NETWORK_NAME

when i try to access my linux comp from network neighbourhood in windows i get
you were not connected because a duplicate name exists on the network.

i have only 2 comps rh8 and winxp
i went through this document

http://www.redhat.com/docs/manuals/l...nfiguring.html

i setup encrypted passwords because winxp (sp1) requires it
and this is what i added at the end of the smb.conf

[sharename]
comment = bmlinux
path = /home/bm/
valid users = bm
public = no
writable = yes
printable = no
create mask = 0765

please help

Last edited by bm1; 05-07-2003 at 07:29 AM.
 
Old 05-07-2003, 09:17 AM   #2
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Re: Nt_bad_network_name

Quote:
Originally posted by bm1
when i try to access samba on my linux comp i get
ignoring badly formed line in configuration file: path /home/bm
tree connect failed NT_BAD_NETWORK_NAME

when i try to access my linux comp from network neighbourhood in windows i get
you were not connected because a duplicate name exists on the network.

i have only 2 comps rh8 and winxp
i went through this document

http://www.redhat.com/docs/manuals/l...nfiguring.html

i setup encrypted passwords because winxp (sp1) requires it
and this is what i added at the end of the smb.conf

[sharename]
comment = bmlinux
path = /home/bm/
valid users = bm
public = no
writable = yes
printable = no
create mask = 0765

please help
http://www.tldp.org/HOWTO/SMB-HOWTO.html
Try to change your hostname and try to connect again.
(The usual hostname localhost has to be changed if you use a workgroup with the same name)
 
Old 05-07-2003, 09:22 AM   #3
td3201
Member
 
Registered: Jan 2002
Location: Omaha, NE US
Distribution: Red Hat/CentOS
Posts: 226

Rep: Reputation: 30
hrm, dont think this is it but remove the training '/' on your path line. If it ignored that line during startup then that share has no place to mount it clients. also notice what you put there:
ignoring badly formed line in configuration file: path /home/bm

why is there no '=' in between path and /home/brn as your config shows? hrm...
 
Old 05-07-2003, 06:57 PM   #4
bm1
Member
 
Registered: Nov 2002
Location: NZ
Distribution: freeBSD, slack
Posts: 156

Original Poster
Rep: Reputation: 30
ok i can access samba on my linux comp. i use the /tmp directory to share and it works. but still my windows comp wont access it. still getting the error message that there is duplicate names on the network. i wonder, i set up a shared internet connection with the ip addresses does windows give out another ipaddress or will it use the same or does it not matter? my linux comp is in MSHOME work group. should i put it back to its own workgroup. thanks heaps
 
Old 05-07-2003, 07:54 PM   #5
td3201
Member
 
Registered: Jan 2002
Location: Omaha, NE US
Distribution: Red Hat/CentOS
Posts: 226

Rep: Reputation: 30
No, the workgroup should be the same. What is the name of your windows box? The shared internet connection shouldnt matter.
 
Old 05-07-2003, 09:36 PM   #6
bm1
Member
 
Registered: Nov 2002
Location: NZ
Distribution: freeBSD, slack
Posts: 156

Original Poster
Rep: Reputation: 30
ill take you through how i connect to samba. first is start samba using service smb start. then the samba daemons start [ok]
i can acces my shared linux directory on linux with smbclient//192.168.1.2/tmp -U bm
linux prompts me for a password and then the prompt changes to smb: \> and im inside samba.

am i missing anything?

my windows comp name is bm-wl2r0ygby2vq its ip is 192.168.1.1 in network neighbourhood i can see both boxes but i cant open the linux box i get error duplicate names. i have had trouble with getting my win box on the network and winxp changing the ip address for the internet sharing but i just change them back.

my linux box shows up as samba server(localhost). im thinlking do the ip addresses of each comp have to be even more different than just the last numbers?
win 192.168.1.1
linux 192.168.1.2
im nearly there i can feel it

i saw some things in smb.conf about wins servers not sure if that applies to me. any ideas anyone

Last edited by bm1; 05-07-2003 at 09:47 PM.
 
Old 05-08-2003, 12:10 AM   #7
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Quote:
Originally posted by bm1
ill take you through how i connect to samba. first is start samba using service smb start. then the samba daemons start [ok]
i can acces my shared linux directory on linux with smbclient//192.168.1.2/tmp -U bm
linux prompts me for a password and then the prompt changes to smb: \> and im inside samba.

am i missing anything?

my windows comp name is bm-wl2r0ygby2vq its ip is 192.168.1.1 in network neighbourhood i can see both boxes but i cant open the linux box i get error duplicate names. i have had trouble with getting my win box on the network and winxp changing the ip address for the internet sharing but i just change them back.

my linux box shows up as samba server(localhost). im thinlking do the ip addresses of each comp have to be even more different than just the last numbers?
win 192.168.1.1
linux 192.168.1.2
im nearly there i can feel it

i saw some things in smb.conf about wins servers not sure if that applies to me. any ideas anyone
well change the hostname by using the command hostname
or echo your hostname to /proc/sys/kernel/hostname
do also the necessary changes in /etc/
i want to tell that i also went through the duplicate names incident-
i checked out and found that the workgroup i had set for linux machines were same(LINUX_LAB)
and these machines had the same hostname.So when i opened it up in win2k i got duplicate name error.
When I changed the hostname it worked!

Last edited by rch; 05-08-2003 at 12:37 AM.
 
Old 05-08-2003, 04:55 AM   #8
bm1
Member
 
Registered: Nov 2002
Location: NZ
Distribution: freeBSD, slack
Posts: 156

Original Poster
Rep: Reputation: 30
what changes do i do in /etc
 
Old 05-08-2003, 05:09 AM   #9
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
man 1 hostname
man 5 host.conf
 
Old 05-08-2003, 06:39 AM   #10
bm1
Member
 
Registered: Nov 2002
Location: NZ
Distribution: freeBSD, slack
Posts: 156

Original Poster
Rep: Reputation: 30
/bin/hostname is unreadable
/etc/host.conf order host,binds

i dont know what
[
order host,binds
]
means? i am not getting the duplicate names error anymore. i get is not accessible you might not have permission. the network path was not found. i use this command to open samba
smbclient //192.168.1.2/tmp -U bm
is there anything wrong there? iam prompted for a password for the bm logon account.
i cant use
smbclient//bmlinux/tmp -U bm
it always fails, bmlinux is my host name should that be able to work?
 
Old 05-13-2003, 01:17 AM   #11
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Quote:
Originally posted by bm1
/bin/hostname is unreadable
/etc/host.conf order host,binds

i dont know what
[
order host,binds
]
means? i am not getting the duplicate names error anymore. i get is not accessible you might not have permission. the network path was not found. i use this command to open samba
smbclient //192.168.1.2/tmp -U bm
is there anything wrong there? iam prompted for a password for the bm logon account.
i cant use
smbclient//bmlinux/tmp -U bm
it always fails, bmlinux is my host name should that be able to work?
/bin/hostname is unreadable -what do you mean
hostname sets up your hostname
http://www.tbc.net/~mikes/linux/home...HOWTO-TOC.html
 
  


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



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

All times are GMT -5. The time now is 11:05 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