I'm using samba 3.0.1pre3 with security = share and for example: [test] comment = Private path = /mnt/test public = yes writable = yes hosts allow = 192.168.2.2 but hosts allow doesn't have any effect - any user from any IP can connect to this share. After downgrading samba to 3.0.0 problem disappeared.
I need a level 10 debug log. Thanks.
and I need your smb.conf. Thanks.
Created attachment 284 [details] configuration file used
Created attachment 285 [details] log 1
Created attachment 286 [details] log 2
Created attachment 287 [details] log 3
What I did was mounting share ,,Everything'' and I did that from 192.168.2.2 while conflig only allows 1.1.1.1 to connect.
Thanks. Fixed in the latest SAMBA_3_0 cvs tree. diff -u -r1.31.2.9 access.c --- lib/access.c 7 Nov 2003 09:03:02 -0000 1.31.2.9 +++ lib/access.c 1 Dec 2003 19:24:54 -0000 @@ -114,7 +114,7 @@ } else if (strequal(tok, "LOCAL")) { /* local: no dots */ if (strchr_m(s, '.') == 0 && !strequal(s, "unknown")) return (True); - } else if (!strequal(tok, s)) { /* match host name or address */ + } else if (strequal(tok, s)) { /* match host name or address */ return (True); } else if (tok[(tok_len = strlen(tok)) - 1] == '.') { /* network */ if (strncmp(tok, s, tok_len) == 0)
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.
database cleanup