Quotidien Shaarli

Tous les liens d'un jour sur une page.

March 12, 2026

permissions - Using rsync with sudo on the destination machine - Ask Ubuntu
thumbnail

On the destination machine

  • Find out the path to rsync: which rsync
  • Edit the /etc/sudoers file
  • Add the line
    <username> ALL=NOPASSWD:<path to rsync>

Then, on the source machine, specify that sudo rsync shall be used:

rsync ... --rsync-path="sudo rsync" ...