From 4a18f0bdd6e017254187f0ade11e58b8f1faeff0 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Mon, 13 May 2019 15:08:16 +0000 Subject: Remove a file to allow user login without systemd-logind git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11604 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/systemd.xml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'chapter06') 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 systemd-machine-id-setup - Create the /lib/systemd/systemd-user-sessions - script to allow unprivileged user logins without + Stop systemd to create /run/nologin + to allow unprivileged user logins without systemd-logind: -cat > /lib/systemd/systemd-user-sessions << "EOF" -#!/bin/bash -rm -f /run/nologin -EOF -chmod 755 /lib/systemd/systemd-user-sessions +rm -f /usr/lib/tmpfiles.d/systemd-nologin.conf -- cgit v1.2.3-54-g00ecf