How to Disable the Ubuntu ‘Gsd-sharing’ Service

The GNOME Network Sharing Daemon

In Ubuntu, the GNOME Settings Daemon (GSD) handles a multitude of system-level configurations. The gsd-sharing plugin specifically manages the background functionality for GNOME’s built-in file and media sharing features. If you go into the GNOME Settings and enable “File Sharing” (which starts a local WebDAV server) or “Media Sharing” (which starts a DLNA/UPnP server to stream videos to your smart TV), this daemon is responsible for brokering those connections, managing the network ports, and ensuring the services start and stop appropriately when you join or leave a trusted Wi-Fi network.

While highly convenient for a home laptop user wanting to quickly stream a movie to their television, this daemon is completely unnecessary on machines where network sharing is either strictly forbidden by policy or managed by dedicated, robust server software (like Samba or an enterprise NFS setup). If you never use GNOME’s built-in, lightweight sharing toggles, having the gsd-sharing daemon running in the background is a minor waste of resources and a potential, albeit small, attack surface. You can disable it to harden your session.

How to Disable the Gsd-sharing Service

Because gsd-sharing is dynamically spawned as a plugin by the overarching GNOME Settings Daemon, you cannot disable it via standard systemctl commands. You must remove the binary’s ability to execute.

  1. Open your Ubuntu Terminal.
  2. To disable the sharing plugin, strip its execute permissions by running the following command:
sudo chmod -x /usr/libexec/gsd-sharing

(Note: Depending on your specific Ubuntu release, you might need to target /usr/lib/gnome-settings-daemon/gsd-sharing).

  1. Restart your computer, or log out of GNOME and log back in to apply the changes.

GNOME will no longer load its native sharing management subsystem, ensuring those specific lightweight network services remain permanently offline.

Get the best tech tips delivered straight to your inbox.

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