Help setting up Samba on Fedora 12

Soldato
Joined
9 Dec 2006
Posts
9,289
Location
@ManCave
Im running Fedora 12,

Ive setup samba shares & users i know its sharing the drives

as when i put in smbclient -L localhost

i get all the shares i setup

however i can not connect to it from my mac. i'm thinking its firewall related.

can some one tell me if

these ports are correct to open & should it be inbound or outbound?
445:tcp
139:tcp
138:udp
137:udp
 
You could try the following in smb.conf
Code:
hosts deny = ALL

# Allow takes priority over deny
hosts allow = 192.168.0.11

It might also be worth checking the TCP Wrapper files, although im fairly sure Samba isnt aware of them, check anyway /etc/hosts.allow & /etc/hosts.deny

Those ports are all correct and should be open inbound & outbound.
 
Also make sure you are listening on the relevant interface(s) rather than just localhost. The default config listens to all interfaces on Ubuntu I believe but it could be different on Fedora.

Check for "interfaces = xxxx" and "bind interfaces only = yes/no"
 
Samba just requires that TCP 445 is opened using iptables.

e.g.

iptables -A INPUT -s 172.17.0.10/24 -p tcp --dport 445 -j ACCEPT

You can set selinux back to enforcing, you just need to have set the selinux context file type on your shared directory.

semanage fcontext -a -t <type> <dir>

Have a look at /etc/selinux/targeted/contexts/files/file_contexts to get an idea of the entries (which tend to have regexes to match whole directories).

p.s. you can join the fedora-uk mailing list an ask questions
 
Last edited:
Back
Top Bottom