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.

about Chowning stuff

Discussion in 'General Discussion' started by assassin85, Mar 18, 2008.

  1. assassin85

    assassin85 Active Member

    Joined:
    Jul 24, 2007
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    hi

    i want Chowning one user but the command

    /scripts/chownpublichtmls chown all users on the server

    what i want is script chown one user

    i can do it with chown command but the permission of public_html must be 750 can't make it 711 like when /scripts/chownpublichtmls finish

    so please advise

    thanks
     
  2. libin

    libin Member

    Joined:
    Jul 4, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Can you please tell what exactly is required. Do you want to set the ownership of a file / script on the server to a user. Please let me know in detail
     
  3. assassin85

    assassin85 Active Member

    Joined:
    Jul 24, 2007
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    what i want to point at it if some user delete the public_html then with root premission i will create it with the following comamnds

    Code:
    mkdir /home/user/public_html
    chown user:nobody /home/user/public_html 
    chmod 750 /home/user/public_html
    if i chmod 771 to /home/user/public_html the result will be forbidden in the main site

    the only premission work with the directory is 750 or 755

    so if there anyway to chmod 711 to the public_html without getting that message or the only way to run that command script

    /scripts/chownpublichtmls

    i hope u got it now ;)
     
  4. libin

    libin Member

    Joined:
    Jul 4, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    If your php on your server is compiled as apache module, the public_html directory should have either 755 or 750 for the pages to load. You can check this in php info page and check the section "Server API". Within my limited knowledge this is not possible.
     
  5. ReiJu

    ReiJu Well-Known Member

    Joined:
    Mar 14, 2008
    Messages:
    57
    Likes Received:
    1
    Trophy Points:
    6
    I don't know how the situation is exactly. But AFAIK, it's OK to have 711 permission as long as you have DirectoryIndex (index.php or index.html) file in that directory. The forbidden error occures only if the service cannot find the DirectoryIndex file.
     

Share This Page