jail to correct dir
This commit is contained in:
parent
c382a06b50
commit
b4813fb1de
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user