Knowledge base
File permissions explained

Generally, a script’s installation instructions or readme file will tell you that you need to change permissions on or chmod a file/directory so that the script can execute or write to the file/directory. You’ll need to make these changes through the file manager or through FTP.
Usually programs will display permission in an odd way such as this: _rwxrwxrwx.
In number form that’s 777. You may or may not have the _ at the beginning. If you do, that means it’s a file that has those permissions. If it’s a directory you’ll see a d there (drwxrwxrwx) instead of the underscore.
Each group of 3 characters are the permissions for the user, the group and finally others (everyone else). In addition, each group of 3 characters make up one number. The following is what each letter stands for:
- r (read) = 4
- w (write) = 2
- x (execute) = 1
To give some examples of some common permission converted from the letters to numbers (with the first character defining file/directory removed to avoid some confusion):
- rwxrwxrwx -> 777
- rwx_r_xr_x -> 755
- rw_rw_rw_ -> 666
- rw_r__r__ -> 644
As you see above, you just add up what each letter is equal to in each group to form the numbers.
If you’re changing permissions for a CGI or Perl script, please make sure to read this knowledge base entry.
Categories
Getting started:
Cpanel control panel:
- How do I access my control panel?
- How do I access the Fantastico auto-installer?
- Awstats: Error: LogFile parameter
- Access your Cpanel before your domain has propagated
- Cron jobs: what are they, and how to use them
Webhost manager (WHM):
- Do not change the username or domain name for any of your domains
- Always let WHM finish the current process
- Do not use hyphens or underscores in usernames
- Access all accounts with the WHM password
- Setting strong passwords
Questions and tips:
E-mail:
- Blocking all mail to an e-mail address
- What are the SMTP and POP server addresses?
- Mailing lists: limits of usage
- What happens to e-mail when the server is down: is it returned to the sender or lost?
- How do I access webmail for my account?
Domains and DNS:
FTP and files:
- What are the FTP timeout settings?
- The public_html and www directories
- What is the maximum number of FTP connections per user?
- What is the max number of files/directories I can display in FTP?
- File permissions explained
Htaccess magic:
CGI, PHP and Perl:
- What is the path to..?
- Formmail: important notes
- ImageMagick
- SuExec: what it is and how it affects your scripts