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