On 3/4/17 21:47, Bob of Donelson Trophy wrote:

On 2017-04-03 05:17, Richard Shaw wrote:

It should not be necessary to run apache as the backuppc user. When I have some time I may have to setup a CentOS 7 box up from scratch. I'm not sure at this point what I've tweaked but I'm not having the same problem.

To Adam,

I checked the apache error_log and found "(13)Permission denied: [client 192.168.242.29:43348] AH01620: Could not open password file: /etc/BackupPC/apache.users". Hum-m-m-m??

Perfect, there is your "smoking gun".
So, do the following:
ps aux|grep apache
See what user apache is running as (you also need the group, probably just get that from the apache config files).

Now do the following commands:
ls -ld /etc/BackupPC
ls -ld /etc/BackupPC/apache.users

Lets assume apache is running with the user apache
Lets assume the /etc/BackupPC directory is owned by backuppc, and is secured so that it is not world readable (a pretty good idea since it is likely to contain passwords in the various config files). Lets assume the /etc/BackupPC/apache.users file is owned by backuppc as well.

You would need to do the following commands to "fix" it (ie, allow apache to read the passwd file).
chgrp apache /etc/BackupPC
chmod g+rx /etc/BackupPC (edit config probably won't work, but it should fix your current problem).

You might also need the following:
chgrp apache /etc/BackupPC/apache.users
chmod g+r /etc/BackupPC/apache.users

The other option is to simply do this:
mv /etc/BackupPC/apache.users /etc/apache2/backuppc.users
chown apache /etc/apache2/backuppc.users
Update the apache config file to point to the new location.

Then, restart apache and you should be fine.

Regards,
Adam
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
              • ... Les Mikesell
          • ... Bob of Donelson Trophy
            • ... Richard Shaw
              • ... Bob of Donelson Trophy
              • ... Richard Shaw
              • ... Bob of Donelson Trophy
              • ... Adam Goryachev
              • ... Tim Herren
              • ... Richard Shaw
              • ... Bob of Donelson Trophy
              • ... Adam Goryachev
              • ... Richard Shaw
              • ... Bob of Donelson Trophy
              • ... Bob of Donelson Trophy
              • ... Adam Goryachev
              • ... Richard Shaw
              • ... tbuchanan
  • Re: [Backu... Moorcroft, Mark (ARC-TS)[Analytical Mechanics Associates, INC.]

Reply via email to