Also found in: Dictionary, Legal, Financial, Acronyms, Wikipedia.
Related to chmod: Chown


(file system)
("Change mode") The Unix command and system call to change the access permissions of a named file. Each file (directory, device, etc.) has nine kinds of access which can be allowed or denied. Different permissions apply to the owner of the file, the members of the group the file belongs to, and all users. Each of these classes of user (owner, group and other) can have permission to read, write or execute the file. Chmod can also set various other mode bits for a file or directory such as the sticky bit and the set user id bit.

Unix man page: chmod
This article is provided by FOLDOC - Free Online Dictionary of Computing (


(CHange MODe) A Unix command that changes the permissions (attributes) of a file or directory. Chmod requires an understanding of how the read-write-execute permissions are expressed. The "list long" command (ls -l) displays the attributes of a file or directory, and the first part of the line looks like this: -rwxrwxrwx. A dash or "d" as the first character means file or directory. The three sets of rwx are permissions for owner-group-other. For example, -rwxrw-r-- gives all permissions to the file on the line to the owner, read/write permissions to the group and read only for the rest.

The command uses =, + and - to set, add and subtract changes to owner (u), group (g), other (o) or all (a). The following examples show the permissions of an shell script after each command is executed. See ls, shell script, chown and chgrp.

-rwxrwxrwx          ALL PERMISSIONS

 chmod o=     SET OTHER TO NONE


 chmod o+r    ADD R TO OTHER


 chmod a-x    REMOVE ALL EXECUTE


 chmod a=rwx  SET ALL TO RWX


 chmod a=     SET ALL TO NON


 chmod u=r    SET OWNER TO READ


List Long Shows Permissions
The list long (ls -l) command shows the permissions of files and directories (folders). The arrow points to the permissions in this macOS example.
Copyright © 1981-2019 by The Computer Language Company Inc. All Rights reserved. THIS DEFINITION IS FOR PERSONAL USE ONLY. All other reproduction is strictly prohibited without permission from the publisher.
References in periodicals archive ?
APP components Protected Strings Commands HttpURLConnection chmod com.eguan.state getSimSerialNumber root sms to getprop ...