|
@@ -199,14 +199,11 @@ rm -f /usr/bin/xsltproc</userinput></screen>
|
|
|
|
|
|
<screen><userinput remap="adjust">systemd-machine-id-setup</userinput></screen>
|
|
|
|
|
|
- <para>创建 <filename>/lib/systemd/systemd-user-sessions</filename>
|
|
|
- 脚本,使得非特权用户在没有 systemd-logind 的情况下也能登录:</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>
|
|
|
+ <para>阻止 systemd 创建 <filename>/run/nologin</filename>,
|
|
|
+ 以允许非特权用户在没有
|
|
|
+ <application>systemd-logind</application>的情况下登录:</para>
|
|
|
+
|
|
|
+<screen><userinput remap="adjust">rm -f /usr/lib/tmpfiles.d/systemd-nologin.conf</userinput></screen>
|
|
|
|
|
|
</sect2>
|
|
|
|