Submitted by izoox on Fri, 11/20/2009 - 12:27
How can I get ftp to not show hidden files. I have tried numerous ways of getting proftp to hide the files by default.
And also, when I create a website ftp user, and put their home in a subfolder of the web root, it seems to still be creating a Maildir folder. Is there any way to remedy that? Since they will only used for ftp.
Status:
Closed (fixed)
Comments
Submitted by andreychek on Fri, 11/20/2009 - 12:33 Comment #1
Howdy -- for hidden files, you may want to look at the IgnoreHidden directive:
http://www.proftpd.org/docs/directives/linked/config_ref_IgnoreHidden.html
As far as it creating the Maildir directory... I'm not quite sure, maybe Jamie has a thought on that :-)
Submitted by izoox on Fri, 11/20/2009 - 12:39 Comment #2
I tried using the IgnoreHidden directory. Maybe I can't figure out where this directive is supposed to go... I had actually visited that site. I tried in the main config, in the directory directive... sadly it still showed the hidden files.
Submitted by andreychek on Fri, 11/20/2009 - 13:03 Comment #3
I haven't tried this before, so this is a bit of an experiment... but what happens if you add this to the very bottom of your proftpd.conf file:
<Limit READ DIRS>
IgnoreHidden on
</Limit>
Submitted by izoox on Fri, 11/20/2009 - 13:10 Comment #4
It definitely still shows hidden files. It is really weird.
Submitted by andreychek on Fri, 11/20/2009 - 13:12 Comment #5
Okay... silly question, but you are restarting ProFTPd after making those changes?
Submitted by izoox on Fri, 11/20/2009 - 14:25 Comment #6
I hit apply, do I have to stop and restart?
Submitted by izoox on Fri, 11/20/2009 - 14:26 Comment #7
I just stopped it and started it again, and no go.
Submitted by izoox on Fri, 11/20/2009 - 14:29 Comment #8
Maybe I should explain more. I don't want it to show .ftpaccess files. Is there a way to get it to just not show those, because I want users to be able to modify .htaccess files.
Submitted by izoox on Fri, 11/20/2009 - 17:28 Comment #9
I tried HideFiles (.ftpaccess)$ in conjunction with IgnoreHidden on, and still no luck. I even tried the HideNoAccess and restricted access to the files to no avail. This is baffling, it doesn't seem like it should be this hard.
Submitted by izoox on Wed, 12/09/2009 - 17:55 Comment #10
I still don't have an answer for this. But the client did stop complaining, as I told them to just not touch the .ftpaccess files. However, it would be nice to figure it out.
Submitted by izoox on Sun, 01/17/2010 - 17:04 Comment #11