Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have used vsftpd to create ftp server.I am using ubuntu 12.04 desktop version.I have issue with hidden file, When I access server through FTP client its shows all the directory including hidden directory of system started with "." I have used option force_dot_files=NO in vsftpd config file but its still listing all the directories. Please guide me.

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

Put

hide_file={.*}

in /etc/vsftpd.conf.

From the manual:

hide_file

This option can be used to set a pattern for filenames (and directory names etc.) which should be hidden from directory listings. Despite being hidden, the files / directories etc. are fully accessible to clients who know what names to actually use. Items will be hidden if their names contain the string given by hide_file, or if they match the regular expression specified by hide_file. Note that vsftpd's regular expression matching code is a simple implementation which is a subset of full regular expression functionality. See deny_file for details of exactly what regex syntax is supported.

Example: hide_file={.mp3,.hidden,hide,h?}
Default: (none)

This will only hide the file. You can still see it or use it or edit it if you know it is there. Have a look at deny_file for that.

share|improve this answer
    
Thanks Rinzwind...its working... –  Nitin Jul 18 '12 at 14:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.