Home / Community / Blog / BackupPC on ReadyNAS

BackupPC on ReadyNAS

After installation (as you can see it is based on Debian)

apt-get install backuppc

I have to modify attributes:

chmod u+s /usr/share/backuppc/cgi-bin/index.cgi

Because of error:

File::RsyncP module doesn't exist

I had to install manually missing Perl module:

apt-get install libfile-rsyncp-perl

To login without password I've generated keys (as root):

ssh-keygen

and copy id_rsa.pub to .ssh/authorized_keys on host I would like to backup.

Now I can ssh to that host without password (on Windows machine You have to allow Public Key exchange).

It's time to do the same for backuppc user. By default it has bash set to /bin/false so I done it manually:

mkdir -p /home/backuppc/.ssh
cp id_rsa known_hosts /home/backuppc/.ssh
chown -r backuppc /home/backuppc/.ssh

Comments

Copping known_hosts

There is another way:
https://www.jaqb.gda.pl/eng/Community/Blog/Run-command-as-user-who-cannot-login

Log in or create a user account to comment.

Just my blog...

Mon Tue Wed Thu Fri Sat Sun
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31