`

proftpd如何隐藏.开头的文件(Linux中.开头的文件是隐藏文件)

阅读更多

 使用HideFiles参数进行配制就可以了。

看到有人说这样用:

HideFiles (.*)

似乎不太符合正则表达式的写法,

我感觉应该写成这个样子:HideFiles ^(\.)

没有验证行不行。回去试试。

还要配合使用HideNoAccess、IgnoreHide

 

不过我试了半天也没有试验成功。郁闷。

HideFiles

Name

HideFiles -- Enable hiding of files based on regular expressions

Synopsis

HideFiles [ [!]regexp|"none" ["user"|"group"|"class" expression] ]

 

Default

None

Context

<Directory>, .ftpaccess

Module

mod_core

Compatibility

1.2.7rc1 and later

Description

The HideFiles directive configures a <Directory> 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 <Limit>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 <Limit> section, with IgnoreHidden enabled, does the actual hiding of the files from the <Limit>ed commands.

As <Directory> 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

分享到:
评论

相关推荐

    proftpd1.3.2.tar.bz2

    proftpd1.3.2.tar.bz2 proftpd1.3.2.tar.bz2 用于linux下建立ftp服务

    proftpd.tar.gz

    proftpd服务工具,解压后进入proftpd目录,运行 sh init.sh 脚本,输入登陆FTP的密码(用户名为当前登陆的用户名,不能使用root用户)确认默认的8021端口是否被占用,如果占用,修改 etc/proftpd.conf配置里的端口号,...

    proftpd安装.rar

    centos7.9安装编proftpd,带配置文件,添加虚拟用户,配置用户目录权限

    proftpd-1.3.7a.tar.gz

    proftpd-1.3.7a.tar.gz安装包 。ftp服务器端程序。配置相比,vsftpd简单。 可用于linux下。

    proftpd-1.2.10rc1.tar.gz

    proftpd-1.2.10rc1.tar.gz proftpd-1.2.10rc1.tar.gz proftpd-1.2.10rc1.tar.gz

    proftpd-1.3.0.tar.gz

    red hat enterprise linux4 ftp软件

    proftpd-1.3.3.tar.gz

    ubuntu ftp server 用于在UBUNTU 系统下搭建FTP服务,很好用!注意只能用地linux系统。

    proftpd 1.3.2 for linux

    proftpd 1.3.2 for linux complie ./configure make make install

    ProFTPD v1.3.4rc2.zip

    ProFTPD是一个Unix平台上或是类Unix平台上(如Linux, FreeBSD等)的FTP服务器程序,它是在自由软件基金会的版权声明(GPL)下开发、发布的免费软件,也就是说任何人只要遵守GPL版权声明,都可以随意修改源始码。...

    Linux系统proftpd配置

    提供Linux系统下proftp安装,配置。

    proftpd LINUX-FTP服务包

    架设LINUX-FTP服务的压缩包proftpd,具体安装方式网上有

    AIX_5L下proftpd安装配置

    AIX_5L下proftpd安装配置手册

    proftpd-1.2.10-1.fc1.i386.rpm

    proftpd-1.2.10-1.fc1.i386.rpm ftp

    proftpd-1.3.7b.tar.gz

    FTP工具

    proftpd安装和配置,2分钟搞定

    压缩包,包含配置文件和安装文件(proftpd-1.3.4b.tar.gz) 不需要太多的修改,就可以完成ftp的配置。 实现:指定用户访问一个特定的目录,不允许匿名登录

    Linux下配置FTP服务(Proftpd)

    实现以下功能 1.配置FTP服务器,能够实现要求的功能; a.限制用户上传的速率为30K/s; b.... c....d.ftp用户只能上传,不能下载,不能删除,不能改名字。...e.teacher用户具有各种功能(下载,上传,删除,改名等);

    linux下用Proftpd搭建ftp服务器及配置方法

    首先proftpd是一个开源软件,其官方地址是http://www.proftpd.org,目前最高版本是:1.3.1(非稳定版),稳定的版本是1.3.0,下载文件为proftpd-1.3.0a.tar.gz 我下载的是1.3.0,上传到服务器上后按照常规的方法安装...

    proftpd:ProFTPD源代码

    ftp://ftp.proftpd.org/distrib/source/ 有关此版本中更改的概述,请参见RELEASE_NOTES 。 主要特点 一个单一的主配置文件,其指令和指令组的样式与Apache Web服务器的相同。 每个目录的“ .ft

    proftpd1.2 linux下的ftp服务器软件(红帽子rpm)

    proftpd1.2 linux下的ftp服务器软件,安装后可以用作ftp服务器使用,此服务器较为流行,安全性好,配置和apache的配置类似,只要更改相应的配置文件就可以进行配置

    fedora15x64安装proftpd.pdf

    对fedora下安装proftpd进行了比较详细的说明

Global site tag (gtag.js) - Google Analytics