BackupPC-users

Re: [BackupPC-users] Strange SMB errors

2014-03-13 14:20:54
Subject: Re: [BackupPC-users] Strange SMB errors
From: Marco <listaddr AT gmail DOT com>
To: Holger Parplies <wbppc AT parplies DOT de>
Date: Thu, 13 Mar 2014 19:19:22 +0100
2014-03-13 18:42 GMT+01:00 Holger Parplies <wbppc AT parplies DOT de>:
Hi,

Marco wrote on 2014-03-13 12:25:03 +0100 [[BackupPC-users] Strange SMB errors]:
> I'm using BackupPC to back up a windows server 2008 R2 machine using smb.
> [...]
> The problem I'm having is [...] with a normal directory. This directory is
> not being backed up, and in the xfer log I see:
>
> ...

this is the relevant part (the "...", or rather what it expands to).


It's just a list of other files and directories being successfully backed up before the shared directory. Really.

 
>                 directory \shared\
> NT_STATUS_ACCESS_DENIED listing \shared\*
> ...
>
> However, connecting with smbclient using the same command line that
> BackupPC uses, it works perfectly fine:
>
> $ smbclient '\\server.example.com\k' -A .smbc -E -d 1

Ah, that's your problem. That "same" command line won't work with BackupPC. I
always see additional options like "-c tarmode\\ full" in the default config
files, and I'm sure they're there for a reason. I don't use smb transport, so
I can't explain the reason to you.

Seriously, remove the '-N' and try again.

 
Uh, no, I have no -N anywhere. The only difference between the command used by BackupPC and the above is that BackupPC uses tarmode, of course, which I don't want when connecting interactively. Here's the relevant excerpt from the log:

cmdExecOrEval: about to exec /usr/bin/smbclient \\\\server.example.com\\k -A .smbc -E -d 1 -c tarmode\ full -Tc -
Domain=[CL2] OS=[Windows Server 2008 R2 Standard 7601 Service Pack 1] Server=[Windows Server 2008 R2 Standard 6.1]
tarmode is now full, system, hidden, noreset, verbose
                directory \$RECYCLE.BIN\
                directory \$RECYCLE.BIN\S-1-5-21-1622802134-1018553101-3039836757-500\
...

(yes, I have customized the $Conf{SmbClientFullCmd} to use a credential file rather than a password on the command line, if that's what you're thinking)
 
 
> Smbclient connects as user administrator,
 
Somehow I doubt that. See the message about the anonymous connection in the 
"..."?

I see no such message. And this is what the .smbc file contains:

username = administrator
password = XXXXXXX
domain = example.com

Is that not enough to ensure I connect as domain admin?
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/