Skip to content

Commit b1d66d2

Browse files
committed
alpine: sshd: enable PAM
So as to load `/etc/environment` via `pam_env`. This has been already applied to alpine-lima ISO via `genapkovl-lima.sh`. https://github.com/lima-vm/alpine-lima/blob/v0.2.39/genapkovl-lima.sh#L95 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
1 parent 7ab02dc commit b1d66d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/cidata/cidata.TEMPLATE.d/boot/10-alpine-prep.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ usermod -p '*' "${LIMA_CIDATA_USER}"
2929

3030
# Alpine disables TCP forwarding, which is needed by the lima-guestagent
3131
sed -i 's/AllowTcpForwarding no/AllowTcpForwarding yes/g' /etc/ssh/sshd_config
32+
# Enable PAM so as to load /etc/environment via pam_env
33+
sed -i 's/#UsePAM no/UsePAM yes/g' /etc/ssh/sshd_config
3234
rc-service --ifstarted sshd reload
3335

3436
# mount /sys/fs/cgroup

0 commit comments

Comments
 (0)