diff options
-rw-r--r-- | chapter06/systemd.xml | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/chapter06/systemd.xml b/chapter06/systemd.xml index 03b4e1858..0b976c161 100644 --- a/chapter06/systemd.xml +++ b/chapter06/systemd.xml @@ -198,15 +198,11 @@ rm -f /usr/bin/xsltproc</userinput></screen> <screen><userinput remap="adjust">systemd-machine-id-setup</userinput></screen> - <para>Create the <filename>/lib/systemd/systemd-user-sessions</filename> - script to allow unprivileged user logins without + <para>Stop systemd to create <filename>/run/nologin</filename> + to allow unprivileged user logins without <application>systemd-logind</application>:</para> -<screen><userinput remap="adjust">cat > /lib/systemd/systemd-user-sessions << "EOF" -#!/bin/bash -rm -f /run/nologin -EOF -chmod 755 /lib/systemd/systemd-user-sessions</userinput></screen> +<screen><userinput remap="adjust">rm -f /usr/lib/tmpfiles.d/systemd-nologin.conf</userinput></screen> </sect2> |