blog:configure_backuppc_with_a_non-root_account

Configure backuppc with a non-root account

backuppc is an excellent automated backup tool. One flaw it has is that the default configuration requires an enabled ssh root login. This is easy to fix. Think of a backuppc username for all your client systems. In the following, i will use CLIENTUSER and CLIENT On the client systems

  1. adduser CLIENTUSER
  2. visudo and add either
    • For backup only, read access: CLIENTUSER ALL=NOPASSWD: /usr/bin/rsync –server –sender *
    • For backup and restores, rw access: CLIENTUSER ALL=NOPASSWD: /usr/bin/rsync

On the backuppc server system:

  1. sudo -s
  2. su backuppc
  3. Copy ssh key: ssh-copy-id CLIENTUSER@CLIENT
  4. Test login: ssh CLIENTUSER@CLIENT
  5. Change rsync client command for CLIENT: '$sshPath -l CLIENTUSER $host nice -n 19 sudo $rsyncPath $argList+'

Ref:

~~LINKBACK~~ ~~DISCUSSION~~

  • blog/configure_backuppc_with_a_non-root_account.txt
  • Last modified: 2010/09/10 09:10
  • by brb