Ver Fonte

ftp users with nologin shell by default

Serghey Rodin há 9 anos atrás
pai
commit
1113e1f807
1 ficheiros alterados com 2 adições e 6 exclusões
  1. 2 6
      bin/v-add-web-domain-ftp

+ 2 - 6
bin/v-add-web-domain-ftp

@@ -51,12 +51,8 @@ is_password_valid
 get_domain_values 'web'
 
 # Defining ftp user shell
-if [ -z "$FTP_SHELL" ]; then
-    shell='/sbin/nologin'
-    if [ -e "/usr/bin/rssh" ]; then
-        shell='/usr/bin/rssh'
-    fi
-else
+shell='/sbin/nologin'
+if [ ! -z "$FTP_SHELL" ]; then
     shell=$FTP_SHELL
 fi