On 2010-09-12 17:25, Dustin J. Mitchell wrote:
On Sat, Sep 11, 2010 at 10:42 PM, Lisa Seelye <l...@thedoh.com> wrote:
Disk permissions and file permissions are always a nightmare. Some things
aren't right and amcheck complains about each one in turn. It would be
useful to have some kind of thorough "lint" mode, perhaps with a
--fix-permissions to repair the permissions (when run with root).
Ideally amcheck would be finding all of the permissions problems on
the first run - although sometimes one permission problem can make it
impossible to find the next. Is there some specific condition that
you're seeing appear only on the second run?
As for adding a --fix-permissions option is an interesting idea, but I
worry that it would blindly 'mkdir' and 'chown' and 'chmod' things
that you might not want it to. Note that many missing directories are
created at first run. If some of those are missing, we could fix that
up.
Do you have a particular example you'd like me to look at?
I remember a few requests for help on this list, when someone ran the very
first time as user root, so all the folders and files were created as root.
Maybe just to do some test run the very first time, while trying
to get it compiled etc.
When then later trying to run as the amandabackup user you're
in trouble, as e.g. even the debug folder is not even writable by amanda
and you have no immediate clue about what is going wrong.
--
Paul Bijnens, Xplanation Tel +32 16 397.525
Interleuvenlaan 86, B-3001 Leuven, BELGIUM Fax +32 16 397.552
***********************************************************************
* I think I've got the hang of it now: exit, ^D, ^C, ^\, ^Z, ^Q, ^^, *
* quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, ~., *
* stop, end, ^]c, +++ ATH, disconnect, halt, abort, hangup, KJOB, *
* ^X^X, :D::D, kill -9 1, kill -1 $$, shutdown, init 0, Alt-F4, *
* Alt-f-e, Ctrl-Alt-Del, Alt-SysRq-reisub, Stop-A, AltGr-NumLock, ... *
* ... "Are you sure?" ... YES ... Phew ... I'm out *
***********************************************************************