jail to correct dir

This commit is contained in:
Oliver 2023-12-14 09:15:12 +00:00
parent c382a06b50
commit b4813fb1de

View File

@ -15,7 +15,7 @@ if ! id "$USER" 2&>/dev/null; then
fi
CHROOT=$(eval echo ~$USER)
printf "Match User $USER\n ChrootDirectory $CHROOT$CHROOT" > /etc/ssh/sshd_config.d/70-$USER.conf
printf "Match User $USER\n ChrootDirectory $CHROOT" > /etc/ssh/sshd_config.d/70-$USER.conf
# cp in all commands and dependencies
for cmd in "${CMDS[@]}"; do