MD_ACCESS_PERM

This metabase identifier contains flags that establish the access permissions for files residing on the server.

Attributes

Data type DWORD
Default inheritance Inheritable
User type IIS_MD_UT_FILE

Values

Default Value
MD_ACCESS_READ
Constant Value Description
MD_ACCESS_READ 0x00000001 Allow read access
MD_ACCESS_WRITE 0x00000002 Allow write access
MD_ACCESS_EXECUTE 0x00000004 Allow file execution (includes script permission)
MD_ACCESS_SCRIPT 0x00000200 Allow script execution
MD_ACCESS_NO_REMOTE_WRITE 0x00000400 Local write access only
MD_ACCESS_NO_REMOTE_READ 0x00001000 Local read access only
MD_ACCESS_NO_REMOTE_EXECUTE 0x00002000 Local execution only
MD_ACCESS_NO_REMOTE_SCRIPT 0x00004000 Local host access only

Metabase Keys

This identifier is available at the following metabase keys:

Metabase Path Key Type
/LM/MSFTPSVC IIsFtpService
/LM/MSFTPSVC/n IIsFtpServer
/LM/MSFTPSVC/n/ROOT IIsFtpVirtualDir
/LM/MSFTPSVC/n/ROOT/FtpVirtualDir IIsFtpVirtualDir
/LM/W3SVC IIsWebService
/LM/W3SVC/n IIsWebServer
/LM/W3SVC/n/ROOT IIsWebVirtualDir
/LM/W3SVC/n/ROOT/WebVirtualDir IIsWebVirtualDir
/LM/W3SVC/n/ROOT/WebVirtualDir/WebDirectory IIsWebDirectory
/LM/W3SVC/n/ROOT/WebVirtualDir/WebDirectory/WebFile IIsWebFile

Remarks

Permissions established by setting the MD_ACCESS_EXECUTE, MD_ACCESS_SCRIPT, MD_ACCESS_NO_REMOTE_EXECUTE, and MD_ACCESS_NO_REMOTE_SCRIPT bits do not apply to FTP server files.

Remote access flags are operative only when the corresponding general access flag is set. For example, MD_ACCESS_NO_REMOTE_READ has no effect unless MD_ACCESS_READ is also set. If both are set, the local host can read the file, but it cannot be read by the remote client.

See also

AccessFlags