chmod command

Changes permissions of one or more remote files.

Advertisement

Syntax

chmod <mode> <file> [ <file2> ... ]

Remarks

mode can be specified as three or four-digit octal number.

Filename can be replaced with wildcard to select multiple files.

Not supported with WebDAV and S3 protocols.

Effective options: failonnomatch

XML log element: chmod

Examples

chmod 644 index.html about.html
chmod 1700 /home/martin/public_html
chmod 644 *.html

Advertisement

Converting to .NET Assembly

There is no equivalent for chmod command in .NET assembly.

With SCP protocol (and SFTP, if you have a shell access), you can use Session.ExecuteCommand method to execute chmod shell command.

With FTP protocol, you can use Session.ExecuteCommand method to execute SITE CHMOD FTP command.

Last modified: by martin