DataNerve - Dedicated Hosting Solutions
Domain Name Search
 .    GO!
Hosting Packages Services Company Customer Support Buy Now
Getting Started Product Support Advanced Users Usefull Resources Network Status
Order Now! Get Your Virtual Dedicated Server
Getting Started
Product Support
Advanced Users

-  .htaccess
-  CGI
-  chmod
-  FormMail
-  MIME
-  SSH
-  SSI
-  UNIX
-  Other

Usefull Resources
Network Status


Have a Question? 1-866-873-1475
Changing File Permissions (chmod)

On this page:

chmod Overview

chmod (change mode) is a command that changes the access permissions (or modes) of a file or directory. The permissions determine who can read, change or execute a file.

Often CGI scripts will require that you specify certain permissions for files. The most common modes are listed below.

Numer UNIX Permissions
777 rwxrwxrwx Owner Group World
read Y Y Y
write Y Y Y
delete Y Y Y
755 rwxr-xr-x Owner Group World
read Y Y Y
write Y N N
delete Y Y Y
744 rwxr--r-- Owner Group World
read Y Y Y
write Y N N
delete Y N N
644 rw-r--r-- Owner Group World
read Y Y Y
write Y N N
delete N N N

TOP

chmod through the Command Line
  1. Access a command prompt by SSHing into your account. Instructions...
  2. Located the file you wish to chmod. Instructions...
  3. Enter the following into the command line:

    chmod Number file_name

    Number - Enter the permission number like 755. (Refer to the chart in the first section of this page.)

    file_name - Enter the name of the file.

    Example: (chmod 755)

    bash# chmod 755 formmail.pl
TOP

chmod with WSFTP
  1. FTP into your account using WSFTP.
  2. Locate the file you wish to chmod in the directory in the right-hand side.
  3. Right-click on the file name and select chmod (UNIX).

    Note:
    As soon as you click on chmod (UNIX), the permissions will automatically change to the program default. You must set the permissions even if you just view the settings.



  4. Set the permissions for the file. (Refer to the chart in the first section of this page.)

    Example: (chmod 755)



  5. Click OK.
TOP