Support This Project

site chmod

Description

Changes access permissions on one or more files and/or folders. Unlike site chacl, this command affects all users at once, rather than on a per-user/per-group basis. It is the recommended (and most commonly used) method for restricting access to files and folders.

Syntax

site chmod <mode> <file1> [<file2> ...]

Detailed information on the options/arguments: <mode>, <file>

Limitations

You need to have the correct permissions on the file(s) you're trying to change permissions on.

Examples

site chmod rwx documents

Grants the user owner of the documents folder read, write and execute permissions.

site chmod 644 page4.php

Grants the user owner of the file page4.php read and write permissions, but not execute permission.