vsftpd – FTP users cannot see hidden files (.htaccess/.htpasswd), display or hide them
Sometimes, after setting up a new development server, we tend to skip some parts of the set-up process, which in the end can lead to a big amount of wasted time and nerves. If you have set-up vsftpd as your FTP server and can not see the hidden files (so-called “dot-files”) and hidden folders when you log-in through FTP to your server, minor adjustment is needed in
The usual location of that file is either
After you log-in to your server through SSH, in root mode enter:
Add (or modify if already present) this line: [shell]force_dot_files=YES[/shell] Then restart the vsftpd server by entering:
service vsftpd restart
Now reconnect to the server through your FTP program and you will be able to see, create and modify all hidden (“dot”) files. If you want to hide those files, just write:
in the previously modified config file.