share size

Jason Cook jasonc at reinit.org
Wed Nov 7 21:25:03 GMT 2001


* Jason Cook (jasonc at reinit.org) wrote:
> * Greg Zartman (greg at kwikfind.com) wrote:
> > Ross,
> > 
> > > Mount the share using smbmount (mount -t smbfs)
> > > then simply use df as you would normally... on my system this gives an
> > > output along the lines of....
> > 
> > Thanks.  That's the method I was currently using.  Didn't know if there was
> > a way to do it without mounting.  Oh well..
> > 
> > Greg
> > 
> 
> I got bored and wrote a script using smbclient that outputs sizes of
> shares on hosts.  Just put in the password and update the $remote
> entries to match your environment.  I know the code is mildly nasty,
> but I'm still learning :)
> 

I've been trying to modify the script to to list the sizes of all the
machines in the workgroup and have run into a small problem.  I think
I have found a bug in smbclient.  I can't seem to use -L to look up
the shares on a machine without being asked for a password.  Since -L
is an option but I am not connecting to a share the password doesn't
get parsed correctly so I am stuck with a prompt.  

Am I doing things wrong or is this a bug?

-- 
Jason Cook                 |  GnuPG Fingerprint: D531 F4F4 BDBF 41D1 514D
GNU/Linux Technical Lead   |                     F930 FD03 262E 5120 BEDD
evolServ Technology        |  Home page: http://reinit.org

The point of life is to be happy.
                -- The Dali Lama
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-ntdom/attachments/20011107/9b2599c5/attachment.bin


More information about the samba-ntdom mailing list