fix ssh shadow

This commit is contained in:
Tobias Powalowski 2023-11-08 16:53:10 +01:00
parent 4a73c8c395
commit 587fc6e47e
2 changed files with 4 additions and 2 deletions

View file

@ -166,7 +166,8 @@ inputrc,mke2fs.conf,nsswitch.conf,protocols,request-key.conf,securetty,services}
# add root user with empty password
echo "root::0:root" > "${_ROOTFS}/etc/group"
echo "root::0:0:Super User:/root:/bin/bash" > "${_ROOTFS}/etc/passwd"
echo "root::0::::::" > "${_ROOTFS}/etc/shadow"
# create a shadow file and use 1 to keep ssh happy :)
echo "root::1::::::" > "${_ROOTFS}/etc/shadow"
### add pacman
_map _binary pacman pacman-conf pacman-key pacman-db-upgrade makepkg \
repo-add repo-elephant testpkg vercmp curl gpg-agent gpg \

View file

@ -64,7 +64,8 @@ _run ()
echo "alias poweroff='echo o >/proc/sysrq-trigger'" >> "${_ROOTFS}/root/.bashrc"
echo "root::0:root" > "${_ROOTFS}/etc/group"
echo "root::0:0:Super User:/root:/bin/bash" > "${_ROOTFS}/etc/passwd"
echo "root::0::::::" > "${_ROOTFS}/etc/shadow"
# use 1 to keep ssh happy :)
echo "root::1::::::" > "${_ROOTFS}/etc/shadow"
_file_rename /usr/share/archboot/base/etc/profile.d/custom-bash-options.sh \
/etc/profile.d/custom-bash-options.sh
_file /usr/lib/archboot/cpio/init.sh