Before setting folder permissions, move your content into your www/ directory to make it viewable on your website.
Your website directory (www/ directory) is one directory level below your account home directory.
Set permissions on a file or folder
To allow others to view your website, you must grant executable access to all folders in the path to your site.
The system administrators have already granted executable rights to everyone for the top three folders: /, users/ and student/.
Set the same permissions on your home directory (in the above example jsmith9/), www/ and all folders within the www/ directory.
Also, read access will need to be set for all files within the www/ directory.
Methods for granting permissions on your website:
- Core FTP
- The Command Line (also known as the Terminal)
Set permissions with Core FTP:
Step 1: Open Core FTP and log into your Nova account.
Step 2: Right-click on the file or folder and select Properties.
Step 3: Enter the number that represents the permission for the directory/file or use the check boxes to set the permissions you need.
Permissions on most folders should be 711 , and permissions on most files should be 644 as shown in the images below.
When done, click OK.
Step 4: To set the permissions on your home directory, double-click on the folder named <..> to move one directory level above your home directory.
Step 5: Scroll down through the list until you locate the folder with your userid name.
Once found, right-click on your userid folder, select Properties and set the permissions to the 711 level as you did in steps 2 and 3 above.
Step 6: Once the permissions are set to 711 on the folder with your userid, double-click on the folder with your userid to move back into your account home directory.
Your account and files should now be configured correctly to view your web pages.
Set permissions with the Command Line (also known as the Terminal)
Step 1: Use an ssh client such as Putty or PortaPuTTy to log into your Nova account.
Step 2: At the Nova prompt, you will use the chmod command to set the permissions on your home directory and www directory. Note, when transferring files to your account with an FTP program, the files should transfer over with the proper permissions automatically set.
Step 3: Make sure you are in your accounts home directory. You can do this by typing cd at the Nova prompt:
and press Enter
Step 4: To set the permissions on your home directory, type the following:
Nova> chmod 711 .
Press Enter. Make sure you include the space before 711 and after 711 and you include the period at the end of the command.
On Unix, the period is used to specify "current directory" location. In this command, you are setting the permission to 711 for the current directory location (your home directory)
After pressing enter, you will be returned to the Nova prompt.
Step 5: To verify the permissions were set correctly, type:
Nova> ls –ld .
Press Enter. This command has two lowercase L's, a space after the s, a space after the d and a period at the end of the command.
Step 6: If you typed the command correctly to change your home directory permissions to 711, you should see something similar to:
in the left most column, showing a permission level of 711.
Step 7: To set the permissions on your www directory, type the following at the Nova prompt:
Nova> chmod 711 www
Step 8: To verify the permissions were set correctly on your www directory, type the following at the Nova prompt:
Nova> ls –ld www
Again, the left column of the results should show the drw--x—x permission level.
Note: Files and directories that are transferred using an FTP program (such as Core FTP), into your www directory on Nova should move to Nova with the proper permission level, and you shouldn't need to set them manually.