[PATCH] Add variable to define if a share should be hidden.
David Collier-Brown
davecb at sun.com
Tue Feb 26 19:52:52 GMT 2008
Andreas Schneider wrote:
> David Collier-Brown wrote:
>
>> Can you expand on this just a bit? I interpret you as saying that
>> MS returns information about shares, but marks ones ending in $ as
>> STYPE_DISKTREE_HIDDEN, so browsers can decide to show/not show them.
>>
>
> If you create a share with a $ at the end (foo$) on a Microsoft system,
> then it is of the type STYPE_DISKTREE.
> If you do the same on a Samba system the share is of the type
> STYPE_DISKTREE_HIDDEN. This is wrong.
Aha! Now the light bulb over my head glows dimly (;))
Thanks!
--dave
>
> Only ADMIN$ (root folder) IPC$ PRINT$ and partiontions (like C$, D$)
> have the STYPE_DISKTREE_HIDDEN flag set on Windows.
>
> If a share has the STYPE_HIDDEN flag set, you're not able to change
> permissons or something like that. As far as I understand they are
> administrative shares which can't be changed.
>
> See:
> http://en.wikipedia.org/wiki/Administrative_share
> http://support.microsoft.com/kb/314984
> http://www.windowsnetworking.com/kbase/WindowsTips/WindowsNT/RegistryTips/Hide/HiddenWindowsNTAdministrativeSharesCD.html
>
>
>
>> Do they have anything like browseable = No, or do they _always_ return
>> all shares?
>>
>
> I don't think that windows has a feature like 'browseable'.
>
>
>> If so, the two variables don't overlap, and it's merely tricky code,
>> nothing new for MS (;-))
>
>
> The intention of 'hidden = Yes' is to be able to create shares like 'C$'.
>
>>
>> --dave (being the anal janitor) c-b
>
>
> -- andreas
>
>
--
David Collier-Brown | Always do right. This will gratify
Sun Microsystems, Toronto | some people and astonish the rest
davecb at sun.com | -- Mark Twain
(905) 943-1983, cell: (647) 833-9377, home off: (416) 223-5943
(800) 555-9786 x56583, bridge: (877) 385-4099 code: 506 9191#
More information about the samba-technical
mailing list