LINUX.ORG.RU

HideFiles — Enable hiding of files based on regular expressions

http://www.proftpd.org/docs/directives/linked/config_ref_HideFiles.html

  # Hide configuration and passwd files from view
  HideFiles "(\\.conf|passwd)$"

  # ...or the same regex, without the quotes
  HideFiles (\.conf|passwd)$

  # Hide those same files from everyone _except_ a special user
  HideFiles (\.conf|passwd)$ user !tj

  # Using the ! prefix to "invert" the regular expression matching,
  # allow only .txt and .html files to be seen
  HideFiles !(\.txt|\.html)$

  # Only let users of the webmaster group see HTML files, but nothing else
  HideFiles !(\.htm|\.html)$ group webmaster

linuks ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.