Skip to content

Commit

Permalink
Keep /etc/default/useradd in install.img
Browse files Browse the repository at this point in the history
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 <bcl@redhat.com>
  • Loading branch information
jstodola authored and bcl committed May 22, 2020
1 parent ae2c805 commit d9e62ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion share/templates.d/99-generic/runtime-cleanup.tmpl
Expand Up @@ -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
Expand Down

0 comments on commit d9e62ab

Please sign in to comment.