edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
[SFTP Only] The default file creation mode permissions (in octal).

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40

Syntax

C#
public string DefaultPermissions { get; }
Visual Basic
Public ReadOnly Property DefaultPermissions As String
	Get
Visual C++
public:
property String^ DefaultPermissions {
	String^ get ();
}

Remarks

This property applies to SFTP only. Use the Protocol property to select the protocol.

Permission strings consist of three fields - permissions for owner, group and other users. A typical executable file might have permissions of read,write and executable permissions set for the owner, and read and execute permissions for everyone else. This is typically displayed as rwxr-xr-x, in the order of owner|group|other.

Permission strings can also be presented in octal, which has certain advantages. An octal number corresponds to each type of permission: 4=read, 2=write and 1=execute. These are combined to form a group of permissions, i.e. a permissions field. For example, to specify that a file has read, write and execute permissions, it is assigned 4+2+1 = 7. So for the previous example of rwxr-wr-w, this can be represented in octal as 755, where the 5 comes from 4(read)+1(execute).

The default permissions are combined with the UMask to form the final permission set for a new file.

For more details on permissions and umasks, see a Unix text or look up umask and chmod's man pages.

See Also