How to Disable the Ubuntu ‘Rsync’ Daemon on Standalone Servers

The Silent File Synchronizer

Rsync is one of the most powerful and widely used command-line utilities in the Linux ecosystem for copying and synchronizing files. While most administrators use it as a manual command to push backups over SSH, Ubuntu Server also includes the rsync daemon (rsyncd). When running as a daemon, it opens a network port (typically TCP 873) and continuously listens for incoming connections, allowing remote machines to pull or push files directly to the server without needing SSH access.

If you are running a standalone web server, a database node, or a simple home file server where all file transfers are handled via SFTP or Samba, the rsync daemon is completely unnecessary. Leaving an unused service listening on a network port is a poor security practice, as it increases the potential attack surface of your machine. You should disable the daemon if you only intend to use rsync as a manual command.

How to Disable the Rsync Daemon

You can prevent the daemon from running in the background without uninstalling the rsync utility itself.

  1. Open your Ubuntu Terminal (or connect via SSH).
  2. Stop the currently running service immediately:
sudo systemctl stop rsync.service
  1. Next, disable the service so it does not start automatically during the next boot cycle:
sudo systemctl disable rsync.service
  1. Finally, you can verify that the service is completely inactive by checking its status:
sudo systemctl status rsync.service

The terminal should report that the service is inactive (dead). You can still type rsync into your terminal to manually back up your files, but the server will no longer silently listen on the network for unencrypted incoming synchronization requests.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.