On 2007-01-18 20:22, Jean-Francois Malouin wrote:
> Hi,
>
> Got this client (Amanda-2.5.1p2 same as server) for which a few DLEs
> with includes don't work, ie the include debug files are empty and the
> DLE backups nothing. Turns out that some dirs leading to the DLEs are
> 700 to some user and so amanda can't stat below the
> read-write-exec-user-only directory. First time I encounter this. I
> though runtar being suid to root would not be affected by this...
>
> DLE:
>
> gertrude concussion2_jenkai_05
> /export_raid02/data-concussion-concussion2/jenkai/McGill/analysis/fMRI/individuals
> {
> tar-bsdtcpauth-100
> include "./hockey"
> }
>
> In the diskpath ".../McGill/..." is 700 to some user:
>
> # ls -ld /export_raid02/data-concussion-concussion2/jenkai/McGill
> drwxr----- 4 jenkai ptitolab 35 Jan 16 13:30
> /export_raid02/data-concussion-concussion2/jenkai/McGill/
>
> and the include is empty (after running amcheck):
>
> ls -la
> /tmp/amanda-conf9/selfcheck.concussion2_jenkai_05.20070118135050.include
> -rw------- 1 amanda disk 0 Jan 18 13:50
> /tmp/amanda-conf9/selfcheck.concussion2_jenkai_05.20070118135050.include
>
> If I make that dir 755 (say) all is good and the include debug file
> shows "./hockey" as it should.
>
> Is this the expected behaviour?
expected and documented :-)
>From the amanda.conf man page:
include [ list|file ][[optional][ append ][ string ]+]
...
Note
For globbing to work at all, even the limited single
level, the top level directory of the DLE must be readable
by the Amanda user
The reason is that gnutar has no globbing on the "--files-from=F" option
(while the "--exclude" does use patterns). So Amanda builds the list
of files/dirs to include herself from the patterns in disklist.
--
Paul Bijnens, xplanation Technology Services Tel +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM Fax +32 16 397.512
http://www.xplanation.com/ email: Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now: exit, ^D, ^C, ^\, ^Z, ^Q, ^^, *
* F6, quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt, abort, hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e, kill -1 $$, shutdown, *
* init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ... "Are you sure?" ... YES ... Phew ... I'm out *
***********************************************************************
|