What is CHOWN?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sean

    #1

    What is CHOWN?

    What is meant by: "CHOWN the entire casetracker folder to something
    that permits the server to write to it, such as apache.apache, or
    whatever your Webmaster recommends" - is that 700 or 777...Help


    Sean
  • Andy Hassall

    #2
    Re: What is CHOWN?

    On 3 Jan 2004 11:32:28 -0800, new2php@zappo.c om (Sean) wrote:
    [color=blue]
    >What is meant by: "CHOWN the entire casetracker folder to something
    >that permits the server to write to it, such as apache.apache, or
    >whatever your Webmaster recommends"[/color]

    chown alters the owner and/or group of a file or directory.
    [color=blue]
    >- is that 700 or 777...Help[/color]

    That's chmod, which determines read/write/execute permissions for
    owner/group/others. The owner and group being determined from whatever it was
    set with using chown/chgrp or whatever values it inherited at create time.

    700 is full access for owner, no access for anyone else (except root).

    Also accepted by chmod is the alternative way of specifying it, which is a bit
    easier to remember, for example 700 corresponds to:

    u+rwx,g-rwx,o-rwx

    User (i.e. file owner): has (given by the +) read, write, execute
    Group: does not have (because of the -) read, write, execute.
    Others: does not have (because of the -) read, write, execute.

    770 is full access for owner and group, no access for others.

    777 is full access for anyone on the system, which lets anyone modify your
    files freely. You don't usually want to set this unless you completely trust
    the system and everyone using it.

    Ideally you'd set the group on the files to one that the web server user is
    also a member of, and set permissions to something like u+rwx,g+rwx,o-rwx
    (770), or g+r-wx for files the web server should only be able to read.

    --
    Andy Hassall (andy@andyh.co. uk) icq(5747695) (http://www.andyh.co.uk)
    Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)

    Comment

    • Jeremy Shovan

      #3
      Re: What is CHOWN?

      I think what this might meen is that you need to make the apache server
      the owner of the folder
      You can do this with:

      chown -R httpd path/to/casetracker

      Or you can give the folder write permissions to others

      chmod -R o+w path/to/casetracker

      Jeremy Shovan
      Image 2020
      Foundation X

      Sean wrote:
      [color=blue]
      > What is meant by: "CHOWN the entire casetracker folder to something
      > that permits the server to write to it, such as apache.apache, or
      > whatever your Webmaster recommends" - is that 700 or 777...Help
      >
      >
      > Sean[/color]

      Comment

      Working...