Proftpd開頭的文件如何隱藏
作者:佚名
Proftpd開頭的文件如何隱藏?ProFTPD是個Unix平臺上或是類Unix平臺上(如Linux, FreeBSD...)的FTP服務器程序。它是在自由軟件基金會的版權聲明(GPL)之下開發(fā) 發(fā)布的免費軟件。也可以說,只要任何人遵守GPL版權的聲明,全都可以隨意修改源始碼。本文講述的是Proftpd開頭的文件如何隱藏。
Proftpd開頭的文件如何隱藏?ProFTPD是個Unix平臺上或是類Unix平臺上(如Linux, FreeBSD...)的FTP服務器程序。它是在自由軟件基金會的版權聲明(GPL)之下開發(fā) 發(fā)布的免費軟件。也可以說,只要任何人遵守GPL版權的聲明,全都可以隨意修改源始碼。本文講述的是Proftpd開頭的文件如何隱藏。
使用HideFiles參數(shù)進行配制就可以了。
- HideFiles
- Name
- HideFiles -- Enable hiding of files based on regular expressions
- Synopsis
- HideFiles [ [!]regexp|"none" ["user"|"group"|"class" expression]]
- DefaultNone
- Context, .ftpaccess
- Modulemod_core
- Compatibility1.2.7rc1 and later
- Description
例如:
- # 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 webmasterSee Also: HideGroup, HideUser, HideNoAccess
另外,打開/etc/proftpd.conf進行編輯,在里面加入:
ListOptions "." strict
【編輯推薦】
責任編輯:zhaolei
來源:
CSDN網(wǎng)