SitePoint Sponsor

User Tag List

Results 1 to 8 of 8

Thread: Chmod???

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Jul 2000
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I keep coming across the term CHMOD, can someone explain exactly what it means, and how to do it.

    Thanks, Neo.

  2. #2
    SitePoint Member
    Join Date
    Jul 2000
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello. chmod means "change mode". It sets a permission in UNIX which tells the server what the file is allowed to do. For example, perhaps you have a CGI program which needs to write information to file.txt. file.txt has no permissions to begin with, so the program will not be allowed to open it, and then write to it. If you set 'chmod 666 file.txt', it now has the permission to be written to. You also need to set permissions on cgi programs to tell them they are allowed to be run by people viewing them on the web.

  3. #3
    SitePoint Wizard
    Join Date
    Sep 1999
    Posts
    1,390
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It depends on what kind of access you have (to chmot a file). Are you using FTP or Telnet?

    ------------------
    Aidan Bahta
    abahta@activewm.com

    ActiveWM.com - The place for the Active Webmaster.

  4. #4
    SitePoint Member
    Join Date
    Jul 2000
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am using FTP (WS_FTP), I have found the CHMOD button, however, when I click the button I am prompted with a screen which reads:

    owner
    Read - ticked
    Write - ticked
    Execute - not ticked

    group
    Read - ticked
    Write
    Execute

    other
    Read - ticked
    Write
    Execute

    I have to be able to CHMOD one directory to 777, whilst some files are at 775 and others at 666. I was wondering, how could I do this, I assume it has something to do with ticking/unticking the appropriate boxes.

    Thanks, Neo.

  5. #5
    SitePoint Wizard TWTCommish's Avatar
    Join Date
    Aug 1999
    Location
    Pittsburgh, PA, USA
    Posts
    3,910
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Neo (cool alias, by the way):

    Each of those 3 boxes has a value...the top box equals "4", the middle box is "2", and the bottom is "1"...so therefore, if you check all three boxes in the "owner" set, then you have a value of "7"...check all 3 in the other two sets, and you have two more 7s...total: "777".

    755 would be all three checked in the first, and the top and bottom boxes checked in the 2nd and 3rd sets.

    Let me know if this is confusing.



    ------------------
    Chris Bowyer chris@mycoding.com
    MyCoding.com: Visit for Launch Notification!
    DomainMailings.com: Who Says All The Good Ones Are Taken?
    MovieForums.com: Talk About Your Favorite Flicks!

  6. #6
    SitePoint Member
    Join Date
    Jul 2000
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Aaahh, I see now...thanks for clearing this up for me. I was wondering what those buttons meant. Thanks to everyone for responding.

    Neo.

  7. #7
    SitePoint Enthusiast
    Join Date
    Jul 2000
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow!
    Thanks TWT!
    I've been trying to figure what that means in WS_FTP forever!
    Thanks Again

  8. #8
    SitePoint Wizard TWTCommish's Avatar
    Join Date
    Aug 1999
    Location
    Pittsburgh, PA, USA
    Posts
    3,910
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    LOL, glad to help...I remember what an incredibly pain it was for me too (before I'd even gotten used to installing CGI scripts)...it was a revelation for me really.



    ------------------
    Chris Bowyer chris@mycoding.com
    MyCoding.com: Visit for Launch Notification!
    DomainMailings.com: Who Says All The Good Ones Are Taken?
    MovieForums.com: Talk About Your Favorite Flicks!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •