Sfoglia il codice sorgente

Do not allow to list folders over sftp the user has no access to

Johannes Zellner 8 anni fa
parent
commit
e1e854a3f0
1 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. 5 2
      proftpd.conf

+ 5 - 2
proftpd.conf

@@ -24,7 +24,7 @@ ListOptions                	"-l"
 
 DenyFilter			\*.*/
 
-# Use this to jail all users in their homes 
+# Use this to jail all users in their homes
 # DefaultRoot			~
 
 # Users require a valid shell listed in /etc/shells to login.
@@ -65,7 +65,7 @@ Ratios off
 
 # Delay engine reduces impact of the so-called Timing Attack described in
 # http://www.securityfocus.com/bid/11430/discuss
-# It is on by default. 
+# It is on by default.
 <IfModule mod_delay.c>
 DelayEngine on
 </IfModule>
@@ -121,3 +121,6 @@ SFTPCompression delayed
 RequireValidShell off
 </IfModule>
 
+<Directory />
+  HideNoAccess yes
+</Directory>