PDA

View Full Version : Fedora4 and Ubuntu boxes won't Samba


futz
2005-10-15, 05:08 PM CDT
I've got a Fedora 4 box and a Ubuntu box here. No firewalls enabled on either one. They connect through the switch on my router. I've got a printer Samba share on the Fedora box as well as a couple file shares. On the Ubuntu box I've got some file shares.

The Fedora box can see and use the Ubuntu shares, no problems at all. But on the Ubuntu box, the Fedora shares just don't show up. I -think- it's seeing the printer, but no test page prints when I try.

Any suggestions? I'm somewhat of a newb, but not a total beginner, so hit me. :D

EDIT: Just turned on the big Windows XP box that's on this network and both Linux boxes see it fine too, so I'm doing something right. Hmm... The Windoze box can see the Fedora box, but is unable to access it.

EDIT2: Here's another hint, maybe: Windows shows the Fedora box as "Samba Server (Localhost)", but shows the Ubuntu box as "ubuntu server (Samba, Ubuntu) (Ubuntu)" And the Windows error I get when I try to access the Fedora box is "Localhost is not accessible. You might not have permission... blah blah blah... You were not connected because a duplicate name exists on the network... blah blah blah...".

Why does my Ubuntu box show up as "Ubuntu" and the Fedora box show up as "Localhost"??? How can I fix this?

SlowJet
2005-10-15, 06:42 PM CDT
On Ubuntu box make sure the network it totally defined.
1. In configuration tool under samba - (the only item is workgroup) - edit key and type in the workgroup.
2. In Networking tool - assign an IP and alias as dchcp ip and your NetBios name i.e. HOST
3. Move on down to hosts tab and dhcp-ip and HOST again.
4. In DNS tab, don't forget your dns ip and dnsname (Gateway )

I just did this trying to get a new Ubuntu (clientish) to talk to another with samba server.

SJ

P.S. I put a screenshot in the Galery.

renJones
2005-10-17, 08:42 AM CDT
hi futz

i'm having a similar problem as you with fedora 4, but my ubuntu box works fine and my xp box works fine with the ubuntu shares and see the fedora public dir, but won't open it.

i'm fairly sure you can fix the fedora box hostname in /etc/sysconfig/network

change where it (probably) says

HOSTNAME = localhost.localdomain

to

HOSTNAME = <hostname>.localdomain

you'll also have to add your fedora hostname to the list of alias' in /etc/hosts

that *should* sort that little problem, please let me know if it doesn't since that's what i've done to mine! :S

as for the access to the actual shares, i'm still working on that. are you trying to do public shares available to anyone on the network? that's what i'm trying, but it really doesn't want to...

relevant bits of my *not working* smb.conf are:

security = share
wins support = yes #really not sure if this should be on...

[public]
comment = Public Folder
path = /home/public/
public = yes
writable = yes
printable = no
create mask = 0777
directory mask = 0777
only guest = yes
force user = nobody
force group = nogroup

(btw, most of the public definition came from the ubuntu unofficial guide on how to setup samba shares with no authentication)

please let me know if you see anything missing here, have been playing with the settings for a while and it's really annoying! :P

SlowJet
2005-10-18, 03:38 PM CDT
renjones, :)

wins support shold be no because you need a wins server on a Windows swerver machine.

I have my samba set for allowed users (there by replacing the force commands) and It is for my home/myusername folder.

So I'm thinking that you need to put the share in a non user folder (/var) and see samba_selinux man or smb_selinux whatever it is called. This shows how to make a samba share concerning permissions, selinux samba_t type and so forth.

Thne lastly, to get the machines to talk, put the NETBIOS computer names in the host file of each machine (there is a lookup oder like lmhosts, host, hosts, whatever they are called) to resolve the connection. This in in lue of having a windows win server.)

But you are very close.

SJ