Results 1 to 7 of 7
  1. #1

    Users and Ownership

    I'm trying to setup /var/www/html to be owned by 2 users. I know I need to use a group, and I made a new one (web) putting both apache (for execution) and andrew (my ftp login) into the group. I ran chgrp command but I still can't modify files via ftp when logged in as andrew.

    I know I'm missing something basic here.
    --Andrew
    http://andrewloe.com/

  2. #2
    Join Date
    May 2002
    Posts
    323
    Permissions?

    chmod 660 on the files...
    - prime [[email protected]]
    ExclaimHosting - Your voice on the web.
    Fast, reliable hosting, at prices you can afford.
    http://www.exclaimhosting.com

  3. #3
    thats not it, when I chown -R andrew /var/www/html I don't get any issues.
    --Andrew
    http://andrewloe.com/

  4. #4
    Join Date
    Nov 2000
    Location
    Vancouver, BC
    Posts
    283
    kinda building on what prime said, make sure you have it set to 664 or 775 for directories, executables, etc.. and

    chgrp -R web /var/www/html

    which gives the files to the group "web"

  5. #5
    They're all on 644, does that basically mean that only 1 user can own them at a time?
    --Andrew
    http://andrewloe.com/

  6. #6
    Unless of course I chmod em'
    --Andrew
    http://andrewloe.com/

  7. #7
    Join Date
    May 2002
    Posts
    323
    644:

    The first 6 means the owner can read & write (modify & delete the files).

    The first 4 means members of the owning group can read the files.

    The last 4 means that everyone else can read the file.

    Basically, you have to add values up to see what can be done and what can't be done, for 3 categories of users. Owner, Group and World.

    0 means no access.
    1 Gives execute access.
    2 Gives Write access
    4 gives read access.

    So 700 would give complete access to the owner. 770 would give complete access to the Owner & his group. 777 would give everyone complete access.

    If the permissions are 644 now, you should change them to 664 to give eqal access to the group and the owner. 6 being 4 (read access) + 2 (write access).
    - prime [[email protected]]
    ExclaimHosting - Your voice on the web.
    Fast, reliable hosting, at prices you can afford.
    http://www.exclaimhosting.com

Posting Permissions

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