LVS Online       Offering Online Instruction since 1999
Available Courses •  
Free Tutorials •  
Course Descriptions •  
Register for Classes •  
My Account •  
CLASSROOMS •  
FAQ •  
Class Guidelines •  
About LVS Online •  
Help Page •  
School Calendar •  
Blog •  
Message Forum •  
What's New •  
LVS Store •  
Student Comments •  
Meet the Staff •  
Student Library •  
Join Mailing List •  
Visitor Survey •  
Teach With Us •  
Contact Us •  
Referral Program •  
Class Certificates •  
LVS Logos •  
Home •  

[LVS Web Hosting]
LVS Web Hosting
Starting @ $7.95/mth
Check it out!

Follow LVS Online Classes on Twitter

LVS Free tutorials
 
« Back to Free Tutorials Index

CHMOD - Setting File Permissions

Printable PDF version HERE

This tutorial is designed to show you how to set file permissions with your ftp client. WS_FTP LE and CuteFTP are covered here.

If you're using SmartFTP, you can find a tutorial on setting file permissions on their site - http://www.smartftp.com/support/howto/ - Look toward the bottom of the page under the heading "Miscellaneous" for CHMOD and click the "View" link.

Overview:
The most common reason to set permission for a file or folder is when you're using a cgi script on your site. A cgi script and its supporting files/folders normally require specific permissions in order for them to do their job.

Unix classifies users by individual, group, and world. Permission to access files and directories is based on the category an individual user falls into, relative to the owner and group of the file or directory being accessed. The term for configuring Unix file security is "setting file permissions".

Read - allows the file or folder to be read
Write - allows the file or folder to be written to.
Execute - allows executing of the file or folder.

Owner - the person who owns the account that the file or folder resides in.
Group - any user residing in the same group
Other - any other user including Anonymous

Most cgi scripts will run properly when set to 755 as shown in this tutorial so its best to try that first even if the script information says to set it to 777. Many web hosts do not allow users to set 777 permissions due to security issues.

Some scripts will run with a lower permission. Be sure to check the documentation that came with the script for the details that you need. Your instructor is also available to help you if you're taking a class here at LVS.

WS_FTP
- this may work with other FTP clients but I won't guarantee it, and the screen caps will likely not look the same

  1. Upload the cgi or pl document to your cgi-bin in ASCII mode.
    upload in ascii mode
    Note: if you use Auto please be sure that you've added .pl and .cgi to the Extensions tab under Options to ensure that WS_FTP knows to upload those files with ASCII mode.
    Add .cgi and .pl to the extensions listed

  2. Right click on the file name on the remote side of the FTP program.

  3. Choose chmod from the pop-up menu.
    choose chmod

  4. Put a check mark in each of the following boxes:
    • OWNER: read, write and execute
    • GROUP: read and execute
    • OTHER: read and execute
    Set the file permissions

  5. Click the OK button.

  6. Look in the lower left corner of WS_FTP. You should see a success message something like this:
    Successful chmod command





Cute FTP

  1. Upload the cgi or pl document to your cgi-bin in ASCII mode.
    upload in ascii mode
    Note: if you use Auto please be sure that you've added .pl and .cgi to the Text-files extension area by going FTP > Settings > Text-file extensions.
    Add extensions to the list
    If you don't see cgi and pl there, type them in and click the Add button.
    Add the file extension here

  2. Highlight the file you want to set permissions for

  3. Go Commands > Advanced Commands > Change File Attributes
    Set permissions

  4. When the dialogue box pops up, type 755 in the box labeled "Manual"
    Type 755 in the box

  5. Click the OK button

Printable PDF version HERE

« Back to Free Tutorials Index
     

Home   |   Register   |   Schedule   |   FAQ   |   Message Forum   |   Contact Us

Copyrighted 2004 - (none) © LVS Online Classes / LVS Associates
Author: Vikki Long

Lessons, files and content of this site cannot be reproduced and/or published
without the express written consent of the author.

Use of this site implies agreement with the Terms of Use