[Samba] python: listing samba shares

Igor Katson descentspb at gmail.com
Sun Aug 16 09:36:30 MDT 2009


Helmut Hullen wrote:
> Hallo, Igor,
>
> Du meintest am 16.08.09:
>
>   
>> Is it possible to list samba shares and their contents of a
>> particular host? --
>>     
>
> Shell:
>
>         smbclient -N -L $particular_host
>
> shows first all shares of that particular host and then some other  
> stuff. Perhaps you filter some output depending on the key word "Disk"  
> (or "Printer").
>
> Contents: "that depends".
> You must have some rights.
>
> Viele Gruesse!
> Helmut
>   
Thanks.
Yes, I know of that shell command, but I would like to do that directly 
from python for more flexibility, control and convenience.


More information about the samba mailing list