Menú
08225, Terrassa (Barcelona)
Soporte Técnico
Sábados a convenir
Cita de admin en 26 julio, 2019, 12:34 pmyum 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_Adminusermod -s /bin/bash backuppc
firewall-cmd --zone=public --add-port=80/tcp --permanentfirewall-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 backuppcsystemctl 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
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
Cita de admin en 26 agosto, 2019, 5:13 pmtambié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>
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>
© Informàtica Can Boada All rights reserved