SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
cannot log in web browser - BackupPC CentOS 6.2 minimal
Author Message
Post cannot log in web browser - BackupPC CentOS 6.2 minimal 
Hello again...

Now with BackupPC in CentOS minimal 6.2 installation (just reinstalled)  I cannot log in the web browser of the backuppc. Looks like the user or password are not correct. In order to accomplish that I made a htpasswd -cp so I am able to read the htpasswd file (not encrypted). I am sure that the user and password I use are the correct one. Any clue?


Regards

Post cannot log in web browser - BackupPC CentOS 6.2 minimal 
On Tue, Feb 7, 2012 at 12:54 PM, Estanislao López Morgan
<estanux < at > gmail.com> wrote:
Hello again...

Now with BackupPC in CentOS minimal 6.2 installation (just reinstalled)  I
cannot log in the web browser of the backuppc. Looks like the user or
password are not correct. In order to accomplish that I made a htpasswd -cp
so I am able to read the htpasswd file (not encrypted). I am sure that the
user and password I use are the correct one. Any clue?

If you have SElinux enabled, it is probably blocking access to your
newly created htpasswd file even though normal permissions would
permit it. I'm not an expert on SElinux, but 'restorecon -Rv
/etc/BackupPC' might fix it (assuming an EPEL package, and if you
followed the directions in /etc/httpd/conf.d/BackupPC.conf the file
would be named apache.users).

--
Les Mikesell
lesmikesell < at > gmail.com

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post cannot log in web browser - BackupPC CentOS 6.2 minimal 
On Tue, Feb 7, 2012 at 1:40 PM, Timothy J Massey <tmassey < at > obscorp.com> wrote:

I have to admit, the first change I make on BackupPC systems is to set
SELinux to Permissive.  Too many issues without doing that.

It's on my list to overcome that, but not a real high priority, sadly.

I'm not sure what the differences are between Fedora and RHEL as far
as SELinux, but I know I didn't have to do anything in order to get
the BackuPC web interface working.

I have apache.users in /etc/BackupPC.

In /etc/httpd/conf.d/BackupPC.conf I have:
<Directory /usr/share/BackupPC/sbin/>
# BackupPC requires valid authentication in order for the web interface to
# function properly. One can view the web interface without authentication
# though all functionality is disabled.
#
# htpasswd -c /etc/BackupPC/apache.users yourusername
#

order deny,allow
deny from all
allow from 192.168.0.0/255.255.255.0
allow from 127.0.0.1
allow from ::1
AuthType Basic
AuthUserFile /etc/BackupPC/apache.users
AuthName "BackupPC"

require valid-user

</Directory>

Alias /BackupPC/images /usr/share/BackupPC/html/
ScriptAlias /BackupPC /usr/share/BackupPC/sbin/BackupPC_Admin
ScriptAlias /backuppc /usr/share/BackupPC/sbin/BackupPC_Admin
---

Maybe this helps?

Richard

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post cannot log in web browser - BackupPC CentOS 6.2 minimal 
On Tue, Feb 7, 2012 at 2:12 PM, Richard Shaw <hobbes1069 < at > gmail.com> wrote:

I have to admit, the first change I make on BackupPC systems is to set
SELinux to Permissive.  Too many issues without doing that.

It's on my list to overcome that, but not a real high priority, sadly.

I'm not sure what the differences are between Fedora and RHEL as far
as SELinux, but I know I didn't have to do anything in order to get
the BackuPC web interface working.

I have apache.users in /etc/BackupPC.


I think it depends on the security context of the process when you
create the apache.users file. For example, if you run ssh-copy-id
from a pre 6.x system to update your authorized_keys file on a 6.x
system, the file is created with the wrong context and sshd will not
be able to read it. This may be something similar.

--
Les Mikesell
lesmikesell < at > gmail.com




In /etc/httpd/conf.d/BackupPC.conf I have:
<Directory       /usr/share/BackupPC/sbin/>
# BackupPC requires valid authentication in order for the web interface to
# function properly.  One can view the web interface without authentication
# though all functionality is disabled.
#
# htpasswd -c /etc/BackupPC/apache.users yourusername
#

order deny,allow
deny from all
allow from 192.168.0.0/255.255.255.0
allow from 127.0.0.1
allow from ::1
AuthType Basic
AuthUserFile /etc/BackupPC/apache.users
AuthName "BackupPC"

require valid-user

</Directory>

Alias           /BackupPC/images        /usr/share/BackupPC/html/
ScriptAlias     /BackupPC               /usr/share/BackupPC/sbin/BackupPC_Admin
ScriptAlias     /backuppc               /usr/share/BackupPC/sbin/BackupPC_Admin
---

Maybe this helps?

Richard

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post cannot log in web browser - BackupPC CentOS 6.2 minimal 
Hi Fellows Backuppers!


Finally, my backuppc in CentOS 6.2 is working! I just want to comment what I did in case someone had, have or will have the same problem.


After installing CentOS minimal 6.2 and disable SeLinux and the IpTables (just in case). So what I did was:


wget http://download.fedora.redhat.com/pub/epel/beta/6/i386/perl-File-RsyncP-0.68-6.el6.i686.rpm 
yum -y localinstall perl-File-RsyncP-0.68-6.el6.i686.rpm


yum install perl-Net-FTP-AutoReconnect.noarch


yum install perl-Net-FTP-RetrHandle.noarch


wget http://download.fedora.redhat.com/pub/epel/beta/6/i386/BackupPC-3.1.0-13.el6.noarch.rpm
yum -y localinstall BackupPC-3.1.0-13.el6.noarch.rpm


yum install sudo.i686


After that, I follow the indications in CentOS.org about backuppc http://wiki.centos.org/HowTos/BackupPC but with the differences that 
instead of:  
htpasswd -c /var/lib/backuppc/passwd/htpasswd your_user 


you have to do :
htpasswd -c /etc/BackupPC/apache.users yourusername


You can find this at /etc/httpd/conf.d/BackupPC.conf


Then just follow what is writen in CentOS How To link.


Thanks for your help boys


Regards

On Tue, Feb 7, 2012 at 5:26 PM, Les Mikesell <lesmikesell < at > gmail.com ([email]lesmikesell < at > gmail.com[/email])> wrote:
On Tue, Feb 7, 2012 at 2:12 PM, Richard Shaw <hobbes1069 < at > gmail.com ([email]hobbes1069 < at > gmail.com[/email])> wrote:

I have to admit, the first change I make on BackupPC systems is to set
SELinux to Permissive.  Too many issues without doing that.

It's on my list to overcome that, but not a real high priority, sadly.

I'm not sure what the differences are between Fedora and RHEL as far
as SELinux, but I know I didn't have to do anything in order to get
the BackuPC web interface working.

I have apache.users in /etc/BackupPC.



I think it depends on the security context of the process when you
create the apache.users file.  For example, if you run ssh-copy-id
from a pre 6.x system to update your authorized_keys file on a 6.x
system, the file is created with the wrong context and sshd will not
be able to read it.  This may be something similar.

--
  Les Mikesell
     lesmikesell < at > gmail.com ([email]lesmikesell < at > gmail.com[/email])




In /etc/httpd/conf.d/BackupPC.conf I have:
<Directory       /usr/share/BackupPC/sbin/>
# BackupPC requires valid authentication in order for the web interface to
# function properly.  One can view the web interface without authentication
# though all functionality is disabled.
#
# htpasswd -c /etc/BackupPC/apache.users yourusername
#

order deny,allow
deny from all
allow from 192.168.0.0/255.255.255.0
allow from 127.0.0.1
allow from ::1
AuthType Basic
AuthUserFile /etc/BackupPC/apache.users
AuthName "BackupPC"

require valid-user

</Directory>

Alias           /BackupPC/images        /usr/share/BackupPC/html/
ScriptAlias     /BackupPC               /usr/share/BackupPC/sbin/BackupPC_Admin
ScriptAlias     /backuppc               /usr/share/BackupPC/sbin/BackupPC_Admin
---

Maybe this helps?

Richard

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net ([email]BackupPC-users < at > lists.sourceforge.net[/email])
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net ([email]BackupPC-users < at > lists.sourceforge.net[/email])
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/




Post cannot log in web browser - BackupPC CentOS 6.2 minimal 
On Wed, Feb 8, 2012 at 2:53 PM, Estanislao López Morgan <estanux < at > gmail.com ([email]estanux < at > gmail.com[/email])> wrote:

Finally, my backuppc in CentOS 6.2 is working! I just want to comment what I did in case someone had, have or will have the same problem.




Did you have some particular reason to not install the EPEL respository configuration package and then let yum do all the rest of the work?

I would have done:

 rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm
 yum install backuppc

And then if I didn't want EPEL enabled all the time, I'd edit /etc/yum.repos.d/epel.repo and set enabled=0 - but I have never had problems from leaving it enabled during updates when it was the only 3rd party addition.

--
   Les Mikesell
     lesmikesell < at > gmail.com ([email]lesmikesell < at > gmail.com[/email])

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB