[PATCH] Add variable to define if a share should be hidden.

Andreas Schneider anschneider at suse.de
Tue Feb 26 17:44:35 GMT 2008


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.

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 257 bytes
Desc: OpenPGP digital signature
Url : http://lists.samba.org/archive/samba-technical/attachments/20080226/fb904ed4/signature.bin


More information about the samba-technical mailing list