Skip to content

Commit caa825a

Browse files
committed
Release 0.10.0 [WIP]
1 parent e7e740f commit caa825a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • emulation-system/base_images/docker_files/kali_base/docker

emulation-system/base_images/docker_files/kali_base/docker/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ RUN echo "alias ll='ls -al'" >> /root.bashrc &&\
4747
# Setup root SSH
4848
RUN mv /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
4949
ADD docker_files/common/sshd_config /etc/ssh/sshd_config
50+
# The rolling kali-last-release base ships OpenSSH >= 10, whose sshd delegates
51+
# password authentication to PAM and no longer verifies /etc/shadow directly.
52+
# The shared sshd_config sets "UsePAM no" (which is fine on the pinned Debian/Ubuntu
53+
# bases that still do their own shadow check), so csle_admin password logins would
54+
# be rejected here. Enable PAM so password authentication works on this base.
55+
RUN sed -i 's/^UsePAM no/UsePAM yes/' /etc/ssh/sshd_config
5056

5157
# Setup password-less sudo
5258
RUN mv /etc/sudoers /etc/sudoers.bak

0 commit comments

Comments
 (0)