[Samba] (no subject)
kornel kornatka
ds14.kornel at gmail.com
Sat Feb 6 04:05:52 MST 2010
2010/2/6 Greg Byshenk <samba at byshenk.net>
> On Sat, Feb 06, 2010 at 11:31:31AM +0100, kornel kornatka wrote:
>
> > I Have a problem:
> >
> > I'm sharing ~600 folders on my samba server:
> >
> > [SHARE 192.168.0.20]
> > comment = Private share for host 192.168.0.20
> > browseable = yes
> > writable = yes
> > path = /var/archives/USERS/192.168.0.20
> > public=yes
> > hosts deny = 192.168. EXCEPT 192.168.0.20
> >
> > [SHARE 192.168.0.21]
> > comment = Private share for host 192.168.0.21
> > browseable = yes
> > writable = yes
> > path = /var/archives/USERS/192.168.0.21
> > public=yes
> > hosts deny = 192.168. EXCEPT 192.168.0.21
> > .
> > .
> > .
> >
> > But any user can see all shares even those without permissions (each host
> > can see ~600 shares and only one is working for him)
> > I don't know how to hide shares for each host so that he can see only
> share
> > created for him.
> >
> > For Example host 192.168.0.10 will see only "SHARE 192.168.0.10"
>
>
> I'm not a samba expert, but what you're doing seems clumsy to me.
>
> Why not create a single share something like this:
>
> [privateshare]
> comment = Private share for local machines
> browseable = yes
> writable = yes
> path = /var/archives/USERS/%I
> public = yes
> hosts deny = 192.168. EXCEPT %I
>
> This allows every host to see just a single folder of its own -- and also
> makes for a much simpler smb.conf.
>
>
> --
> greg byshenk - gbyshenk at byshenk.net - Leiden, NL
>
As you can see I'm beginner with samba.
I've changed my conf as you said... it's not working
But in my understanding ... :
Samba can't know possibilities of %I variable to create shares.
More information about the samba
mailing list