Skip to content

Commit 3348625

Browse files
committed
Change home folder permission to root, thanks to @FalzoMAD!
1 parent c27b5e7 commit 3348625

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/v-add-user-sftp-jail

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ users+=($user)
5454
users=$(IFS=',';echo "${users[*]// /|}";IFS=$' \t\n')
5555
sed -i "s/$ssh_users/$users/g" /etc/ssh/sshd_config
5656

57+
# Set home folder permission to root
58+
chown root:root /home/$user
5759

5860
#----------------------------------------------------------#
5961
# Hestia #

0 commit comments

Comments
 (0)