indiWiz.com
SiteSearch:
Jump:

Site Map | WizTools.org | jCraze Blog
Web Developer's Den!
Home : WDD : Conceptual
This Article...
Print Version
Add Comment
View Comments
Conceptual
First Step
Basic Concepts
Writing For The Web
"My Site Doesn't Work"
Case Differences
FTP Transfer Mode
File Permission
10 Tips For Making Your Site More Useful
Sections

Commniquè
Sign Guestbook!
Read Guestbook!
MailMe!

File Permission

I first encountered file permission problems when I first uploaded my CGI scripts. When I tried to execute the script, the Apache server returned 'permission denied' error message. If you go through this article, you will not encounter any such problem, better still, even if you encounter one, you will be in a position to solve it.

How to Change File Permission

File permission of a particular directory or file can be changed in two ways:

  1. Using telnet
  2. Using FTP software. Two free FTP softwares(for Windows) that support this feature are:
    • WS FTP LE - Right click on the file to change permission. Select 'chmod'.
    • FTP Works(Buggy) - Select the file, click the 'chmod' button on the right.

Changing...

  • For Directories & Executable files
    Use the following command if you have logged in using telnet:
    chmod 755 <filename>

    If you are using GUI FTP clients, change the permission to:

    Owner Group Other
    Read x x x
    Write x
    Execute x x x

    If you are more concerned about security:

    Owner Group Other
    Read x
    Write x
    Execute x x x

  • For Other Files
    Give the following command in the telnet prompt:
    chmod 644 <filename>

    For GUI FTP client users:

    Owner Group Other
    Read x x x
    Write x
    Execute


User Comments

Add Comment

[Quick Stats: Number of main threads: 0, Number of sub-threads: 0]

Sign Guestbook | Who is Subhash?
The contents of this site are copyright© 2000-2008, indiWiz.com. All Rights Reserved.