-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsystemd-as-regular-user.xml
39 lines (39 loc) · 1.59 KB
/
systemd-as-regular-user.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic
[
<!ENTITY % entities SYSTEM "../common/generic-entities.ent">
%entities;
]>
<topic xml:id="systemd-as-a-regular-user"
role="concept" xml:lang="en"
xmlns="http://docbook.org/ns/docbook" version="5.2"
xmlns:its="http://www.w3.org/2005/11/its"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:trans="http://docbook.org/ns/transclusion">
<info>
<title>Using &systemd; as a regular user</title>
<meta name="maintainer" content="[email protected]" its:translate="no"/>
<abstract><para> You can use &systemd; as a regular user for better security or when you do not have &rootuser; user privileges. Running an unprivileged service can be done by creating a <literal>user</literal>
service.</para></abstract>
</info>
<para>When creating and using a user service, consider the following: </para>
<itemizedlist>
<listitem>
<para>
User service sessions are terminated when the user's session ends. This can be overridden by using
the <command>loginctl enable-linger <replaceable>USERNAME</replaceable></command> command.
</para>
</listitem>
<listitem>
<para>
User service files are located in <filename>/etc/systemd/user</filename> or <filename>$HOME/.config/systemd/user/</filename>.
</para>
</listitem>
<listitem>
<para>
You can control user services with the <command>systemctl --user</command> command.
</para>
</listitem>
</itemizedlist>
</topic>