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

Andreas Schneider anschneider at suse.de
Tue Feb 26 14:09:34 GMT 2008


Stefan (metze) Metzmacher wrote:
> Andreas Schneider schrieb:
>> If you create a share on a Windows machine called foo$ then this share is
>> of the type STYPE_DISKTREE. So it is possible to administrate this kind of
>> share. Tested on Windows NT and 2003.
>>
>> Start / Programs / Administrative Tools / Active Directory Users and
>> Computers
>> Shares / Select Share / Right Mouse Click / Manage
>>
>> In samba we assume that if a share with a $ at the end must be of the type
>> STYPE_DISKTREE_HIDDEN. This is wrong, so we need a variable in the config
>> to define if the share should be hidden or not.
>>
>> Attached are patches for 3.0 and 3.2 and a xml file for the documentation.
>>
> 
> Hi Andreas,
> 
> isn't that what browseable = no is for? Instead of adding a new
> "hidden = yes" parameter.

Then you have to set the STYPE_HIDDEN bits if browseable = No. IPC$ and ADMIN$ 
are STYPE_DISTREE_HIDDEN, but are set to browseable = Yes.

So you have to change them to 'browseable = No' to set STYPE_HIDDEN.

I think its better introduce a new variable.

> 
> metze
> 


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


More information about the samba-technical mailing list