• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Help with Samba and Redhat 7.2, I've tried all the guides!

MCS

Platinum Member
Getting very frustrated trying to get Samba to work. I have a Windows XP box (192.168.0.1) which is connected to the internet and shares the connection with two other Windows boxes. I then have my Redhat box which I have given an IP address of 192.168.0.4. Under the TCP/IP config I have specified 192.168.0.1 as the default gateway and now the Linux PC can access the internet via the Windows PC and the two can ping eachother. So far so good. I have got a VNC server running on the Linux box too and I can log in from any of the Windows boxes and fully control it, so I know the networking is okay!
Now the problem is I want to get Samba running. I have a smb.conf file in /etc/samba, but I wasn't entirely sure whether or not Samba is installed properly. I have looked in several guides and the smb commands they have mentioned do not work. I have check the Package Manager and it tells me I have "samba-client" and "samba-common" installed - is this correct? I typed "smbclient -L localhost" as specified in one of the guides and I get this:

added interface ip=192.168.0.4 bcast=192.168.0.255 nmask=255.255.255.0
error connecting to 127.0.0.1:139 (Connection refused)
Connection to localhost failed

I think I need some help here!!
 
Originally posted by: MCS
Have been trying to find that out but I am not sure how?

man smbd
man nmbd

I dont remember the exact commands right off (Soemthing like "`which smbd -D" and "`which nmbd` -D", but dont quote me on that).
 
It says no manual entry for both of those. I tried the which command and it didnt find anything. Perhaps it's not installed properly. Would it have been an option during the install? Can I add the package now?
 
Try "locate smbd" and if that doesnt come up with anything you havent installed the server packages yet. Ive never done it under rpm so I cant tell you where they are.
 
Nope, didnt find anything, must be my problem then! I take it as well as "samba-client" and "samba-common" there is a "samba-server" or similar? I think the fact that I had the conf file in /etc/samba made me think it was installed properly.
 
I think I might just reinstall and move to 7.3 and make sure Samba gets installed properly, I wanted to try out KDE 3.0 anyway 🙂
 
OK I have got Samba going now it wasn't installed; only the client was. Things like "service smb start" and "man smbd" are all working now 🙂

I have edited /etc/samba/smb.conf and set the workgroup. On the subject of workgroups, as a side question, does anybody know how to change localhost.localdomain to <name of PC> and a workgroup of "Home Network" - Linux doesn't seem to like the space? This is in the networking configuration, the smb.conf file accepts "HOME NETWORK" fine.

I have got as far as seeing the Linux box in Windows XP network places, but I when I click it tells me I cannot access it...more playing needed...
 
/etc/hostname or /etc/hosts for hostname, I can't remember😱

Is the windows user and the windows box added as a user to the linux box. and as a samba user?.

post your smb.conf if you can
 
Why dont you just install Webmin with the SAMBA module. That way you could see what processes are running via your windows machine and administer Samba with a neat little web-based shell.

 
Originally posted by: TonyRic
Change the localhost.localdomain in /etc/sysconfig/network.

DOH! I had this nagging feeling it was different on Redhat. my bad😱
that's what you get for using too many OS's
 
work group and localdomain are different things, there should be no space in localdomain.

So in what way is the localdomain used? Why would I need to change it? Am I better off just leaving it as localhost.localdomain or could I have fred.localdomain for example - I am confused 😱

Why dont you just install Webmin with the SAMBA module.

I'm on to it right now! 🙂
 
Originally posted by: MCS
work group and localdomain are different things, there should be no space in localdomain.

So in what way is the localdomain used? Why would I need to change it? Am I better off just leaving it as localhost.localdomain or could I have fred.localdomain for example - I am confused 😱

Why dont you just install Webmin with the SAMBA module.

I'm on to it right now! 🙂

localdomain equals something along the lines of mcs.com
 
If you have a chance, read the Net HOWTO for an excellent primer on TCP/IP networking. You can skip the comprehensive hardware section.
 
Webmin has totall changed my smb.conf file - is there any way to get the original one back?
 
🙂

It must have come from somwhere though, perhaps the RPM? Can I extract individual files from those?
 
I got it all working now...I played around with the smb.conf file and I think the key change was a rebooted the Windows XP box I was trying to connect from. It's a 24/7 box but it obviously needed a reboot for the Samba server to recognise it properly.
 
Back
Top