What is chmod?
Article Number: 1130 | Rating: 5/5 from 1 votes | Last Updated: Fri, Nov 11, 2016 at 12:41 PM
What is chmod?
The chmod, or change mode, command allows an administrator to set or modify a file’s permissions. Every UNIX file has an owner user and an owner group attached to it, and every file has permissions associated with it. The permissions are as follows: read, write, or execute.
UNIX systems have many users. In this context, a user may refer to an individual or a system operation. UNIX identifies each user with a UID, and users may be organized into groups.
The syntax of the chmod command is:
chmod mode file
chmod 720 readme.txt
Each number in the mode parameter represents the permissions for a user or group of users:
Table 1 shows the eight numbers that can be used within the chmod parameter. The rwx column specifies read, write, and excecute access, offering a binary value for each operation. A "1" means "yes," a "0" means "no." If rwx reads 110, then that permission may read and write, but not excecute.
Table 1. chmod mode parameters.
For example, if you set your directory permissions to 720, then your permissions would function as follows:
There are no attachments for this article.
How to optimize JPEGs, PNGs, and GIFs from the CLI
Added on Tue, Jan 24, 2017
How to transfer files to a server with SFTP
Added on Wed, May 23, 2018
How to add FTP accounts with SiteWorx
Added on Mon, Jun 11, 2018
How to manage firewall whitelists in SiteWorx
Added on Mon, Dec 17, 2018
What is rsync?
Added on Mon, Feb 23, 2015
How to install Invision Power Board
Added on Fri, Feb 15, 2019
How to conserve disk space in Magento
Added on Wed, Jan 30, 2019
How to configure WordPress file permissions
Added on Wed, Jan 2, 2019
What is Subversion?
Added on Mon, Aug 18, 2014
What are file and directory permissions?
Added on Wed, Dec 26, 2018