Amanda-Users

Re: Odd permissions problem

2005-12-14 10:24:31
Subject: Re: Odd permissions problem
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: Dave Ewart <davee AT ceu.ox.ac DOT uk>
Date: Wed, 14 Dec 2005 16:17:49 +0100
Dave Ewart wrote:
I've just added a few entries to my disklist and am getting errors like
the following, during amcheck:

    ERROR: athena: [could not access /srv/samba/netlogon
    (/srv/samba/netlogon): Permission denied]


Why is this directory not visible to the AMANDA process, given that the
AMANDA user is part of group 'disk' and that should give it access to
those partitions?  The '/root/' partition is only (technically) visible
to the root user, yet AMANDA is able to correctly back this up.

http://wiki.zmanda.com/index.php/Why_does_amcheck_fail_while_amdump_succeeds_%3F

The good news is that amdump will probably work fine.

The fact that amanda is part of group disk has no effect here:
you're doing backups of subdirectories, and thus cannot use dump, but
must use gnutar (Dump can only work on whole partitions, not on subdirectories, at least when doing incrementals.)

For running dumpa and accessing the device-partitions, amanda needs to
be member of the disk-group, but for running gnutar, amanda actually
needs root priviledges, which she gets by invoking gnutar with a suid
root program, which is not used by amcheck. (Note amcheck just sends a
message to amandad on the client, and it's amandad on the client that
does the check; hence making amcheck suid-root does not help either.)


--
Paul Bijnens, Xplanation                            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          *
***********************************************************************



<Prev in Thread] Current Thread [Next in Thread>