Re: Amcheck Fails on Amanda 3.5

2017-09-29 Thread Steven Backus
Commenting out these lines: if (geteuid() == 0 || getuid() == 0) { error(_("amservice must not be setuid root")); } in these modules: common-src/amservice.c server-src/amcheck.c server-src/dumper.c server-src/planner.c allowed amdump 3.5 to complete successfully as user root.

Re: Amcheck Fails on Amanda 3.5

2017-09-29 Thread Nathan Stratton Treadway
On Fri, Sep 29, 2017 at 13:02:33 -0400, Jean-Louis Martineau wrote: > On 29/09/17 12:08 PM, Steven Backus wrote: > > Yes. Seems best to let it read all the files on the systems (You may not want to get into changing your setup at this stage, but note that the usual configuration runs most of the

Re: Amcheck Fails on Amanda 3.5

2017-09-29 Thread Jean-Louis Martineau
On 29/09/17 02:07 PM, Steven Backus wrote: > Jean-Louis Martineau writes: > > It will fail, there is similar code in planner.c, driver.c and > > amservice.c > > Found it in planner.c and amservice.c but not in driver.c. Sorry, it's in dumper.c This message is the

Re: Amcheck Fails on Amanda 3.5

2017-09-29 Thread Steven Backus
Jean-Louis Martineau writes: > It will fail, there is similar code in planner.c, driver.c and > amservice.c Found it in planner.c and amservice.c but not in driver.c. Steve -- Steven J. BackusComputer Systems Manager University of Utah

Re: Amcheck Fails on Amanda 3.5

2017-09-29 Thread Steven Backus
Jean-Louis Martineau writes: > I'm wondering if I should patch amanda to allow it. Perhaps a warning that it's BAD instead of this misleading error. > Anyway, you can try to remove the check in server-src/amcheck.c, but it > might fail somewhere else. Done, amcheck

Re: Amcheck Fails on Amanda 3.5

2017-09-29 Thread Jean-Louis Martineau
On 29/09/17 12:08 PM, Steven Backus wrote: > Jean-Louis Martineau writes: > > > The error message is misleading. > > The problem is that you run it as root! > > > Amanda is not expected to be run as root, do you always run > > amanda as root? > > Yes. Seems best to let

Re: Amcheck Fails on Amanda 3.5

2017-09-29 Thread Jean-Louis Martineau
The error message is misleading. The problem is that you run it as root! Amanda is not expected to be run as root, do you always run amanda as root? Jean-Louis On 29/09/17 11:31 AM, Steven Backus wrote: > Trying amanda 3.5 on Centos 7.4.1708. Did: > > ./configure --with-user=root

Amcheck Fails on Amanda 3.5

2017-09-29 Thread Steven Backus
Trying amanda 3.5 on Centos 7.4.1708. Did: ./configure --with-user=root --with-group=root --with-config=gen2 --with-bsd-security --with-amandahosts --prefix=/local compiled and installed. Tried to run amcheck: /local/sbin/amcheck -c gen2 got: ** (process:15340): CRITICAL **: amcheck must