Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Samba.. Big problems

Status
Not open for further replies.

vfear

Technical User
Feb 9, 2001
159
US
I have samaba running on redhat 7.2.. I also have webmin installsed.. I edited the smb.conf and I can see the redhat machine in network negiborhood but I cant get to it. I also try getting to it via the ip and nope cant get to it that way either. when I try to get to it via the icon in network negiboorhood it says network path not found.. please help I am going <crazy .. thanks
 
FYI, After we get the old SAMBA killed off, and the processes removed, the proper way to restart SAMBA in RH 7.2 is:

service smb restart <-- to restart
service smb start <-- to start
service smb stop <-- to stop

This is equivalent to:

/etc/rc.d/init.d/smb restart
&quot; &quot; &quot; /smb start
&quot; &quot; &quot; /smb stop

After making changes to /etc/samba/smb.conf, you should tell SAMBA to reload it, by issuing a SIGHUP:

killall -HUP smbd
killall -HUP nmbd

Bruce Garlock
bruceg@tiac.net
 
As for the &quot;network path not found&quot; error, make sure there is not another WINS server on your network, since you are telling SAMBA to become the WINS server on that subnet. If it's just this linux machine, and a few Win clients, then there is probably not a WINS server. If there is a NT or 2000 server somewhere, they may already be the WINS server, and you need to point this SAMBA machine to that by commenting out wins support and adding the IP of the WINS server:

#wins support = yes
wins server = ipaddress

Bruce Garlock
bruceg@tiac.net
 
that command doestn work to stop samba


 
It still doesnt work same thing .. network path not found. I took wins out so it wasnt doing it befcuase there is a win2k server on there also.. I had to use the service smb stop commands becuase I am in redhat 7.2 ?? what should I do ??
 
bascically my network is run on the 192.168.1.1 scheme, my workgroup is thedarkside netbios name can be Redhat and i just want to share out the /root/ directory as a test can someone send me a new conf file they know works so I can try using it instead of mine .. ??? pete@vfear.com
or please give me other ideas .. I am pulling my hair out...

 
/etc/rc.d/init.d/smb stop should stop samba. What does it tell you when you execute that? Also, please post your smb.conf file again, since you made some changes since the last post. What are the logs telling you? Bruce Garlock
bruceg@tiac.net
 
I didn't see this answer in the thread so here goes:

Just earlier this week I ran into the exact same problem as you and did most of the same things to try and get it going. I searched usenet and saw a simple suggestion, tried it and it worked. It was as follows:

In your global section add the line:

preservecase = no

And that's all it took. Don't know why. Don't really care why. But all I know is that it worked so I am happy.

Good luck.
 
Well, I don't think any of the changes to smb.conf will work, until he gets samba shutdown properly, and started cleanly. Judging by his log post, and after trying to shut samba down, and still seeing a lot of smbd and nmbd processes still hanging around, no changes to the smb.conf will take effect, until samba is totally shutdown, and brought back up again.

FYI (from 'man smb.conf'):

preserve case = yes/no
controls if new files are created with the case that the
client passes, or if they are forced to be the &quot;default&quot; case.
Default yes.

Not sure why this would have an effect on why he gets the error &quot;network path not found..&quot; In my experience, this error has to do with proper WINS setup more than anything. Bruce Garlock
bruceg@tiac.net
 
I reinstalled redhat and used webmin to set up samba .. and I still get the same error . \\redat not accessable is what I get when I try to access the redhat machine from my win2k box.. Please help.. I have no idea what else to try
 
Do you have firewall configured?
Try stopping IPCHAINS IPTABLES in SERVICE CONFIGURATION
It sounds like you might have a firewall block to the server.
Dan
 
if you want to check that your host can accept from hosts, remove the 'hosts allow' line ... this should allow any host to connect ...
 
What is your enviroment? Do you have an NT domain controller? Are you using WINS in the NT domain. Is the WINS server IP address in the smb.conf under &quot;wins server = *.*.*.*&quot;. If the smb.conf file does not have this, then it won't tell the NT domain that it is there. Make sure that you restart the smb daemon after each change. /etc/rc.d/init.d/smb restart

What is the ip address of the PC you are trying to access the Samba share from? Is it included in the Hosts allow field?

Have you created an smbpasswd file? Are you a user on the Linux server? Did you add the Linux server to the NT domain?

I hope this helps.

Glenn
 
Hey all,

I just installed 7.2 and had the same exact problem with &quot;path not found&quot; errors. Stopped iptables and ipchains (why are they both loaded here?) and also isdn (don't know why that was installed anyway) and *poof* I can access my shares.

BTW -- if you want to use a GUI and have KDE (don't remember if it's in Gnome) you can just use the KDE Control Panel and find the Services applet. This will show all services running and will let you start and stop or restart, and also enable or disable. Very easy to use (although one should know the command line)...

Thanks for the tips. Hopefully it helped the original poster. Now if I can just get iptables to work for everything and still let me have Samba connectivity (in other words -- I need to read up on iptables and firewalling).
J.R. Juiliano
Information Systems Specialist
Tri-City Emergency Medical Group
 
samba uses a different password file so you need to create different passwords

smbpasswd &quot;username&quot;
then will as you to type pass
than your users can log in

try playing with the swat part under samba that is a little better it tells you what everything means that is what i used to config mine but u was under mandrake

good luck
Ben
 
In my case it was that way even with:
smbpasswd -a &quot;username&quot;.

It was simply the inability for the outside computer to connect to the Samba Server, even though it was seen as a share in network neighborhood with the &quot;Samba Server&quot; string.

Personally I don't like using SWAT (I do the smb.conf by hand if I can), but the documentation that comes with it is extremely valuable. J.R. Juiliano
Information Systems Specialist
Tri-City Emergency Medical Group
 
There usually isn't a smbpasswd file created by default.

Use the mksmbpasswd.sh script to create it.

for example, if the smb.conf says the file should be in /etc/samba, create the file by issuing this command:
cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd

This will use the list of user names from /etc/passwd to create smbpasswd. Once this is done, you can change your user samba password.

Glenn
 
I just installed linux red hat 7.2, I am a first time Linux user. I the exact same problem. network path not found, but it shows up in network neighborhood.

Has anyone found a solution to this yet? I have tried all suggestions made so far. Could someone post a working smb.conf file? Our network does not use proxy, DNS or WIN properties.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top