Author: xry111
Date: Mon May 13 08:08:16 2019
New Revision: 11604

Log:
Remove a file to allow user login without systemd-logind

Modified:
   trunk/BOOK/chapter06/systemd.xml

Modified: trunk/BOOK/chapter06/systemd.xml
==============================================================================
--- trunk/BOOK/chapter06/systemd.xml    Sat May 11 04:00:01 2019        (r11603)
+++ trunk/BOOK/chapter06/systemd.xml    Mon May 13 08:08:16 2019        (r11604)
@@ -198,15 +198,11 @@
 
 <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 &gt; /lib/systemd/systemd-user-sessions 
&lt;&lt; "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>
 
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to