Selecting files to get...

Martin Mielke martin at jaleo.idecnet.com
Thu Nov 20 15:46:47 GMT 1997


Hello everybody,


I'm using Samba Version 1.9.17p3 on an IRIX 6.2-based workstation and
because I still have the same problem with the shares on the PC-box
(I'll send my report to samba-bugs too), I need workaround in order to
get the smbtar process running.

Here's my problem (I hope it's not too long):
I can see what's being shared by the Win95 box where I want to make the
backup from in this form

#  smbclient -L pivita
Added interface ip=192.1.1.21 bcast=192.1.1.255 nmask=255.255.255.0
Server time is Thu Nov 20 14:56:28 1997
Timezone is UTC-8.0

Server=[PIVITA] User=[] Workgroup=[JALEO] Domain=[]

        Sharename      Type      Comment
        ---------      ----      -------
        ADMIN$         Disk
        C-DOLORES      Disk
        D-DOLORES      Disk
        DESKJET 520    Printer
        IPC$           IPC       Remote Inter Process Communication
        PRINTER$       Disk


Note: C-DOLORES and D-DOLORES is how C:\ and D:\ are shared from the PC
side with full access on both devices.

if I try this :

# smbtar -v -s pivita -x C-DOLORES -t testFile -u root -p $PASSWD

I get this:

server    is pivita
share     is C-DOLORES\
tar args  is
tape      is testFile
blocksize is
Added interface ip=192.1.1.21 bcast=192.1.1.255 nmask=255.255.255.0
Server time is Thu Nov 20 14:57:28 1997
Timezone is UTC-8.0
first SMBtconX failed, trying again. ERRSRV - ERRbadpw (Bad password -
name/password pair in a Tree Connect or Session Setup are invalid.)
SMBtconX failed. ERRSRV - ERRbadpw (Bad password - name/password pair in
a Tree Connect or Session Setup are invalid.)
Perhaps you are using the wrong sharename, username or password?
Some servers insist that these be in uppercase


If I execute:

# smbtar -v -s pivita -x ADMIN$ -t testFile -u root -p $PASSWD

I actually could create a complete backup from the Win95-box but I don't
need to to it, so I stop the process by pressing CTRL-C.

Now, if I repeat:

# smbclient -L pivita

I get what I need:

Added interface ip=192.1.1.21 bcast=192.1.1.255 nmask=255.255.255.0
Server time is Thu Nov 20 15:02:22 1997
Timezone is UTC-8.0

Server=[PIVITA] User=[] Workgroup=[JALEO] Domain=[]

        Sharename      Type      Comment
        ---------      ----      -------
        ADMIN$         Disk
        C$             Disk
        C-DOLORES      Disk
        D$             Disk
        D-DOLORES      Disk
        DESKJET 520    Printer
        IPC$           IPC       Remote Inter Process Communication
        PRINTER$       Disk


So from now on I can achive the backup I really want. The command-line
looks something like this:

# smbtar -v -s pivita -x C$ -d \\path-to-the-data\data -t $TARGET -u
root -p $PASSWD

I put the user root after the -u option just to let him to the important
stuff ;-)  Although I get the same results giving in a different
non-root valid username combined with the root's password... strange,
isn't it? anyway...

Because of this all, I first have to execute a smbtar of ADMIN$ by hand
to get the C$ and D$ in the list of shares. What I want to find is some
kind of workaround for this and include it in the script I run after the
smbtar of ADMIN$. To do it, I'd like to know how to get ONLY ONE file
from the Win95 box, which should be enough to make C$ and D$ visible to
the UNIX box.

Any ideas/help/comments (/XL T-shirts :) ) are very welcomed! maybe I'm
doing something wrong, such as mistyping a command, etc...

Thank you in advance. Greetings from the Canary Islands! =B-)


Martin

--
===================================
Martin Mielke
Jaleo Development Office - SysAdmin
martin at jaleo.idecnet.com
Tel.: ++ 34 28 262299
Fax : ++ 34 28 263504
===================================





More information about the samba mailing list