LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 07-05-2002, 03:16 AM   #1
monowar
Member
 
Registered: Jun 2002
Location: Canada
Distribution: RedHat
Posts: 30

Rep: Reputation: 15
Problems with Samba


Hi,
Recently I setup samba networking between linux and windows 2000. In my windows computer the linux machine shown as 'localhost'. But the problem is when I try to access the linux computer from windows it gives the following error message-

"//Localhost is not accessible
A duplicate name exits on the network."

Again, when I'm try to access windows machine from linux it gives the following error message-

"[root@localhost root]# mount -t smbfs //sumon/hda1 ~/windows
Password:
1661: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid share name)
SMB connection failed"

I'm try different password and different command but the result is same. Someone told me to enable the "Guest" account from windows 2000 and it will solve my problem. So I enable "Guest" account of windows 2000 but still the same error is coming.

I'm using the following smb.conf file for my samba networking-

[global]
workgroup = SELF
server string = Slak Server
log file = /var/log/samba.%m
max log size = 50
security = share
socket options = TCP_NODELAY SO_RCVBUF=8760 SO_SNDBUF=8760
dns proxy = no

[shared]
path = /shared
public = yes
only guest = yes
writable = yes
printable = no

Now, what's the solution for my problems. Please someone help me.

Monowar.
 
Old 07-05-2002, 05:08 AM   #2
chens_83
Member
 
Registered: Dec 2001
Location: Adelaide , South Australia
Distribution: redhat 7.2, Debian , OpenBSD
Posts: 123

Rep: Reputation: 15
step 1 : you have the wrong share name
it should be //sumon/shared coz thats what youve called your share in smb.conf
 
Old 07-05-2002, 05:26 AM   #3
monowar
Member
 
Registered: Jun 2002
Location: Canada
Distribution: RedHat
Posts: 30

Original Poster
Rep: Reputation: 15
New problem with Samba

Hi,
Now I put little bit of change in my smb.conf. But now I'm getting a error message when I'm trying to access my linux pc from windows. It gives the following message-

"//Monowar is not accessible
The network path was not found."

Here is my new smb.conf-

# Global parameters
[global]
workgroup = SELF
netbios name = Monowar
encrypt passwords = Yes

[//sumon/data]
path = /root/C
read only = no
public = yes

What can I do now?

Monowar.
 
Old 07-06-2002, 02:12 AM   #4
chens_83
Member
 
Registered: Dec 2001
Location: Adelaide , South Australia
Distribution: redhat 7.2, Debian , OpenBSD
Posts: 123

Rep: Reputation: 15
um your smb.conf wrong me thinks
is that all you have in smb.conf???
your share should be called [test] not [//sumon/data]
then you need to test by
smbclient -L localhost
it should appear
you can then mount it on itself by
mount -t smbfs -o username=whoever //localhost/test /sambatest
u also need to make a valid user
 
Old 07-08-2002, 11:13 AM   #5
monowar
Member
 
Registered: Jun 2002
Location: Canada
Distribution: RedHat
Posts: 30

Original Poster
Rep: Reputation: 15
Hi,

What about the windows 2000 problem. When I try to access my linux computer from windows I get the following error message-

"//Monowar is not accessible
The network path was not found."

How can I solve it. Please help me.

Monowar.
 
Old 07-12-2002, 04:43 AM   #6
monowar
Member
 
Registered: Jun 2002
Location: Canada
Distribution: RedHat
Posts: 30

Original Poster
Rep: Reputation: 15
Hi,
My problem is not solve yet. Please someone help me.

Monowar.
 
Old 07-12-2002, 12:16 PM   #7
rlkiddjr
Member
 
Registered: Feb 2002
Distribution: FreeBSD 4.9
Posts: 69

Rep: Reputation: 15
Ok, the reason you are getting Server not accessible message is probably because when you installed RH Linux you chose the medium firewall setting. What this does is block ports 137-139 which is needed by Samba. Unblock these ports and I bet your problem is solved.
 
Old 07-13-2002, 02:36 AM   #8
monowar
Member
 
Registered: Jun 2002
Location: Canada
Distribution: RedHat
Posts: 30

Original Poster
Rep: Reputation: 15
Hi rlkiddjr,

Thanks for your information. Now can you inform me how can I change my firewall setting from kde. Please inform me.

Monowar.
 
Old 07-13-2002, 03:03 AM   #9
monowar
Member
 
Registered: Jun 2002
Location: Canada
Distribution: RedHat
Posts: 30

Original Poster
Rep: Reputation: 15
Hi,
I'm able to change my firewall setting and now I'm able to access my linux computer from windows. But when I try to access the folder which one I shared from linux I'm getting the following error message-

\\Monowar\shared is not accessible
The network name cannot be found.

Please help me to solve this problem. Thanks.
 
Old 07-13-2002, 05:50 PM   #10
paulonline2501
LQ Newbie
 
Registered: Jul 2002
Location: London, UK
Distribution: 7.2
Posts: 6

Rep: Reputation: 0
access denied

this will probable be an authentication problem.
have you added your user passwords with:
smbpasswd -a username
 
Old 07-16-2002, 09:44 AM   #11
monowar
Member
 
Registered: Jun 2002
Location: Canada
Distribution: RedHat
Posts: 30

Original Poster
Rep: Reputation: 15
Hi,
I'm add user for samba but the problem is yet not solved. What can I do now?

Monowar.
 
Old 07-16-2002, 11:17 AM   #12
BruceCadieux
Member
 
Registered: Apr 2002
Location: Wales MA.
Distribution: openSuSE 11.1
Posts: 409

Rep: Reputation: 32
I know this may sound a little over simplistic, but recently after creating a share I had the same problem. I went to the folder I was trying to share, right clicked it changed the permissions to give others access, and all has been fine since.

I know it's probably not the problem, but sometimes we overlook the simple things in search of more complicated problems.
 
Old 03-01-2004, 07:58 PM   #13
12345671
LQ Newbie
 
Registered: Mar 2004
Posts: 5

Rep: Reputation: 0
Hi Monowar and rlkiddjr

I meet the similar problem as Monowar. While mine is related with iptables I think. Because when I choose "no firewall", then windows users can log in Linux samba server with their samba user name and password. While if I choose high security firewall, even I open the port 137,138,139 like the follwoings, then they can not access Linux samba server, the error is :
\\RH9 is not accessible , the network path cannot find. Could you tell me what shall I add in my iptables to make windows user enter samba server? In my iptabels I only open DHCP , SSH and 137-139.

the folliwing is my iptables, I think I should also open other port, but don't know. Thanks for your help,

# Firewall configuration written by lokkit
# Manual customization of this file is not recommended.
# Note: ifup-post will punch the current nameservers through the
# firewall; such entries will *not* be listed here.
*filter
INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Lokkit-0-50-INPUT - [0:0]
-A INPUT -j RH-Lokkit-0-50-INPUT
-A FORWARD -j RH-Lokkit-0-50-INPUT
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 22 --syn -j ACCEPT
-A RH-Lokkit-0-50-INPUT -p udp -m udp -s 0/0 --sport 67:68 -d 0/0 --dport 67:68 -i eth0 -j ACCEPT
-A RH-Lokkit-0-50-INPUT -p udp -m udp -s 0/0 --sport 67:68 -d 0/0 --dport 67:68 -i eth1 -j ACCEPT
-A RH-Lokkit-0-50-INPUT -i lo -j ACCEPT
-A RH-Lokkit-0-50-INPUT -p udp -m udp -s 130.95.100.5 --sport 53 -d 0/0 -j ACCEPT
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --syn -j REJECT
-A RH-Lokkit-0-50-INPUT -p udp -m udp -j REJECT
-A INPUT -p tcp -s 192.168.0.1/24 --dport 139 --syn -j ACCEPT
-A INPUT -p udp -s 192.168.0.1/24 --dport 138 -j ACCEPT
-A INPUT -p udp -s 192.168.0.1/24 --dport 137 -j ACCEPT
COMMIT
 
  


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/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
Samba Problems again :) Iztari Linux - Networking 18 06-24-2004 11:00 AM
samba problems... Digital_Err0r Linux - Networking 1 03-20-2004 04:46 PM
Samba problems. Zombie13 Mandriva 4 03-11-2004 02:34 AM
[Samba] Problems since update to samba 3 ffred Linux - Networking 6 01-02-2004 06:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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