Ask Your Question

Interfaces and hosts allow in Samba

asked 2015-03-14 14:09:16 -0500

ChrlsKos36 gravatar image

I'm having trouble understanding which is client and which is server in smb.conf

I'm trying to track down why I can't access samba from Windows8.

Is the interfaces = lo eth0 my network card, fedora server, windows client or router?

And for hosts allow = is the IP of computers allowed to connect to the samba server, correct?

Also, there's no way to disable my HomeGroup password on Windows8 for testing purposes. Do I need to create a samba user with the same password as my HomeGroup?

I really hate to ask a stupid question like this, but I'm on information/man page overload right now and would truly appreciate an answer in simple terms.

Many thanks!

edit retag flag offensive close merge delete


did you try smbpasswd -a if your security is set to user and you should be able to login using password to test you can use smbclient \\localhost\ --user=yourusername on your linux box to see if that works if it does it should work with windows.

aeperezt gravatar imageaeperezt ( 2015-03-15 11:03:55 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-07-17 05:21:29 -0500

boyd gravatar image

updated 2018-07-17 06:18:35 -0500

Interfaces is what you want your samba server to listen on. Its optional anyway as by default samba listens on all interfaces. This parameter is useful for a machine with more than one NIC and you only want samba to listen on one of them.

Hosts allow/deny is also optional. In many cases the firewall rules on the machine itself can take care of this just fine, so you don't need to complicate your samba configuration with this. However the deny parameter can be especially useful when you want to allow other machines access to your server for other services and then specifically deny samba.

If you are needing to understand samba, a man page is not the best place to start as it can be very complex. You can have a simple setup though and there are many examples and howtos for this. Best to go here to get started:
Fedora System Adminstrators File and Print Servers Guide

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-03-14 14:09:16 -0500

Seen: 591 times

Last updated: Jul 17 '18