Browse Source

Skip syslog user for sftp jail.

Raphael Schneeberger 7 years ago
parent
commit
29cd6575b9
1 changed files with 6 additions and 0 deletions
  1. 6 0
      bin/v-add-user-sftp-jail

+ 6 - 0
bin/v-add-user-sftp-jail

@@ -28,6 +28,12 @@ if [ -z "$user_str" ]; then
     exit
 fi
 
+# Do not create chroot for syslog user
+if [ $user = "syslog" ]; then
+    exit
+fi
+
+
 #----------------------------------------------------------#
 #                       Action                             #
 #----------------------------------------------------------#