1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

CHMOD permisions

Discussion in 'Software Development' started by bhilai.co.in, Jan 26, 2007.

Thread Status:
Not open for further replies.
Advertisement
  1. bhilai.co.in

    bhilai.co.in Thread Starter

    Joined:
    Oct 4, 2006
    Messages:
    20
    In order for the forum installation to work I need to CHMOD the directories Server Root & Forum Data Root in such a way that the webserver can write to them.
    How do i do this?
    How do i change permission on some of my files or directories?
    How can i CHMOD a directory of file?
    im using cute ftp
     
  2. AGCurry

    AGCurry

    Joined:
    Jun 15, 2005
    Messages:
    431
    The best answer is probably to suggest that you read the man page for chmod.

    But I'll try to give you a short answer.

    There are two forms for the options to chmod. The easier form for me is the numeric.

    $ chmod nnn filename

    where nnn represents the desired permission mask, represented in octal (base 8). The first digit of the mask refers to the owner; the second digit to the group; and the third to all users.

    Each digit represents an OR of all possible permissions, which are:

    0 - no permission at all
    1 - permission to execute (or in the case of directories, to search)
    2 - write
    4 - read

    So, read+write = 6. read+write+execute=7.

    It's very unusual to have write permission without read permission, so a typical permission mask for a directory to which owner and group can write, and everyone can read would be
    664.

    However, you generally want to be able to search directories, so 775 would be more appropriate.

    Again, read the man page!
     
  3. Squashman

    Squashman Trusted Advisor

    Joined:
    Apr 4, 2003
    Messages:
    19,786
    I am so glad there is Google to find your answers in less then a second.
    http://support.discusware.com/center/resources/howto/chmod.html

    If you don't have shell access to do it at the command line, most FTP clients have that option built into them. You basically just right click the folder or filename and select the appropriate option from that list.
     
  4. jackin0627

    jackin0627

    Joined:
    Jan 26, 2007
    Messages:
    5
    chmod +r FileOrDirectoryName ----- add read permission for anyone
    chmod +w FileOrDirectoryName ----- add write permission for anyone
    chmod +x FileOrDirectoryName ----- add execute permission for anyone
     
  5. bhilai.co.in

    bhilai.co.in Thread Starter

    Joined:
    Oct 4, 2006
    Messages:
    20
    Thanx all
     
  6. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/538469

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice