Hello all,
I'm a new user of BackupPC with some questions (moving away from Amanda).
OS: CentOS 8.3
BackupPC version 4.4.0

I followed the guide on
https://kifarunix.com/install-and-configure-backuppc-on-centos-8/
and all looks good but...
I don't like using the root user on the client side for backups, never allow 
root to login via ssh.
So how do I generate ssh keys for the backuppc user on the server ? The user 
backuppc does not own the /var/lib/BackupPC dir so it can't generate the keys.

Backuppc-server# sudo -u backuppc ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/var/lib/BackupPC/.ssh/id_rsa):
Could not create directory '/var/lib/BackupPC/.ssh': Permission denied
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Saving key "/var/lib/BackupPC/.ssh/id_rsa" failed: No such file or directory

Backuppc-server# ll /var/lib/
drwxr-xr-x.  3 root           root           4096 Feb  2 14:58 BackupPC

If I can get that to work I will create a low-privileged user on each client 
that has sudo privileges for running rsync.  That should work.


Many thank for any help.
/Arnar




Fyrirvari/disclaimer<https://www.isavia.is/fyrirvari>


[Isavia logo]<https://www.isavia.is/arsskyrsla2019>
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/

Reply via email to