Jailed SFTP via OpenSSH

This commit is contained in:
Serghey Rodin 2015-09-18 17:42:48 +03:00
commit 93b2a8617a
8 changed files with 344 additions and 0 deletions

View file

@ -39,6 +39,11 @@ shell_path=$(grep -w "$shell" /etc/shells | head -n1)
/usr/bin/chsh -s "$shell_path" "$user" &>/dev/null
shell=$(basename $shell_path)
# Adding jailed sftp env
if [ ! -z "$SFTPJAIL_KEY" ]; then
$BIN/v-add-user-sftp-jail $user
fi
#----------------------------------------------------------#
# Vesta #