Hard Hat Hosting - "Virtual Dedicated Server" web hosting

How can I change permissions on my files?

Original URL: http://help.hardhathosting.com/question.php/101

If you are using FTP software, there is usually a menu option or button that says "Change Permissions," click this option. You have choices of R(read), W(write), and X(execute)*.

If you are using a command line utility such as PuTTy [Link: /question.php/33], you need to use the "chmod" command.

If you want to give read permissions, use the command:

chmod 744 yourfile
to give execute permissions*, use the command:
chmod 755 yourfile
to give read/write permissions, use the command:
chmod 766 yourfile
to give all permissions, use the command:
chmod 777 yourfile

*If you are changing permissions for scripts in Perl/CGI, you need to make sure they have execute permissions.

Back to original article