ProFTPD module mod_ls



The mod_ls module handles the LIST, NLST, and STAT FTP commands.

Directives


DirFakeGroup

Syntax: DirFakeGroup off|on [display-name]
Default: None
Context: server config, <VirtualHost>, <Global>, <Anonymous>, <Directory>, .ftpaccess
Module: mod_ls
Compatibility: All versions

The DirFakeGroup directive can be used to hide the true group ownership of files (including directories, FIFOs, etc) in directory listings. If simply turned on, DirFakeGroup will display all files as being owned by group "ftp". Optionally, the display-name parameter can be used to specify a group other than "ftp". A display-name of "~" can be used as the parameter, in order to display the primary group name of the current user.

Both DirFakeGroup and DirFakeUser are completely cosmetic; the display-names configured do not need to exist on the system, and neither directive affects permissions, real ownership or access control in any way.


DirFakeMode

Syntax: DirFakeMode display-mode
Default: None
Context: server config, <VirtualHost>, <Global>, <Anonymous>, <Directory>, .ftpaccess
Module: mod_ls
Compatibility: All versions

The DirFakeMode directive configures the mode (or permissions) which will be displayed for all files and directories in directory listings. For each subset of permissions (i.e. user, group, other), the "execute" permission for directories is added in listings if the "read" permission is specified by this directive.

As with DirFakeUser, and DirFakeGroup, the "fake" permissions shown in directory listings are cosmetic only; they do not affect real permissions or access control in any way on the server. Note, however, that DirFakeMode can affect the real permissions, for example, for FTP mirroring tools. Such tools tend to create a mirror from what the tool sees (e.g. DirFakeMode permissions) on the source FTP server.

Examples:

  # Display everything as read-only
  DirFakeMode 0444


DirFakeUser

Syntax: DirFakeUser off|on [display-name]
Default: None
Context: server config, <VirtualHost>, <Global>, <Anonymous>, <Directory>, .ftpaccess
Module: mod_ls
Compatibility: All versions

The DirFakeUser directive can be used to hide the true user ownership of files (including directories, FIFOs, etc) in directory listings. If simply turned on, DirFakeUser will display all files as being owned by user "ftp". Optionally, the display-name parameter can be used to specify a user other than "ftp". A display-name parameter of "~" can be used in order to display the name of the current user.

Both DirFakeGroup and DirFakeUser are completely cosmetic; the display-names specified do not need to exist on the system, and neither directive affects permissions, real ownership or access control in any way.


ListOptions

Syntax: ListOptions options [strict [maxdepth depth] [maxfiles count] [maxdirs count] [LISTOnly] [NLSTOnly] [NoErrorIfAbsent] [NoAdjustedSymlinks] [SortedNLST]
Default: None
Context: server config, <VirtualHost>, <Global>, <Anonymous>, <Directory>, .ftpaccess
Module: mod_ls
Compatibility: 1.2.8rc1 and later

The ListOptions directive is used to configure various optional behavior of mod_ls. Note: all of the configured ListOptions parameters must appear on the same line in the configuration; only the first ListOptions directive that appears in the configuration is used.

The currently supported flags are:

See also: ListOptions


ShowSymlinks

Syntax: ShowSymlinks on|off
Default: ShowSymlinks on
Context: server config, <VirtualHost>, <Global>, <Anonymous>
Module: mod_ls
Compatibility: All versions

The ShowSymlinks directive configures whether symbolic links are displayed as such in directory listings, or whether they are not displayed to the client. If ShowSymlinks is off, then the linked file's permissions and ownership are used in the directory listing.


UseGlobbing

Syntax: UseGlobbing on|off
Default: UseGlobbing on
Context: server config, <VirtualHost>, <Global>, <Anonymous>
Module: mod_ls
Compatibility: 1.2.5rc1 and later

The UseGlobbing directive controls the use of glob(3) functionality, which is needed for supporting wildcard characters such as "*" in directory listing requests from FTP clients.

The glob(3) functionality in FTP servers has been knowwn to cause security issues (see CVE-2001-0249), thus should be disabled when not needed.

Examples:

  # Turn off support for globs in LIST/NLST commands
  UseGlobbing off


Installation

The mod_lsmodule is always installed.



© Copyright 2000-2016 The ProFTPD Project
All Rights Reserved