Amanda-Users

Re: Is amrecover supposed to restore correct file ownership and protection bits ?

2005-05-17 18:47:13
Subject: Re: Is amrecover supposed to restore correct file ownership and protection bits ?
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: Guy Dallaire <clepeterd AT gmail DOT com>
Date: Wed, 18 May 2005 00:36:09 +0200
Guy Dallaire wrote:
I did a restore of files with amrecover and all the files restored
belong to root. Is this normal ?

No, that's not normal.
But usually the problem is the other way: the files belong to a
ordinary user (because he cannot chown a file being restored), but
when using root to restore, you should have the original owners.
Are you sure the files did not belong to root to begin with?
Or did you restore to a temporary area, and then did something like
"cp -r here there" as root?  (forgot the -p option maybe?)


--
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, *
* 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>