Re: [BackupPC-users] cannot log in web browser - BackupPC CentOS 6.2 minimal
On Wed, Feb 8, 2012 at 2:53 PM, Estanislao López Morgan 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 lesmikes...@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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] 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 wrote: > On Tue, Feb 7, 2012 at 2:12 PM, Richard Shaw 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 > lesmikes...@gmail.com > > > > > > > In /etc/httpd/conf.d/BackupPC.conf I have: > > > > # 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 > > > > > > > > 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@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@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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] cannot log in web browser - BackupPC CentOS 6.2 minimal
On Tue, Feb 7, 2012 at 2:12 PM, Richard Shaw 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 lesmikes...@gmail.com > > In /etc/httpd/conf.d/BackupPC.conf I have: > > # 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 > > > > 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@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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] cannot log in web browser - BackupPC CentOS 6.2 minimal
On Tue, Feb 7, 2012 at 1:40 PM, Timothy J Massey 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: # 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 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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] cannot log in web browser - BackupPC CentOS 6.2 minimal
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. Timothy J. Massey Out of the Box Solutions Inc. Sent from my iPad On Feb 7, 2012, at 2:16 PM, "Les Mikesell" wrote: > On Tue, Feb 7, 2012 at 12:54 PM, Estanislao López Morgan > 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 > lesmikes...@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@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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] cannot log in web browser - BackupPC CentOS 6.2 minimal
On Tue, Feb 7, 2012 at 12:54 PM, Estanislao López Morgan 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 lesmikes...@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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
[BackupPC-users] 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 -- 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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/