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.

Tweak Security Question How to enable but disable

Discussion in 'Security' started by jmweb, Nov 17, 2003.

  1. jmweb

    jmweb Well-Known Member

    Joined:
    Aug 8, 2003
    Messages:
    77
    Likes Received:
    0
    Trophy Points:
    6
    OK I want www.mydomain.com/~userid/ to work for some people but not for others. I have been fiddling with the "Exclude Protection" check mark box as well as the "Users to allow other then the domain owner" and I can not figure it out. Can someone PLEASE tell me what should be check when trying to allow the user "jmweb" to use mydomain.com/~userid/ but no one else.

    cPanel.net Support Ticket Number: Yes I am brain dead right now
     
  2. jmweb

    jmweb Well-Known Member

    Joined:
    Aug 8, 2003
    Messages:
    77
    Likes Received:
    0
    Trophy Points:
    6
    anyone know?
     
  3. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    I know the answer is in here somewhere because it was brought up before, but I don't remember what it was exactly. It was something like disabling it, then in the httpd.conf file you can enable it for specific users.

    I'll see if I can find it later when I have more time if it's still needed.
     
  4. Faldran

    Faldran Well-Known Member

    Joined:
    May 28, 2002
    Messages:
    136
    Likes Received:
    0
    Trophy Points:
    16
    Ok, here is how to exculde some from being able to use ~username

    Here is what to look for in httpd.conf
    PHP:
    # UserDir: The name of the directory which is appended onto a user's home
    # directory if a ~user request is received.
    #
    <IfModule mod_userdir.c>
        
    UserDir public_html
    </IfModule>
    Change it to:
    PHP:
    # UserDir: The name of the directory which is appended onto a user's home
    # directory if a ~user request is received.
    #
    <IfModule mod_userdir.c>
        
    UserDir public_html
        UserDir disabled user1 user2
    </IfModule>
    Just put in each username with a space that you do not wish to have access to ~username any more.. then restart httpd.
     
  5. bear

    bear Well-Known Member

    Joined:
    Sep 24, 2002
    Messages:
    113
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Perhaps this would be useful?
    http://www.hk8.org/old_web/linux/apache/ch08_05.htm

    Explains that you can set 'disabled' for everyone not specifically mentioned in an 'enabled' line. That way new users are disabled until allowed instead of having to edit httpd.conf after every account setup.
     
  6. jmweb

    jmweb Well-Known Member

    Joined:
    Aug 8, 2003
    Messages:
    77
    Likes Received:
    0
    Trophy Points:
    6
Loading...

Share This Page