[eba70158] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY accountsservice-download-http
|
---|
[8dfc5c3] | 8 | "https://www.freedesktop.org/software/accountsservice/accountsservice-&accountsservice-version;.tar.xz">
|
---|
[eba70158] | 9 | <!ENTITY accountsservice-download-ftp " ">
|
---|
[048aa04] | 10 | <!ENTITY accountsservice-md5sum "6dae0b50b48abe61296c8ecf90068c1f">
|
---|
[9501a015] | 11 | <!ENTITY accountsservice-size "100 KB">
|
---|
[048aa04] | 12 | <!ENTITY accountsservice-buildsize "7.3 MB">
|
---|
[0ae4498] | 13 | <!ENTITY accountsservice-time "less than 0.1 SBU">
|
---|
[eba70158] | 14 | ]>
|
---|
| 15 |
|
---|
[51dfb3e] | 16 | <sect1 id="accountsservice" xreflabel="AccountsService-&accountsservice-version;">
|
---|
[eba70158] | 17 | <?dbhtml filename="accountsservice.html"?>
|
---|
| 18 |
|
---|
| 19 |
|
---|
| 20 | <title>AccountsService-&accountsservice-version;</title>
|
---|
| 21 |
|
---|
| 22 | <indexterm zone="accountsservice">
|
---|
| 23 | <primary sortas="a-AccountsService">AccountsService</primary>
|
---|
| 24 | </indexterm>
|
---|
| 25 |
|
---|
| 26 | <sect2 role="package">
|
---|
| 27 | <title>Introduction to AccountsService</title>
|
---|
| 28 |
|
---|
| 29 | <para>
|
---|
| 30 | The <application>AccountsService</application> package provides a
|
---|
| 31 | set of <application>D-Bus</application> interfaces for querying
|
---|
| 32 | and manipulating user account information and an implementation
|
---|
| 33 | of those interfaces based on the usermod(8), useradd(8) and
|
---|
| 34 | userdel(8) commands.
|
---|
| 35 | </para>
|
---|
| 36 |
|
---|
[b1c0fa7] | 37 | &lfs112_checked;
|
---|
[eba70158] | 38 |
|
---|
| 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>
|
---|
| 43 | Download (HTTP): <ulink url="&accountsservice-download-http;"/>
|
---|
| 44 | </para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>
|
---|
| 48 | Download (FTP): <ulink url="&accountsservice-download-ftp;"/>
|
---|
| 49 | </para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>
|
---|
| 53 | Download MD5 sum: &accountsservice-md5sum;
|
---|
| 54 | </para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>
|
---|
| 58 | Download size: &accountsservice-size;
|
---|
| 59 | </para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>
|
---|
| 63 | Estimated disk space required: &accountsservice-buildsize;
|
---|
| 64 | </para>
|
---|
| 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
| 67 | <para>
|
---|
| 68 | Estimated build time: &accountsservice-time;
|
---|
| 69 | </para>
|
---|
| 70 | </listitem>
|
---|
| 71 | </itemizedlist>
|
---|
| 72 |
|
---|
| 73 | <bridgehead renderas="sect3">AccountsService Dependencies</bridgehead>
|
---|
| 74 |
|
---|
| 75 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 76 | <para role="required">
|
---|
[51eb0bf] | 77 | <!--<xref linkend="libgcrypt"/> and-->
|
---|
[eba70158] | 78 | <xref linkend="polkit"/>
|
---|
| 79 | </para>
|
---|
| 80 |
|
---|
| 81 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 82 | <para role="recommended">
|
---|
| 83 | <xref linkend="gobject-introspection"/> and
|
---|
[51dfb3e] | 84 | <phrase revision="sysv"><xref linkend="elogind"/></phrase>
|
---|
| 85 | <phrase revision="systemd"><xref linkend="systemd"/></phrase>
|
---|
[eba70158] | 86 | </para>
|
---|
| 87 |
|
---|
| 88 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 89 | <para role="optional">
|
---|
[a20845e7] | 90 | <xref linkend="gtk-doc"/> and
|
---|
[eba70158] | 91 | <xref linkend="xmlto"/>
|
---|
[a20845e7] | 92 | <!-- I did not have gtk-doc installed this time, and it worked fine. -->
|
---|
[eba70158] | 93 | </para>
|
---|
| 94 |
|
---|
| 95 | <para condition="html" role="usernotes">User Notes:
|
---|
| 96 | <ulink url="&blfs-wiki;/accountsservice"/>
|
---|
| 97 | </para>
|
---|
| 98 | </sect2>
|
---|
| 99 |
|
---|
| 100 | <sect2 role="installation">
|
---|
| 101 | <title>Installation of AccountsService</title>
|
---|
[048aa04] | 102 | <!-- fixed in 22.08.8
|
---|
[885bcd41] | 103 | <para revision="systemd">
|
---|
| 104 | First, fix an issue in the systemd unit that causes runtime issues:
|
---|
[048aa04] | 105 | <!-\- causes errors when trying to change the user's icon in g-c-c -\->
|
---|
[34623f0e] | 106 | </para>
|
---|
| 107 |
|
---|
[885bcd41] | 108 | <screen revision="systemd"><userinput remap="pre">sed -i '/PrivateTmp/d' data/accounts-daemon.service.in</userinput></screen>
|
---|
[048aa04] | 109 | -->
|
---|
[eba70158] | 110 | <para>
|
---|
| 111 | Install <application>AccountsService</application> by running the following
|
---|
| 112 | commands:
|
---|
| 113 | </para>
|
---|
| 114 |
|
---|
[51dfb3e] | 115 | <screen revision="sysv"><userinput>mkdir build &&
|
---|
[1575ce1] | 116 | cd build &&
|
---|
| 117 |
|
---|
[20f070d8] | 118 | meson --prefix=/usr \
|
---|
| 119 | --buildtype=release \
|
---|
| 120 | -Dadmin_group=adm \
|
---|
| 121 | -Delogind=true \
|
---|
| 122 | -Dsystemdsystemunitdir=no \
|
---|
| 123 | .. &&
|
---|
[51dfb3e] | 124 | ninja</userinput></screen>
|
---|
| 125 |
|
---|
| 126 | <screen revision="systemd"><userinput>mkdir build &&
|
---|
| 127 | cd build &&
|
---|
| 128 |
|
---|
[20f070d8] | 129 | meson --prefix=/usr \
|
---|
| 130 | --buildtype=release \
|
---|
| 131 | -Dadmin_group=adm \
|
---|
| 132 | .. &&
|
---|
[a20845e7] | 133 | ninja</userinput></screen>
|
---|
[eba70158] | 134 |
|
---|
| 135 | <para>
|
---|
| 136 | This package does not come with a test suite.
|
---|
| 137 | </para>
|
---|
| 138 |
|
---|
| 139 | <para>
|
---|
| 140 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 141 | </para>
|
---|
| 142 |
|
---|
[a20845e7] | 143 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[eba70158] | 144 |
|
---|
| 145 | </sect2>
|
---|
| 146 |
|
---|
| 147 | <sect2 role="commands">
|
---|
| 148 | <title>Command Explanations</title>
|
---|
| 149 |
|
---|
[20f070d8] | 150 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 151 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
| 152 |
|
---|
[eba70158] | 153 | <para>
|
---|
[a20845e7] | 154 | <parameter>-Dadmin_group=adm</parameter>: This switch sets
|
---|
[eba70158] | 155 | the group for administrator accounts.
|
---|
| 156 | </para>
|
---|
| 157 |
|
---|
[9a363500] | 158 | <para>
|
---|
[a20845e7] | 159 | <option>-Ddocbook=true</option>: This switch enables building
|
---|
[9a363500] | 160 | the D-Bus interface API documentation.
|
---|
| 161 | </para>
|
---|
[20f070d8] | 162 |
|
---|
[eba70158] | 163 | </sect2>
|
---|
| 164 |
|
---|
| 165 | <sect2 role="configuration">
|
---|
| 166 | <title>Configuring AccountsService</title>
|
---|
| 167 |
|
---|
[4045ec3d] | 168 | <para>
|
---|
| 169 | To allow users in the adm group to be listed as Administrators,
|
---|
| 170 | execute the following commands as the
|
---|
| 171 | <systemitem class="username">root</systemitem> user:
|
---|
| 172 | </para>
|
---|
| 173 |
|
---|
| 174 | <screen role="root"><userinput>cat > /etc/polkit-1/rules.d/40-adm.rules << "EOF"
|
---|
| 175 | <literal>polkit.addAdminRule(function(action, subject) {
|
---|
| 176 | return ["unix-group:adm"];
|
---|
| 177 | });</literal>
|
---|
| 178 | EOF</userinput></screen>
|
---|
| 179 |
|
---|
[0c77adcb] | 180 | <sect3 id="accountsservice-init" revision="systemd">
|
---|
| 181 | <!-- <title><phrase revision="sysv">Boot Script</phrase>
|
---|
| 182 | <phrase revision="systemd">Systemd Units</phrase></title> -->
|
---|
| 183 | <title>Systemd Unit</title>
|
---|
[048aa04] | 184 | <!-- Automatically started by D-Bus when needed
|
---|
[51dfb3e] | 185 | <para revision="sysv">
|
---|
[eba70158] | 186 | To start the <command>accounts-daemon</command> daemon at boot,
|
---|
[51dfb3e] | 187 | install the
|
---|
| 188 | <filename>/etc/rc.d/init.d/accounts-daemon</filename> init script from
|
---|
| 189 | the <xref linkend="bootscripts"/> package
|
---|
| 190 | by running the following command as the
|
---|
| 191 | <systemitem class="username">root</systemitem> user:
|
---|
| 192 | </para>
|
---|
[048aa04] | 193 |
|
---|
| 194 | <screen role="root" revision="sysv"><userinput>make install-accounts-daemon</userinput></screen>
|
---|
[0c77adcb] | 195 | -->
|
---|
[048aa04] | 196 | <para>
|
---|
[51dfb3e] | 197 | To start the <command>accounts-daemon</command> daemon at boot,
|
---|
[4e207bb] | 198 | enable the previously installed systemd unit
|
---|
[51dfb3e] | 199 | by running the following command as the
|
---|
[eba70158] | 200 | <systemitem class="username">root</systemitem> user:
|
---|
| 201 | </para>
|
---|
| 202 |
|
---|
| 203 | <indexterm zone="accountsservice accountsservice-init">
|
---|
| 204 | <primary sortas="f-accounts-daemon">accounts-daemon</primary>
|
---|
| 205 | </indexterm>
|
---|
| 206 |
|
---|
[048aa04] | 207 | <screen role="root"><userinput>systemctl enable accounts-daemon</userinput></screen>
|
---|
[eba70158] | 208 |
|
---|
| 209 | </sect3>
|
---|
| 210 |
|
---|
| 211 | </sect2>
|
---|
| 212 |
|
---|
| 213 | <sect2 role="content">
|
---|
| 214 | <title>Contents</title>
|
---|
| 215 |
|
---|
| 216 | <segmentedlist>
|
---|
| 217 | <segtitle>Installed Programs</segtitle>
|
---|
| 218 | <segtitle>Installed Libraries</segtitle>
|
---|
| 219 | <segtitle>Installed Directories</segtitle>
|
---|
| 220 |
|
---|
| 221 | <seglistitem>
|
---|
| 222 | <seg>
|
---|
[048aa04] | 223 | accounts-daemon (in
|
---|
| 224 | <filename class="directory">/usr/libexec</filename>)
|
---|
[eba70158] | 225 | </seg>
|
---|
| 226 | <seg>
|
---|
| 227 | libaccountsservice.so
|
---|
| 228 | </seg>
|
---|
| 229 | <seg>
|
---|
| 230 | /usr/include/accountsservice-1.0,
|
---|
[048aa04] | 231 | /usr/share/accountsservice,
|
---|
| 232 | /usr/share/gtk-doc/html/libaccountsservice (optional), and
|
---|
[eba70158] | 233 | /var/lib/AccountsService
|
---|
| 234 | </seg>
|
---|
| 235 | </seglistitem>
|
---|
| 236 | </segmentedlist>
|
---|
| 237 |
|
---|
| 238 | <variablelist>
|
---|
| 239 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 240 | <?dbfo list-presentation="list"?>
|
---|
| 241 | <?dbhtml list-presentation="table"?>
|
---|
| 242 |
|
---|
| 243 | <varlistentry id="accounts-daemon">
|
---|
| 244 | <term><command>accounts-daemon</command></term>
|
---|
| 245 | <listitem>
|
---|
| 246 | <para>
|
---|
[4c24eb0a] | 247 | is the <application>AccountsService</application> daemon
|
---|
[eba70158] | 248 | </para>
|
---|
| 249 | <indexterm zone="accountsservice accounts-daemon">
|
---|
| 250 | <primary sortas="b-accounts-daemon">accounts-daemon</primary>
|
---|
| 251 | </indexterm>
|
---|
| 252 | </listitem>
|
---|
| 253 | </varlistentry>
|
---|
| 254 |
|
---|
| 255 | <varlistentry id="libaccountsservice">
|
---|
| 256 | <term><filename class="libraryfile">libaccountsservice.so</filename></term>
|
---|
| 257 | <listitem>
|
---|
| 258 | <para>
|
---|
[4c24eb0a] | 259 | contains the <application>AccountsService</application> API functions
|
---|
[eba70158] | 260 | </para>
|
---|
| 261 | <indexterm zone="accountsservice libaccountsservice">
|
---|
| 262 | <primary sortas="c-libaccountsservice">libaccountsservice.so</primary>
|
---|
| 263 | </indexterm>
|
---|
| 264 | </listitem>
|
---|
| 265 | </varlistentry>
|
---|
| 266 |
|
---|
| 267 | </variablelist>
|
---|
| 268 |
|
---|
| 269 | </sect2>
|
---|
| 270 |
|
---|
| 271 | </sect1>
|
---|