Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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
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.
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.