The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

What is the proper perms for www -> public_html/ supposed to be?

Discussion in 'General Discussion' started by jackie46, Oct 4, 2005.

  1. jackie46

    jackie46 BANNED

    Joined:
    Jul 25, 2005
    Messages:
    537
    Likes Received:
    0
    Trophy Points:
    0
    Cpanel has made some changes but they have not bothered to keep those changes consistent.

    In some of the users directies that were created a long time ago the user owns his www -> public_html/ directory.

    lrwxrwxrwx 1 jack jack 11 Jul 8 15:03 www -> public_html/

    While looking though other directories we find the root user owning www -> public_html/.

    lrwxrwxrwx 1 root root 11 Jul 8 15:03 www -> public_html/

    So what is is suposed to be? If its changed why hasn't it been updated for everyone and how do we convert all existing to be the same?
     
  2. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    They should be owned by the user, but since symlink permissions are 777, they work either way.
     
  3. jackie46

    jackie46 BANNED

    Joined:
    Jul 25, 2005
    Messages:
    537
    Likes Received:
    0
    Trophy Points:
    0
    So that means we have to go though each account to make suer its user.user? Gawd, i have one reseller who hosts 352 websites on one server. How am i going to go though each directory to change the root.root to user.user? Seems to me that it would be more logical for it to be root.root so dumb users dont go though deleting the www and then wonder why they get a 403.
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You could simply run:

    /scripts/chownpublichtmls

    which will set them to whatever they should be.
     
  5. jackie46

    jackie46 BANNED

    Joined:
    Jul 25, 2005
    Messages:
    537
    Likes Received:
    0
    Trophy Points:
    0
    Thanks for that. But why is it happening in the first place?
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    As a symlink it doesn't really matter much. I've no idea why they've changed it, if they have, you're better off asking them directly for an answer to that.
     
Loading...

Share This Page