[Samba] Browsing shares of a server
Christopher Cox
chriscox at endlessnow.com
Fri Sep 27 18:28:28 UTC 2019
On 9/27/19 1:20 PM, Luca Olivetti via samba wrote:
> El 27/9/19 a les 17:19, Christopher Cox via samba ha escrit:
>> With the removal of SMB1 (by default) and everywhere (e.g. Windows), I
>> noticed that when I open up a computer (\\computer-name) I can see the
>> shares that I have access to... that is, from a Windows Explorer (in
>> my case Win10). Is there any way to get something like this working
>> using smbclient without SMB1?
>>
>> All this is without (AFAIK) enabling the Function Discovery stuff.
>> How does Windows do it?
>>
>> It was easy with SMB1, how does Windows (and MacOS for that matter)
>> discover shares that are available without explicitly specifying the
>> share name that are available for a host? And of course, is there
>> anyway that "protocol" could be handled somehow in smbclient?
>>
>>
>>
>
> ·smbclient -L server' doesn't work for you?
>
> Here it lists the shares, then it says:
>
> Reconnecting with SMB1 for workgroup listing.
> smbXcli_negprot_smb1_done: No compatible protocol selected by server.
> protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE
> Unable to connect with SMB1 -- no workgroup available
>
>
> so I guess it isn't using SMB1 to list the shares
Yeah, our target in this case is SMB shares exposed from a MacOS. It's
possible that something is just broken there with regards to not having
SMB1.
More information about the samba
mailing list