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

Andreas Schneider anschneider at suse.de
Tue Feb 26 15:09:22 GMT 2008

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
> wrong!

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 

> --dave

	-- 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/e2b0345b/signature.bin

More information about the samba-technical mailing list