linux以什么开头的文件是隐藏文件,proftpd如何隐藏.开头的文件(Linux中.开头的文件是隐藏文件)...

Description

The HideFiles directive configures a section to hide all directory entries, e.g. its files and sub-directories, that match the given regular expression. These files can still be operated on by other FTP commands (DELE, RETR, etc), as constrained by any applicable s, but this can be modified using the IgnoreHidden directive. Note that this directive manipulates a file's "hidden-ness", but doesn't do any hiding by itself. A section, with IgnoreHidden enabled, does the actual hiding of the files from the ed commands.

As configurations are inherited by sub-directories, the "none" parameter can be used to disable any inherited file hiding within a sub-directory, usually through the use of a .ftpaccess file.

The optional parameters are used to restrict the rule for hiding files only to specific users. If "user" restriction is given, then expression is a user-expression specifying to which users the rule applies. Similarly for the "group" restriction. For the "class" restriction, the expression is simply the name of connection class for whom the rule will apply.

An unrestricted HideFiles directive and an unrestriected ShowFiles directive cannot be used simultaneously in the same context.

Examples:

# 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

See Also: HideGroup, HideUser, HideNoAccess

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值