How to hide shares for users that have no rights
bruce at toorak.com
Wed Oct 25 21:30:35 GMT 2000
Be very careful here. We found that the various variable are returned by the
different versions of windoze at different times. For example
Windows 98/2E and Windows ME (effectively the same) returned the %u (lowercase)
regularly while Windows 2000 Server DOESSN'T... Likewise, %U is not
returned by both 98/ME and W2000Server in such a way that includes's can
Don't rely on WindowsME to get things right either... If you rely
on Machine type (%a) WindozeME returns Win95!!! (this may be a samba(2.07))
excuse but still.
Easy way to check your system
; comment Home directory for %u
comment (a)%a (u)%u (U)%U (m)%M (I)%I
works really well. Look for the "detail" in the share listings.
> Well, it works! The %U and %G are set at the time the config file is read.
> As you can read at page 337 in the book by Eckstein, Collier-Brown and
> Kelly (Using Samba) the variables that are not set at the time the smb.conf
> file is read are %u, %P and %S.
>Il Wed, 25 October 2000, Glenn MacGregor ha scritto:
>> I am not sure that will work. At the time the config file is read those
>> vars are not set. I may be wrong but that is what I understood.
>> Giulio Orsero wrote:
>> > On 25 Oct 2000 12:53:17 +0000, you wrote:
>> > > *) I have created, for example, 10 shares and I can access only 4 of
>> > > (I have rights to read or write only for 4 shares).
>> > > Well, is it possible to hide to my browsing the 6 shares that I
>> > > access. I need to obtain an effect like the one I have for the
>> > > Each user can only see its own home directory and not the home
>> > Consider using something like
>> > include = /path/smb.conf.%U
>> > include = /path/smb.conf.%G
>> > and in /path/smb.conf.UserA put shares for UserA only
>> > ...
>> > and in /path/smb.conf.GroupA put shares for GroupA only
>> > ...
>> > --
>> > giulioo at pobox.com
>> Glenn MacGregor
>> Director of Services
>> Oracom, Inc.
>> Tel. +1 978.557.5710 Ext. 302
>> Fax +1 978.557.5716
>Se vuoi un indirizzo di posta elettronica gratuito,
>iscriviti a http://www.katamail.com
More information about the samba