Amanda-Users

Re: Trouble getting SAMBA to work with AMANDA

2002-12-05 18:14:25
Subject: Re: Trouble getting SAMBA to work with AMANDA
From: Tom Schutter <tom AT platte DOT com>
To: Jeffery Smith <smith AT skycomputers DOT com>
Date: 05 Dec 2002 15:35:44 -0700
I pulled this comment from my disklist file:
# PCs via Samba
# If you edit this section, you must also edit ./amandapass
# To test a new entry, use the commands:
# smbclient '\\HOST\backup' PASSWORD -d 3 -U USER -c 'recurse;dir'
# amcheck -c daily

The smbclient command is what the estimation phase sends to the PC.
By running it from a command prompt, you usually can find the problem.
Don't forget to replace HOST, PASSWORD, and USER when running the
command.

On Thu, 2002-12-05 at 14:38, Jeffery Smith wrote:
> I will give that a try tomorrow (the ntbackup approach).  Sounds like a
> great idea.
> 
> I double checked the "backup" account on the Win2k box.  It is in the
> administrators group, so I am fairly certain is has full control.  I
> failed to mention in my last reply that the drive on this one is NTFS,
> not FAT.  Your ntbackup approach sounds perfect as I believe that would
> preserve all the permissions.  I am not sure how the smbclient approach
> handles permissions, etc.  I will try the backup again tomorrow with a
> subdirectory instead of the entire disk.  If I can get that to work, I
> will use your ntbackup idea.
> 
> I also checked the Win95 box again and I have the share set to
> full-control.  I'm not sure what is going on there.  Of course this
> drive is FAT32.
> 
> I am completely baffled.  If I mount the shares on zeus, I have no
> problems.  I can move around and copy files and everything seems fine. 
> I didn't think of checking the samba lists...I will take a peek over
> there tomorrow, too...it's been a long day.
> 
> Thanks again for your help!
> 
> Jeff
> 
> On Thu, 2002-12-05 at 16:25, Richard B. Tilley (Brad) wrote:
> > On the 2000 box, be certain that the user that smbclient uses to access
> > the share has full-control over the files within that share. In order to
> > avoid this problem, I us ntbackup to create an archive of all the files
> > that I want backed-up and then only allow access to the user that
> > amanda/smbclient uses to get to that file. And, I give that user
> > full-control. If possible, it's best to create a separate partition 
> > formated NTFS so you can control access.
> > 
> > I do this on 75 2000 boxes without problems. I have an old 95 box that
> > used to display the same error that you listed, but when I set its share
> > to full-control, the error  stopped and amanda worked just fine. I read
> > someplace once (a long time ago) that the user that smbclient uses to
> > access the shares has to have write/change ability in order to do
> > incrementals.
> > 
> > Maybe someone else (more familiar with this) can go into this more. Try
> > the samba list too.
> > 
> 
> -- 
> +----------------------------------------------------------------+
> | Jeffery Smith - Systems Administrator - smith AT skycomputers DOT com |
> | Sky Computers, Inc. (www.skycomputers.com)                     |
> +----------------------------------------------------------------+
> 
-- 
Tom Schutter (mailto:tom AT platte DOT com)
Platte River Associates, Inc. (http://www.platte.com)