How to Stop the Ubuntu ‘Accounts-Daemon’ Service on Single-User Systems

The User Management Overhead

Ubuntu utilizes a background service called accounts-daemon to manage user accounts on the system. It exposes a D-Bus interface that allows graphical programs (like the GNOME Control Center or the GDM login screen) to quickly query and manipulate user information, such as checking user privileges, changing passwords, or displaying profile pictures.

If you are running a standalone, single-user Ubuntu server (such as a Raspberry Pi running a DNS sinkhole, or a basic web server in the cloud) where you exclusively log in via SSH using a single administrator account, this service is unnecessary. It consumes RAM in the background waiting for graphical requests that will never arrive. Disabling it is a quick way to harden your system and free up a small amount of memory on resource-constrained devices.

How to Disable Accounts-Daemon

You can stop and disable the service using the systemctl command.

  1. Open your Ubuntu Terminal (or connect via SSH).
  2. Stop the currently running instance of the daemon:
sudo systemctl stop accounts-daemon.service
  1. Disable the service so it does not start automatically the next time you reboot the server:
sudo systemctl disable accounts-daemon.service
  1. (Optional) For maximum certainty, you can “mask” the service. This creates a symlink to /dev/null, preventing any other service from accidentally starting it as a dependency:
sudo systemctl mask accounts-daemon.service

The daemon is now permanently disabled. (Note: Do not do this on a desktop computer, as it will break the user management sections of the graphical settings app).

Get the best tech tips delivered straight to your inbox.

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