Submitted by dajanvulaj on Tue, 03/07/2017 - 08:21
I am trying to hide a directory for a FTP user.
I've tried adding this to the end of proftpd.conf:
<Directory /home/username/public_html/*>
HideFiles (\admin)$
<Limit ALL>
IgnoreHidden On
</Limit>
</Directory>
I am trying to hide the folder called admin for some ftp users!
Status:
Active
Comments
Submitted by dajanvulaj on Tue, 03/07/2017 - 08:44 Comment #1
Submitted by andreychek on Tue, 03/07/2017 - 09:01 Comment #2
Howdy -- I've unfortunately not tried to configure ProFTPd to do that before, so I don't have much experience with how to go about that.
But two quick thoughts --
Just to verify, did you restart ProFTPd after making that change? That wouldn't be active without restarting.
And also, are you sure that you're connecting via FTP, and not SFTP? If you were connecting to SFTP on port 22, you wouldn't see that change either.
Submitted by dajanvulaj on Tue, 03/07/2017 - 09:13 Comment #3
Submitted by andreychek on Tue, 03/07/2017 - 09:50 Comment #4
SFTP would be going through SSH on port 22, rather than FTP on port 21.
If you connect via FTP on port 21, does it work as expected at that point?