Introduction to AccountsService

The AccountsService package provides a set of D-Bus interfaces for querying and manipulating user account information and an implementation of those interfaces based on the usermod(8), useradd(8) and userdel(8) commands.



Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.

Package Information

AccountsService Dependencies





GTK-Doc-1.33.2 and xmlto-0.0.28

User Notes:

Installation of AccountsService

Install AccountsService by running the following commands:

mkdir build &&
cd build &&

meson --prefix=/usr       \
      --buildtype=release \
      -Dadmin_group=adm   \
      .. &&

This package does not come with a test suite.

Now, as the root user:

ninja install

Command Explanations

--buildtype=release: Specify a buildtype suitable for stable releases of the package, as the default may produce unoptimized binaries.

-Dadmin_group=adm: This switch sets the group for administrator accounts.

-Ddocbook=true: This switch enables building the D-Bus interface API documentation.

Configuring AccountsService

To allow users in the adm group to be listed as Administrators, execute the following commands as the root user:

cat > /etc/polkit-1/rules.d/40-adm.rules << "EOF"
polkit.addAdminRule(function(action, subject) {
   return ["unix-group:adm"];

Systemd Unit

To start the accounts-daemon daemon at boot, enable the previously installed systemd unit by running the following command as the root user:

systemctl enable accounts-daemon


Installed Programs: accounts-daemon (in /usr/libexec)
Installed Libraries:
Installed Directories: /usr/include/accountsservice-1.0, /usr/share/accountsservice, /usr/share/gtk-doc/html/libaccountsservice (optional), and /var/lib/AccountsService

Short Descriptions


is the AccountsService daemon

contains the AccountsService API functions