2019-08-26 13:36:10 +03:00
<?xml version='1.0'?> <!-- * - nxml - * -->
< !DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
2023-12-25 17:48:33 +03:00
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
2020-11-09 07:23:58 +03:00
<!-- SPDX - License - Identifier: LGPL - 2.1 - or - later -->
2019-08-26 13:36:10 +03:00
2023-08-22 19:52:02 +03:00
<refentry id= "systemd-homed.service" conditional= 'ENABLE_HOMED'
xmlns:xi="http://www.w3.org/2001/XInclude">
2019-08-26 13:36:10 +03:00
<refentryinfo >
<title > systemd-homed.service</title>
<productname > systemd</productname>
</refentryinfo>
<refmeta >
<refentrytitle > systemd-homed.service</refentrytitle>
<manvolnum > 8</manvolnum>
</refmeta>
<refnamediv >
<refname > systemd-homed.service</refname>
<refname > systemd-homed</refname>
2020-03-11 15:07:10 +03:00
<refpurpose > Home Area/User Account Manager</refpurpose>
2019-08-26 13:36:10 +03:00
</refnamediv>
<refsynopsisdiv >
<para > <filename > systemd-homed.service</filename> </para>
<para > <filename > /usr/lib/systemd/systemd-homed</filename> </para>
</refsynopsisdiv>
<refsect1 >
<title > Description</title>
<para > <command > systemd-homed</command> is a system service that may be used to create, remove, change or
2020-03-11 15:07:10 +03:00
inspect home areas (directories and network mounts and real or loopback block devices with a filesystem,
optionally encrypted).</para>
2019-08-26 13:36:10 +03:00
<para > Most of <command > systemd-homed</command> 's functionality is accessible through the
<citerefentry > <refentrytitle > homectl</refentrytitle> <manvolnum > 1</manvolnum> </citerefentry> command.</para>
<para > See the <ulink url= "https://systemd.io/HOME_DIRECTORY" > Home Directories</ulink> documentation for
2020-03-11 15:07:10 +03:00
details about the format and design of home areas managed by
2019-08-26 13:36:10 +03:00
<filename > systemd-homed.service</filename> .</para>
<para > Each home directory managed by <filename > systemd-homed.service</filename> synthesizes a local user
and group. These are made available to the system using the <ulink
url="https://systemd.io/USER_GROUP_API">User/Group Record Lookup API via Varlink</ulink> , and thus may be
browsed with
<citerefentry > <refentrytitle > userdbctl</refentrytitle> <manvolnum > 1</manvolnum> </citerefentry> .</para>
</refsect1>
2020-05-05 20:33:27 +03:00
<refsect1 >
<title > Key Management</title>
<para > User records are cryptographically signed with a public/private key pair (the signature is part of
the JSON record itself). For a user to be permitted to log in locally the public key matching the
signature of their user record must be installed. For a user record to be modified locally the private
key matching the signature must be installed locally, too. The keys are stored in the
<filename > /var/lib/systemd/home/</filename> directory:</para>
<variablelist >
<varlistentry >
<term > <filename > /var/lib/systemd/home/local.private</filename> </term>
<listitem > <para > The private key of the public/private key pair used for local records. Currently,
2023-08-22 19:52:36 +03:00
only a single such key may be installed.</para>
<xi:include href= "version-info.xml" xpointer= "v246" /> </listitem>
2020-05-05 20:33:27 +03:00
</varlistentry>
<varlistentry >
<term > <filename > /var/lib/systemd/home/local.public</filename> </term>
<listitem > <para > The public key of the public/private key pair used for local records. Currently,
2023-08-22 19:52:36 +03:00
only a single such key may be installed.</para>
<xi:include href= "version-info.xml" xpointer= "v246" /> </listitem>
2020-05-05 20:33:27 +03:00
</varlistentry>
<varlistentry >
<term > <filename > /var/lib/systemd/home/*.public</filename> </term>
<listitem > <para > Additional public keys. Any users whose user records are signed with any of these keys
are permitted to log in locally. An arbitrary number of keys may be installed this
2023-08-22 19:52:36 +03:00
way.</para>
<xi:include href= "version-info.xml" xpointer= "v246" /> </listitem>
2020-05-05 20:33:27 +03:00
</varlistentry>
</variablelist>
<para > All key files listed above are in PEM format.</para>
<para > In order to migrate a home directory from a host <literal > foobar</literal> to another host
<literal > quux</literal> it is hence sufficient to copy
<filename > /var/lib/systemd/home/local.public</filename> from the host <literal > foobar</literal> to
2020-09-29 11:04:12 +03:00
<literal > quux</literal> , maybe calling the file on the destination <filename
index="false">/var/lib/systemd/home/foobar.public</filename> , reflecting the origin of the key. If the
user record should be modifiable on <literal > quux</literal> the pair
2020-05-05 20:33:27 +03:00
<filename > /var/lib/systemd/home/local.public</filename> and
<filename > /var/lib/systemd/home/local.private</filename> need to be copied from <literal > foobar</literal>
to <literal > quux</literal> , and placed under the identical paths there, as currently only a single
private key is supported per host. Note of course that the latter means that user records
generated/signed before the key pair is copied in, lose their validity.</para>
</refsect1>
2019-08-26 13:36:10 +03:00
<refsect1 >
<title > See Also</title>
2023-12-22 21:09:32 +03:00
<para > <simplelist type= "inline" >
<member > <citerefentry > <refentrytitle > systemd</refentrytitle> <manvolnum > 1</manvolnum> </citerefentry> </member>
<member > <citerefentry > <refentrytitle > homed.conf</refentrytitle> <manvolnum > 5</manvolnum> </citerefentry> </member>
<member > <citerefentry > <refentrytitle > homectl</refentrytitle> <manvolnum > 1</manvolnum> </citerefentry> </member>
<member > <citerefentry > <refentrytitle > pam_systemd_home</refentrytitle> <manvolnum > 8</manvolnum> </citerefentry> </member>
<member > <citerefentry > <refentrytitle > userdbctl</refentrytitle> <manvolnum > 1</manvolnum> </citerefentry> </member>
<member > <citerefentry > <refentrytitle > org.freedesktop.home1</refentrytitle> <manvolnum > 5</manvolnum> </citerefentry> </member>
</simplelist> </para>
2019-08-26 13:36:10 +03:00
</refsect1>
</refentry>