Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am generating user config files for vsftpd on Debian Linux. The config files are simple in nature, but I am running into one issue. Is there a way to escape a space in the file name(s) for the deny_file or hide_file configuration settings?

Example - can I escape the space in /Test folder*?

# Example config file excerpt
deny_file={/Folder1*,/Test folder*}
hide_file={Folder1,Test folder}
share|improve this question

I'm using this sub regular expression,

deny_file={* *}

Note: it's only applied on the last child of the path

Working example: /not_applied/not_applied/

share|improve this answer

Have you tried the standard linux syntax?

deny_file={/Folder1*,/Test\ folder*}
hide_file={Folder1,Test\ folder}
share|improve this answer
I have... It does not work. The folder is shown like it is not even denied/hidden. – Buggabill Nov 26 '13 at 19:56
Why must the folders have spaces? Would a folder symlink work? Eg: deny_file={/Folder1*,/TestFolder*} and have ln -s Test\ Folder TestFolder – kevinf Nov 26 '13 at 20:16
The folders have spaces in them, because they are coming from a Windows machine. – Buggabill Nov 26 '13 at 21:18

Since deny_file and hide_file have some regex control, you may try to replace the space with ? or .

You will have to test both options though:


and the other option:

share|improve this answer

Your Answer


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.