Samba deny host not blocking that host
Posted
by
datadevil
on Server Fault
See other posts from Server Fault
or by datadevil
Published on 2012-06-22T10:23:43Z
Indexed on
2012/06/22
15:18 UTC
Read the original article
Hit count: 195
samba
I want to block access to some Samba shares from a certain machine, but somehow I can't get it to work: the machine can still access the shares, and I did restart and reload the samba daemon.
Here is a part of my configuration:
security = share
hosts allow = 127.0.0.1 192.168.1.0/24
interfaces = 127.0.0.1 eth1 192.168.1.2
bind interfaces only = yes
hosts deny = 192.168.1.251
encrypt passwords = yes
guest ok = yes
The shares themselves look like this:
[examples]
comment = Example
path = /foo/bar
read only = No
guest ok = yes
What am I doing wrong here?
© Server Fault or respective owner