[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: accessing a samba network drive via the command line



On Wednesday 01 July 2009 12:17:54 Sharpe, Sam J wrote:
> 2009/7/1 Kevin Kempter <kevin kevinkempterllc com>:
> > Hi all:
> >
> > I have a network drive that I've setup as a samba connection in dolphin.
> >
> > in dolphin I can go to Network --> LacieBigDisk and connect to the drive
> >
> > However I want to access it via the command line
> >
> > I can see this info per smbclient (there is no passwd)
> >
> >
> > smbclient -L 192.168.1.30
> > Enter root's password:
> > Domain=[LACIE-2BIG] OS=[Unix] Server=[Samba 3.0.25b]
> >
> >        Sharename       Type      Comment
> >        ---------       ----      -------
> >        raw             Disk
> >        aperature       Disk
> >        IPC$            IPC       IPC Service (LaCie 2big Network)
> > Domain=[LACIE-2BIG] OS=[Unix] Server=[Samba 3.0.25b]
> >
> >        Server               Comment
> >        ---------            -------
> >
> >        Workgroup            Master
> >        ---------            -------
> >        WORKGROUP            LACIE-2BIG
> >
> >
> >
> > I tried this:
> > # smbclient service \\\\192.168.1.30\\LACIE-2BIG\\raw "
> >
> > and this:
> > # smbclient service //192.168.1.30/LACIE-2BIG/raw ""
>
> Almost...
>
> try:
> # smbclient //192.168.1.30/raw
>
>
> --
> Sam


That works! thanks.

One more question:
is there a way via smbclient to execute the equivelant of a "find . | wc -l" ? 
I'm wanting a count of how many files I have on the drive, including all dirs 
and sub-dirs.

Thanks in advance


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]