Error en la Webadmin de Backuppc

Oct 11, 2017

Intentando instalar BackupPC en RHEL7, tuvo este error al entrar al webadmin de BackupPC:

    Error: Wrong user: my userid is 81, instead of 119(backuppc)

    This script needs to run as the user specified in $Conf{BackupPCUser}, which is set to backuppc.
This is an installation problem. If you are using mod_perl then it appears that Apache is not running as user backuppc. If you are not using mod_perl, then most like setuid is not working properly on BackupPC_Admin. Check the permissions on /usr/share/webapps/backuppc/2.1.2-r1/hostroot/cgi-bin//BackupPC_Admin and look at the documentation.

Como se soluciona? Pues como dice el error, por ahora en la aplicacion no estoy usando mod_perl , asi que el problema es que Apache2 (Aka httpd) esta corriendo como usuario Apache y no como usuario backuppc que es como deberia correr. Esto solo aplica si BackupPC es la unica aplicacion web corriendo en el servidor; entonces solo hay que cambiar en /etc/httpd/conf.d/httpd.conf las lineas User y Group:

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User backuppc
Group backuppc

Aqui donde encontre un comentario donde sugieren la solucion al problema .

#Servidores#Errores#Backuppc
Contenido bajo la licencia Creative Commons Attribution 4.0 International (CC BY 4.0)

Instalando ESET ERA en RHEL7/CentOS7