BackupPC-users

Re: [BackupPC-users] Fwd: Re: BackupPC v4 for Fedora / EPEL Update

2017-04-04 10:14:13
Subject: Re: [BackupPC-users] Fwd: Re: BackupPC v4 for Fedora / EPEL Update
From: tbuchanan AT vinu DOT edu
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Tue, 4 Apr 2017 09:48:14 -0400


From:        Adam Goryachev <mailinglists AT websitemanagers.com DOT au>
To:        backuppc-users AT lists.sourceforge DOT net
Date:        04/04/2017 09:38 AM
Subject:        Re: [BackupPC-users] Fwd: Re: BackupPC v4 for Fedora / EPEL Update




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

On 2017-04-03 07:06, Adam Goryachev wrote:
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 AT lists.sourceforge DOT net
List:    
https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    
http://backuppc.wiki.sourceforge.net
Project:
http://backuppc.sourceforge.net/

 

These made sense and I ran your suggestions. The first login attempt and I received the appropriate login box, entered user name and passwd but still only five (5) entires in navigation menu. Logoff, close browser tab, start new tab, enter backuppc ipaddress and just login, no request for user name or passwd.

Thanks for your suggestions, Adam. These match (in the CentOS way) to what I was seeing on Ubuntu running v3.3.1. I still think it is a permissions issue.

 

I don't think it is a permissions issue (at least not a unix permissions issue). Check your apache error log to ensure there is nothing there.
I expect the problem is that you haven't told backuppc that your username is the administrator.
You need to make sure the username you enter matches the backuppc configuration:
$Conf{BackupPCUser} = 'backuppc';

So for me, I login with username backuppc.

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 AT lists.sourceforge DOT net
List:    
https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    
http://backuppc.wiki.sourceforge.net
Project:
http://backuppc.sourceforge.net/

What is your setting for $Conf{CgiAdminUsers} in /etc/BackupPC/config.pl?  This gives the full menu for me when I log in as a user defined in this parameter.

example, $Conf{CgiAdminUsers}     = 'craig celia';

------------------------------------------------------------------------------
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 AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/