[PATCH] Add variable to define if a share should be hidden.
davecb at sun.com
Tue Feb 26 16:31:19 GMT 2008
Andreas Schneider wrote:
> David Collier-Brown wrote:
>> A janitorial question: are not the variables the opposites
>> of each other, so browseable = no means the same as hidden = yes?
>> If so, and if someone created a share called "foo$", then we
>> could set the variable by default, and report it in testparm
>> as whichever of browseable = no or hidden = yes makes sense.
>> Otherwise we risk creating two disjoint variables with overlapping
>> semantics, which will look bizzare to anyone
>> trying to figure out which to use... and they they'll get it
> Doing a 'smbclient -L //service':
> 'browseable = No' means, that it will not get listed.
> 'browseable = Yes' means, that it gets listed
> 'hidden = Yes' means that the share is of the type
> STYPE_DISKTREE_HIDDEN. You will see the share if you call 'smbclient -L
> //machine'. Just do it on a machine you have Samba running. You will
> notice that IPC$ gets listed, which is of type STYPE_DISKTREE_HIDDEN.
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.
Do they have anything like browseable = No, or do they _always_ return
If so, the two variables don't overlap, and it's merely tricky code,
nothing new for MS (;-))
--dave (being the anal janitor) c-b
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