What is CHMOD and what do the numbers mean?

Problem: "I'm having trouble setting my configure.php files to read-only.  What does 444 mean?"

Answer:
A number of hosts do not allow setting permissions to 644 for some reason (mine included). Setting to 444 is perfectly acceptable. If you should need to modify the file you may need to temporarily change the permissions to something like 755 while you make the modification. Be sure that when you are finished modifying the file to set it back to 444 so as to prevent others from being able to mess with it (security issue).

Here is what the numbers mean:

444 = (r-- r-- r--): owner/group/others are all only able to read the file. They cannot write to it or execute it. 
644 = (rw- r-- r--): same as 444 except the owner can write to it. 
755 = (rwx r-x r-x): owner can read, write and execute the file, members in the user group and others can read and execute the file but cannot write to it. 

r = read, w = write and x = execute.

In the format above, the first group of three characters represents the owner's level of permission, the second group represents permission for others in the same user group as the owner, and the final 3 characters represent the permission for all others (including website visitors).

If you were able to set to 644 the owner (you) could modify the file while all others would be restricted. In that case you would not need to change permissions in order to modify it. Just leave it at 644.

The permissions are set on the host server usually through the user's control panel. They can also be set using the chmod command in many ftp programs, or or through terminal or telnet access to the server. (most webhosts do not allow terminal or telnet access.)
  • 8 Users Found This Useful
Was this answer helpful?

Related Articles

How can I find out what version of Zen Cart or PHP or MySQL I'm using?

To find out what version of Zen Cart or PHP or MySQL you are currently using, you can simply go...

Getting a BLANK PAGE? Here's the answer ...

If you're getting a blank page when trying to browse to a certain page on your store, or after...

What's New in the Upcoming v2.0 release?

Database Abstraction Layer and Sql CacheThe abstraction layer has been re-factored to include a...

Image Preparation - How-to

I've seen several posts where people obviously aren't quite sure about the best way to set up...

Some tips to modify stylesheet

1. Download Web Developer extension for FireFox here2. Install & restart FireFox. You should...