Aller au contenu principal

chmod

Use to create a directory.

CHMOD

NAME

chmod - Set permission of files/directories

SYNOPSIS

chmod([permissions:integer, owner:"rwx", group:"rwx", other:"rwx",] "files...");

DESCRIPTION

This function is used to set the permissions of files or directories.

This function is avaliable with version 5.148 of Sncode.

The permissions parameters is specify as follows:

A  numeric  mode is from one to four octal digits (0-7), derived by adding up the bits with values 4, 2, and 1.  Omitted
digits are assumed to be leading zeros.  The first digit selects the set user ID (4) and set group ID (2) and restricted
deletion or sticky (1) attributes.  The second digit selects permissions for the user who owns the file: read (4), write
(2), and execute (1); the third selects permissions for other users in the file’s group, with the same values;  and  the
 fourth for other users not in the file’s group, with the same values.

chmod(permissions:0x755, "files");

 

SEE ALSO

{{ include("includes/files.sn") }}

AUTHOR

Written by Pierre Laplante and Caroline Laplante, <laplante@sednove.com>

MODIFICATIONS

1.0 2021-04-05 laplante@sednove.com

Edit

© 2022 extenso Inc. All rights reserved.