Hispanitat nº 7 Local C

08225, Terrassa (Barcelona)

+34 600 676 872

Soporte Técnico

Lunes-Viernes: 9:30 a 13:30 - 16:30 a 20:00

Sábados a convenir

Forum breadcrumbs - You are here:ForoCategoría principal: CENTOS 7backuppc
Por favor, o Regístrate para crear mensajes y debates.

backuppc

yum install epel-release
yum install httpd
yum install backuppc nfs-utils nfs-utils-lib bzip2
systemctl restart backuppc.service
systemctl enable backuppc
cd /usr/share/BackupPC/
chown backuppc:apache sbin/*

cd /usr/share/BackupPC/sbin
chmod u+s BackupPC_Admin

usermod -s /bin/bash backuppc
firewall-cmd --zone=public --add-port=80/tcp --permanent

firewall-cmd --reload

vi /etc/BackupPC/config.pl

Edit
1
2

$Conf{CgiAdminUserGroup} = '';
$Conf{CgiAdminUsers} = '';

TO
1
2

$Conf{CgiAdminUserGroup} = '';
$Conf{CgiAdminUsers} = 'backuppc';

THEN

Edit
1

$Conf{PingPath} = '';

TO
1

$Conf{PingPath} = '/bin/ping';
htpasswd -c /etc/BackupPC/apache.users backuppc

systemctl restart backuppc.service
systemctl restart httpd.service

# visudo

## Comment out Defaults requiretty
## Add the following two lines.
Defaults !lecture
backuppc ALL=NOPASSWD:/bin/gtar,/bin/tar
# cd /var/lib/backuppc
# mkdir .ssh
# chown backuppc.backuppc .ssh
# chmod 700 .ssh
su -s /bin/bash backuppc bash-3.2
$ ssh-keygen -t dsa
ssh-copy-id -i .ssh/id_dsa.pub root@localhost

también se debería editar

/etc/httpd/conf.d/BackupPc.conf

<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAll>
Require valid-user
<RequireAny>
Require local
Require all granted
</RequireAny>
</RequireAll>
</IfModule>

WhatsApp chat