Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
02-02-2003, 01:05 PM
|
#1
|
LQ Newbie
Registered: Feb 2002
Posts: 11
Rep:
|
samba- network path not found
When I try to connect to the smaba share from Windows2000, I get 'network path not found.'
I tried mapping the drive using the ip of the linux RH8, and same result.
I think I have NetBois, browse master, problems. WHat should these settings look like when Win2000 is involved, and any other ideas would be appreciated.
|
|
|
02-02-2003, 05:12 PM
|
#2
|
Member
Registered: Jul 2002
Location: Lacon, IL
Distribution: Slackware
Posts: 35
Rep:
|
Do you have the security = user
Try: security = share
You must add yourself as a samba user to be able to access anything if your security is set to user.
plus make sure your in the same workgroup
Hope this helped
|
|
|
02-02-2003, 06:37 PM
|
#3
|
Member
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444
Rep:
|
Check your firewall settings. Make sure that your firewall isn't blocking all access from the network.
I don't think you have a password problem at this stage. It seems as if your Windows machine can't see the share at all.
There could be a number of other reasons. Why not post your smb.conf file so we can look at it?
|
|
|
02-02-2003, 07:06 PM
|
#4
|
Member
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444
Rep:
|
Are you on an existing Windows network or are these the only two machines that need to be linked?
Are you using XP Pro or XP Home?
|
|
|
02-02-2003, 07:52 PM
|
#5
|
LQ Newbie
Registered: Feb 2002
Posts: 11
Original Poster
Rep:
|
I added the user rw in the vailid users section,
I am confused about how the name of the machine, NetBois, and DNS, relate. Is there an issue that needs addressing there?
I am using Windows2000Pro, Win98se, and this RH8, through a linksys router/firewall cable modem. All the firewall settings are off, that I can tell, and the windows network is okay between the win2000 and win98 machines.
Are there RH firewall settings for me to look at? If so, how do I do that?
# Samba config file created using SWAT
# from localhost.localdomain (127.0.0.1)
# Date: 2003/02/02 18:40:02
# Global parameters
[global]
netbios name = BERTSREDHAT
server string = Samba Server
encrypt passwords = Yes
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
unix password sync = Yes
log file = /var/log/samba/%m.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
preferred master = True
local master = No
domain master = False
dns proxy = No
hosts allow = 192.168.1. 192.168.2. 127.
printing = lprng
[homes]
comment = Home Directories
path = /home
valid users = %S,rw
read only = No
create mask = 0664
directory mask = 0775
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
|
|
|
02-04-2003, 02:39 PM
|
#6
|
LQ Newbie
Registered: Feb 2003
Location: Reno, NV
Distribution: RH 7.x , 8
Posts: 4
Rep:
|
bert,
-- regarding RH8 firewalling... if you did a standard RH install you probably have it on. (In general I think it is probably better to default on and have to learn when it is OK to turn it off than to have a new install running unprotected. But you are already insulated from the public 'net by your router firewall system, so....)
to see if it's running try
service smb status
from a root login.
To turn off and try it you could
service smb stop
and if that helps, you could keep it off (over a reboot, etc) with
chkconfig smb off
g'luck
|
|
|
02-04-2003, 03:17 PM
|
#7
|
Member
Registered: Jul 2002
Location: Lacon, IL
Distribution: Slackware
Posts: 35
Rep:
|
The nebios name is what appears in the network neiborhood. If you map the network drive you would use the nebios name
\\BERTSREDHAT\HOMES
this will give you the listing of /home becouse its the
path = /home in the [homes] share
in the file you posted I seen no
security =
or
workgroup =
you need to add the workgroup name that you are in to that file (smb.conf)
In 98se, if you right click your network icon, click properties then identificatin, will show your workgroup name.
In slackware I use testparm to check the config status on the smb.conf file, not sure if RH has that ans ps ax gives me a listing of what proccesas are running.
Make sure smbd -D and nmbd -D are.
|
|
|
02-04-2003, 06:45 PM
|
#8
|
LQ Newbie
Registered: Feb 2002
Posts: 11
Original Poster
Rep:
|
I am using SWAT to configure the smb.conf file.
I copied the short version of the file, in the long version I have
workgroup = WORKGROUP
security = USER
I just tried
security = SHARE
restarted the server and same result,
'Network Path not found'
Do I have to configure BIND or any other service, or some settings in the 'browse master' elections or something like that?
|
|
|
02-04-2003, 07:48 PM
|
#9
|
LQ Newbie
Registered: Feb 2002
Posts: 11
Original Poster
Rep:
|
I am having a hard time understanding what my DNS file should look like. Should the Master Zone for the RH8 box be localhost or Bertsredhat? Or should there be an entry for Bertsredhat in DNS with an ip?
if this doesn't make sense, it is because I don't understand fully the concepts.
|
|
|
02-05-2003, 09:30 AM
|
#10
|
Member
Registered: Jul 2002
Location: Lacon, IL
Distribution: Slackware
Posts: 35
Rep:
|
localhost, wins server will put the name to address for you.
Have you checked you firewall rules as jamrock suggested?
If not its probly the problem. Try using this script for your fire wall then see if the share comes into view.
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -t nat PREROUTING ACCEPT
iptables -t nat POSTROUTING ACCEPT
iptables -t nat OUTPUT ACCEPT
iptables -t mangle -P PREROUTING ACCEPT
iptables -t mangle -P OUTPUT ACCEPT
iptables -F
iptables -t nat -F
iptables -t mangle -F
iptables -X
iptables -t nat -X
iptables -t mangle -X
If this is your router than you will want to have also add another POSTROUTING rule to have internet to the internal net.
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
and this assumes eth0 is the external nic to dsl/cable modem.
|
|
|
02-05-2003, 10:12 AM
|
#11
|
Member
Registered: Jul 2002
Location: Lacon, IL
Distribution: Slackware
Posts: 35
Rep:
|
oops made a mistake change the difference in these three lines
add -P after nat
iptables -t nat -P PREROUTING ACCEPT
iptables -t nat -P POSTROUTING ACCEPT
iptables -t nat -P OUTPUT ACCEPT
of course if this is your router than that last line will stop you from viewing anything...my thought is not to use samba shares on a router.
Now this leaves your router open to the outside world!!
you might add
iptables -A INPUT -p tcp --syn -j DROP
at the end.
|
|
|
02-05-2003, 12:38 PM
|
#12
|
LQ Newbie
Registered: Feb 2003
Posts: 10
Rep:
|
I throuhg together a little something to get the beginers going, as am I. This is the easiest way to share something on the network.
http://hellzone.no-ip.com/home/samba.html
I hope it helps!
~Trip
|
|
|
02-05-2003, 08:03 PM
|
#13
|
LQ Newbie
Registered: Feb 2002
Posts: 11
Original Poster
Rep:
|
FIREWALL, that was the problem,
thanks,
|
|
|
04-05-2003, 12:14 PM
|
#14
|
LQ Newbie
Registered: Apr 2003
Posts: 1
Rep:
|
Samba export
I there
I seem to have the exact same problem, however I know that my firewall is actually down since I shut it down manually. But I'm still getting a 'network path not found'. In my Win2k, I can see the linux computer in the workgroup 'Home_lan' but that's it. Could it be possible that the linux root blocks any connection to my linux box?
Whereis a my smb.conf:
workgroup = Home_lan
server string = Laptop Samba Server
hosts allow = 192.168.2.10.
security = share
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
[webserver]
comment = Network Logon Service
path = /webserver
guest ok = no
writable = yes
share modes = no
***********************
thanks
|
|
|
All times are GMT -5. The time now is 03:58 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|