mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
Jailed SFTP via OpenSSH
This commit is contained in:
parent
f451b8a99a
commit
93b2a8617a
8 changed files with 344 additions and 0 deletions
|
@ -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 #
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue