次の方法で共有


add Element for authorization for system.ftpServer [IIS Settings Schema]

Note

For more information about the add element, see the following topic on the Microsoft IIS.net Web site: Adding Authorization <add>.

Defines an authorization rule that will either allow or deny access to specified users, groups, anonymous users, or all users.

Syntax

Attributes and Elements

The following sections describe attributes, child elements, and parent elements for this section.

Attributes

Attribute

Description

accessType

Required enum attribute.

The accessType attribute can be one of the following possible values.

Value Description
Allow Specifies a rule that allows authorization. The numeric value is 0.
Deny Specifies a rule that denies authorization. The numeric value is 1.

roles

Optional string attribute.

Specifies roles or groups for an authorization rule.

users

Optional string attribute.

Specifies users for an authorization rule. Multiple users can be added in a comma-separated list. In addition, the following special identifiers have been defined.

Value Description
* Specifies that the rule will apply to all users.
? Specifies that the rule will apply to anonymous users.

permissions

Optional flags attribute.

Specifies the access permissions for the rule.

Value Description
Read Specifies read access for the authorization rule.The numerical value is 1.
Write Specifies write access for the authorization rule.The numerical value is 2.

There is no default value.

Child Elements

None.

Parent Elements

Element

Description

configuration

Specifies the root element in every configuration file that is used by IIS 7.

system.ftpServer

Specifies the top-level section group (in ApplicationHost.config) in which this element is defined.

security

Specifies security settings for an FTP server.

authorization

Specifies the resources that a user account can and cannot access on an FTP server.

Remarks

For more information about the add element, see the following topic on the Microsoft IIS.net Web site: Adding Authorization <add>.

Element Information

Configuration locations

ApplicationHost.config

Requirements

IIS 7

See Also

Reference

authorization Element for system.ftpServer [IIS Settings Schema]