[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 " ">
|
---|
[2adcc63b] | 10 | <!ENTITY accountsservice-md5sum "6e4c6fbd490260cfe17de2e76f5d803a">
|
---|
| 11 | <!ENTITY accountsservice-size "96 KB">
|
---|
| 12 | <!ENTITY accountsservice-buildsize "10 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>
|
---|
| 105 |
|
---|
| 106 | <para>
|
---|
| 107 | Install <application>AccountsService</application> by running the following
|
---|
| 108 | commands:
|
---|
| 109 | </para>
|
---|
| 110 |
|
---|
[51dfb3e] | 111 | <screen revision="sysv"><userinput>mkdir build &&
|
---|
[1575ce1] | 112 | cd build &&
|
---|
| 113 |
|
---|
[20f070d8] | 114 | meson --prefix=/usr \
|
---|
| 115 | --buildtype=release \
|
---|
| 116 | -Dadmin_group=adm \
|
---|
| 117 | -Delogind=true \
|
---|
| 118 | -Dsystemdsystemunitdir=no \
|
---|
| 119 | .. &&
|
---|
[51dfb3e] | 120 | ninja</userinput></screen>
|
---|
| 121 |
|
---|
| 122 | <screen revision="systemd"><userinput>mkdir build &&
|
---|
| 123 | cd build &&
|
---|
| 124 |
|
---|
[20f070d8] | 125 | meson --prefix=/usr \
|
---|
| 126 | --buildtype=release \
|
---|
| 127 | -Dadmin_group=adm \
|
---|
| 128 | -Dsystemd=true \
|
---|
| 129 | .. &&
|
---|
[a20845e7] | 130 | ninja</userinput></screen>
|
---|
[eba70158] | 131 |
|
---|
| 132 | <para>
|
---|
| 133 | This package does not come with a test suite.
|
---|
| 134 | </para>
|
---|
| 135 |
|
---|
| 136 | <para>
|
---|
| 137 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 138 | </para>
|
---|
| 139 |
|
---|
[a20845e7] | 140 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[eba70158] | 141 |
|
---|
| 142 | </sect2>
|
---|
| 143 |
|
---|
| 144 | <sect2 role="commands">
|
---|
| 145 | <title>Command Explanations</title>
|
---|
| 146 |
|
---|
[20f070d8] | 147 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 148 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
| 149 |
|
---|
[eba70158] | 150 | <para>
|
---|
[a20845e7] | 151 | <parameter>-Dadmin_group=adm</parameter>: This switch sets
|
---|
[eba70158] | 152 | the group for administrator accounts.
|
---|
| 153 | </para>
|
---|
| 154 |
|
---|
[9a363500] | 155 | <para>
|
---|
[a20845e7] | 156 | <option>-Ddocbook=true</option>: This switch enables building
|
---|
[9a363500] | 157 | the D-Bus interface API documentation.
|
---|
| 158 | </para>
|
---|
[20f070d8] | 159 |
|
---|
[a20845e7] | 160 | <!--
|
---|
[eba70158] | 161 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 162 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 163 |
|
---|
| 164 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 165 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
[a20845e7] | 166 | -->
|
---|
[eba70158] | 167 | </sect2>
|
---|
| 168 |
|
---|
| 169 | <sect2 role="configuration">
|
---|
| 170 | <title>Configuring AccountsService</title>
|
---|
| 171 |
|
---|
[4045ec3d] | 172 | <para>
|
---|
| 173 | To allow users in the adm group to be listed as Administrators,
|
---|
| 174 | execute the following commands as the
|
---|
| 175 | <systemitem class="username">root</systemitem> user:
|
---|
| 176 | </para>
|
---|
| 177 |
|
---|
| 178 | <screen role="root"><userinput>cat > /etc/polkit-1/rules.d/40-adm.rules << "EOF"
|
---|
| 179 | <literal>polkit.addAdminRule(function(action, subject) {
|
---|
| 180 | return ["unix-group:adm"];
|
---|
| 181 | });</literal>
|
---|
| 182 | EOF</userinput></screen>
|
---|
| 183 |
|
---|
[0c77adcb] | 184 | <sect3 id="accountsservice-init" revision="systemd">
|
---|
| 185 | <!-- <title><phrase revision="sysv">Boot Script</phrase>
|
---|
| 186 | <phrase revision="systemd">Systemd Units</phrase></title> -->
|
---|
| 187 | <title>Systemd Unit</title>
|
---|
| 188 | <!-- Autmatically started by D-Bus when needed
|
---|
[51dfb3e] | 189 | <para revision="sysv">
|
---|
[eba70158] | 190 | To start the <command>accounts-daemon</command> daemon at boot,
|
---|
[51dfb3e] | 191 | install the
|
---|
| 192 | <filename>/etc/rc.d/init.d/accounts-daemon</filename> init script from
|
---|
| 193 | the <xref linkend="bootscripts"/> package
|
---|
| 194 | by running the following command as the
|
---|
| 195 | <systemitem class="username">root</systemitem> user:
|
---|
| 196 | </para>
|
---|
[0c77adcb] | 197 | -->
|
---|
[51dfb3e] | 198 | <para revision="systemd">
|
---|
| 199 | To start the <command>accounts-daemon</command> daemon at boot,
|
---|
| 200 | enable the previously installed systemd unit
|
---|
| 201 | by running the following command as the
|
---|
[eba70158] | 202 | <systemitem class="username">root</systemitem> user:
|
---|
| 203 | </para>
|
---|
| 204 |
|
---|
| 205 | <indexterm zone="accountsservice accountsservice-init">
|
---|
| 206 | <primary sortas="f-accounts-daemon">accounts-daemon</primary>
|
---|
| 207 | </indexterm>
|
---|
| 208 |
|
---|
[51dfb3e] | 209 | <screen role="root" revision="sysv"><userinput>make install-accounts-daemon</userinput></screen>
|
---|
| 210 |
|
---|
| 211 | <screen role="root" revision="systemd"><userinput>systemctl enable accounts-daemon</userinput></screen>
|
---|
[eba70158] | 212 |
|
---|
| 213 | </sect3>
|
---|
| 214 |
|
---|
| 215 | </sect2>
|
---|
| 216 |
|
---|
| 217 | <sect2 role="content">
|
---|
| 218 | <title>Contents</title>
|
---|
| 219 |
|
---|
| 220 | <segmentedlist>
|
---|
| 221 | <segtitle>Installed Programs</segtitle>
|
---|
| 222 | <segtitle>Installed Libraries</segtitle>
|
---|
| 223 | <segtitle>Installed Directories</segtitle>
|
---|
| 224 |
|
---|
| 225 | <seglistitem>
|
---|
| 226 | <seg>
|
---|
[9a363500] | 227 | accounts-daemon (library executable)
|
---|
[eba70158] | 228 | </seg>
|
---|
| 229 | <seg>
|
---|
| 230 | libaccountsservice.so
|
---|
| 231 | </seg>
|
---|
| 232 | <seg>
|
---|
| 233 | /usr/include/accountsservice-1.0,
|
---|
[9a363500] | 234 | /usr/share/doc/accountsservice,
|
---|
[eba70158] | 235 | /usr/share/gtk-doc/html/libaccountsservice, and
|
---|
| 236 | /var/lib/AccountsService
|
---|
| 237 | </seg>
|
---|
| 238 | </seglistitem>
|
---|
| 239 | </segmentedlist>
|
---|
| 240 |
|
---|
| 241 | <variablelist>
|
---|
| 242 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 243 | <?dbfo list-presentation="list"?>
|
---|
| 244 | <?dbhtml list-presentation="table"?>
|
---|
| 245 |
|
---|
| 246 | <varlistentry id="accounts-daemon">
|
---|
| 247 | <term><command>accounts-daemon</command></term>
|
---|
| 248 | <listitem>
|
---|
| 249 | <para>
|
---|
[4c24eb0a] | 250 | is the <application>AccountsService</application> daemon
|
---|
[eba70158] | 251 | </para>
|
---|
| 252 | <indexterm zone="accountsservice accounts-daemon">
|
---|
| 253 | <primary sortas="b-accounts-daemon">accounts-daemon</primary>
|
---|
| 254 | </indexterm>
|
---|
| 255 | </listitem>
|
---|
| 256 | </varlistentry>
|
---|
| 257 |
|
---|
| 258 | <varlistentry id="libaccountsservice">
|
---|
| 259 | <term><filename class="libraryfile">libaccountsservice.so</filename></term>
|
---|
| 260 | <listitem>
|
---|
| 261 | <para>
|
---|
[4c24eb0a] | 262 | contains the <application>AccountsService</application> API functions
|
---|
[eba70158] | 263 | </para>
|
---|
| 264 | <indexterm zone="accountsservice libaccountsservice">
|
---|
| 265 | <primary sortas="c-libaccountsservice">libaccountsservice.so</primary>
|
---|
| 266 | </indexterm>
|
---|
| 267 | </listitem>
|
---|
| 268 | </varlistentry>
|
---|
| 269 |
|
---|
| 270 | </variablelist>
|
---|
| 271 |
|
---|
| 272 | </sect2>
|
---|
| 273 |
|
---|
| 274 | </sect1>
|
---|