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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Samba problems

Status
Not open for further replies.
May 15, 2000
245
US
I just installed and configured Samba on a redhat linux7 server. As everything seemed to go ok with the install, I am still unable to connect to the server from my Win2k workstation. On further investigation, I find that Samba is not loading and if I do an nmblookup, I get a "failed to find name" error. Anyone have any ideas? Please let me know.
Thanks,
Domenick Pellegrini
dpellegrini@yahoo.com

Domenick Pellegrini
dpellegrini@yahoo.com

 
Yeah, you need an entry in your /etc/hosts file that
resolves the name of the samba server you have identified
in smb.conf. Either that or a dns entry or some hybrid method.
 
There is an entry in there for this. I added it earlier too.

Domenick Pellegrini
dpellegrini@yahoo.com

 
pidof smbd && pidof nmbd || echo "fail."
Make sure that your services are running , your workgroup name is correct, syntax for smb.conf(testparm) is correct and that there are no errors in your log.smb , log.nmb.
Set the log level higher in smb.conf for more feedback.
 
Thanks for the info. I'll give it a try. Worst case I'll reinstall it.
Thanks again


Domenick Pellegrini
dpellegrini@yahoo.com

 
Hi,











Its easiest by far to use swat (samba web admin tool) to admin samba. Install the samba-swat rpm if it isn't already installed, do a '/sbin/chkconfig swat on' and then browse to & sign-in as root.











Click on the 'globals' button and make sure that the browse options are 'yes' if you are creating your own domain /workgroup. For the 'netbiosname' - this will need to be resolved by the Windows machine(s). You can make it the same as the host name and use dns on the other side but you may have to configure the windows box to recognise this type of resoltion. Otherwise, you need to make sure that the nmbd daemon is active so that the M$ box can get an IP address for the netbiosname (or use lmhosts if you prefer). The netbios vs IP resolutions can be compared like this:









Resolution type file server




------------------- ------ ---------









Netbiosname -> IP lmhosts WINS/NMBD




Tcp Host name -> IP hosts DNS














For the shares - make sure these are 'browseable' (except homes).






Also make sure the smbd and nmbd servers are set to run automatically :



'/sbin/chkconfig --level 345 smb on'






Hope this helps
 
Excellent. I'll give it a try. I know that the problem I'm having is that I'm new to nix and I'm learning from the web and books. Not the easiest, but probably the best way to learn it. Real hands on and making plenty of mistakes to learn from.
Thanks

Domenick Pellegrini
dpellegrini@yahoo.com

 
Well I'm up and running with Samba, Telnet and FTP, I can access it from my Win2k box, and everything is working well. Or at least as well as I am aware.
Thanks for all your help everyone!!


Domenick Pellegrini
dpellegrini@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top