CHMOD Print
Submit Cancel
Email this article

Close

You are here: Home > Website Support > Linux Commands

The CHMOD command (abbreviated from change mode) is used to change file and directory permissions on UNIX based operating environments. Client’s that are familiar with the SSH / Telnet interface will be more familiar with this command than clients that use FTP programs and the konsoleH File Manager tool to update file and directory permissions.

Permissions can apply to the following three categories:

  • User
  • Group
  • Other


The three types of permissions that can be granted or denied to each of the above categories are:

  • read (r)
  • write (w)
  • execute (x)

The following matrix can be used to calculate permissions:

 Permission  User  Group  Other
 Read  4  4  4
 Write  2  2  2
 Execute  1  1  1
 Total  7  7  7

The CHMOD command has several options that affect its behaviour, with the most common option being -R to change the permissions on a directory recursively.

The following shows the correct syntax and results of three popular CHMOD commands:

Syntax:  chmod 777 filename
Result:  -rwxrwxrwx ftplogin users filename

Syntax:  chmod 644 directory
Resut:  drw-r—r—ftplogin users directory

Syntax:  chmod 644 directory -R
Result:  drw-r—r—ftplogin users directory

Was this information helpful?

Yes No

Thank you for your feedback
We are delighted to find that our article resolved your query.

Thank you for your feedback
We will resolve your query as soon as possible.

Please take a few moments to comment on your unresolved query. Simply tell us what your problem is. We guarantee that we'll get back to you within two hours (during office hours) in response to your query.


  Partially resolved    Unresolved
Enter your query here:
Your name:
Your email address:
Contact number:
Customer number or domain name:
 
Preferred contact method: Email     Call me
Please enter the text in the picture below into the text box:
CAPTCHA Image:
ID Number:
 

Related articles

  • CHOWN
  • CHMOD
    • Hosting for Beginners

      Step-by-step guide to hosting with Hetzner.

      VIEW NOW
    • Application Tutorials

      Use our installation guides to get up and running.

      VIEW NOW
    • Login Now

      Our award winning proprietary control panel empowers customers to manage their hosting environment.

      Take the Tour
    • Contact Us

      support@hetzner.co.za

      Phone: 0861-0861-08
      Fax: 0861 0861-09
      Contact Us