From d9e62ab9369bb5abcdfd0913a4b995efc3eb9a2d Mon Sep 17 00:00:00 2001 From: jstodola Date: Thu, 21 May 2020 22:05:59 +0200 Subject: [PATCH] Keep /etc/default/useradd in install.img Anaconda creates a user for connecting via ssh during the installation when the sshpw kickstart command is used. The user is created with "/sbin/nologin" shell when /etc/default/useradd is missing, which prevents the user from log into the running installation. Resolves: rhbz#1838677 Signed-off-by: Brian C. Lane --- share/templates.d/99-generic/runtime-cleanup.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/templates.d/99-generic/runtime-cleanup.tmpl b/share/templates.d/99-generic/runtime-cleanup.tmpl index 6234d5e2..39283176 100644 --- a/share/templates.d/99-generic/runtime-cleanup.tmpl +++ b/share/templates.d/99-generic/runtime-cleanup.tmpl @@ -35,7 +35,8 @@ removepkg fedora-release-rawhide ## keep enough of shadow-utils to create accounts removefrom shadow-utils --allbut /usr/bin/chage /usr/sbin/chpasswd \ - /usr/sbin/groupadd /usr/sbin/useradd + /usr/sbin/groupadd /usr/sbin/useradd \ + /etc/default/useradd ## remove other account management tools removepkg usermode usermode-gtk passwd