Skip to content

Commit 29cd657

Browse files
committed
Skip syslog user for sftp jail.
1 parent cd336bb commit 29cd657

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bin/v-add-user-sftp-jail

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ if [ -z "$user_str" ]; then
2828
exit
2929
fi
3030

31+
# Do not create chroot for syslog user
32+
if [ $user = "syslog" ]; then
33+
exit
34+
fi
35+
36+
3137
#----------------------------------------------------------#
3238
# Action #
3339
#----------------------------------------------------------#

0 commit comments

Comments
 (0)