University of Calgary

Setting Linux Permissions Manually

Submitted by powlesla on Thu, 2007-05-31 13:17.

Every time you upload a new file using SSH or FTP programs, you have to reset your file access permissions. Unless you do so, the general public will not be able to access your Web page. Log on to c1.ucalgary.ca using SSH. Then type the following commands, pressing Enter after every line:

cd
chmod a+x .
chmod a+rx public_html
cd public_html
chmod a+r *

Make sure to type the commands exactly as shown. If you get an "Access forbidden" error message when you try to visit your page, you know that your access permissions are not correct.If you have subfolders under your public_html directory, you will have to repeat the last two commands in the list above for each of them.

You can also go to the IT Utilities page and set the permissions using the Give Public Web Access to a Web Folder and all of its Sub-Folders from the menu. Follow the directions, and the permissions will be set for you.