smbtree patch - adds option to print out share type
Seb James
seb at esfnet.co.uk
Thu Jul 5 16:15:46 GMT 2007
Hi list,
I've made a small patch for smbtree. With this patch (made against
smbtree.c from Samba release 3.0.24) you can pass the option -H or
--sharetype and then the output from smbtree might look like this:
seb:/usr/src/samba-3.0.24/source$ ./bin/smbtree -b -N --sharetype
HYPERCUBE
\\MORPHEUS
\\MORPHEUS\WELP Disk The ELP folder
\\MORPHEUS\C$ Disk (admin) Default share
\\MORPHEUS\ADMIN$ Disk (admin) Remote Admin
\\MORPHEUS\openoffice.org-2.1 Disk This is a test share from MS Windows 2000
\\MORPHEUS\HPLaserJ Print HP1320 on Sebs Desk, shared via Win2K Machine
\\MORPHEUS\lj202 Disk A random driver folder
\\MORPHEUS\print$ Disk Printer Drivers
\\MORPHEUS\IPC$ IPC (admin) Remote IPC
With the additional column in the middle showing whether the share is a
Disk, Print or IPC share.
The patch is available here:
http://www.esfnet.co.uk/patches/smbtree_showsharetype.patch
with best regards,
Seb James
Embedded Software Foundry Ltd.
Tel: +44 (0)845 4580277
Sheffield, UK.
More information about the samba-technical
mailing list