[CentOS] Samba Hosts Allow/Deny

Craig White craigwhite at azapple.com
Tue Oct 14 15:16:30 UTC 2008


On Tue, 2008-10-14 at 09:08 -0600, Joseph L. Casale wrote:
> I am running CentOS 5.2 w/ Samba 3.0.28 and have a basic user level
> setup and
> 
> am trying to use hosts allow and deny but it does not have an effect?
> I have
> 
> specified them in the share level of the config.
> 
>  
> 
> I have tried:
> 
>       hosts allow = 192.168.0.72/32
> 
>       hosts deny = 0.0.0.0/0
> 
>  
> 
> Also:
> 
> ;     hosts allow = 192.168.0.72/32
> 
>       hosts deny = 0.0.0.0/0 except 192.168.0.72/32
> 
>  
> 
> Still, any hosts can gain access? Can anyone shed some light on this?
----
man page suggests that you use this type of reference...

    hosts allow = 192.168.0.72/255.255.255.255

Craig



More information about the CentOS mailing list