>... One thing that would increase security would be the ability to
>inform the system administrator by mail/logs which files have been
>restored. If the new amr script logs which user is running it, then
>the system can track who restores what - a degree of
>accountability. Is there any way to do this with the existing setup?

First you're going to have to decide when sudo is run in this sequence.
It could be run from within amr, or you could run amr under sudo.
That will affect whether the script knows who it is running as or whether
you'll have to get that out of the sudo log file.

The script doesn't report anything at the moment but certainly could be
enhanced.  I think what you'd want is to figure out which amrecover*debug
file had just been used when it's done and post the interesting lines
from it, such as:

  add_file: (Successful) Added /tmp/resolv/res_init.c

It would also be pretty easy to modify amrecover itself to log more
stuff to its own debug file, such as each command entered.  Let me know
if you need help with that.  It could be folded into the "run things
from the command line" patch.

>Tom

John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]

Reply via email to