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.

Password Protected Directories - How to Protect Root?

Discussion in 'General Discussion' started by ckizer, Oct 25, 2004.

  1. ckizer

    ckizer Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    129
    Likes Received:
    0
    Trophy Points:
    16
    WHM 9.9.8 cPanel 9.9.8-C17**
    RedHat Enterprise 3 i686 - WHM X v3.1.0*

    If you go into any users control panel > Password Protected Directories and click "/" It just refreshes the page. How would any of my users go about password protecting their home root directory?

    They need to be able to do it from the control panel, any other method is unacceptable.

    Suggestions?
     
  2. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Can't password protect the root folder that way.

    It would have to be done manually through the .htaccess file.
     
  3. damainman

    damainman Well-Known Member

    Joined:
    Nov 13, 2003
    Messages:
    515
    Likes Received:
    0
    Trophy Points:
    16
    easiest way is to:

    1. Password protect a directory
    2. Copy the contents of the .htaccess from that directory
    3. Paste it in the .htaccess of the root directory
    4. Now your protected.

    Whatever username/password you used to protect the initial directory is what will be used to access the root directory, after you copy over the .htaccess file.
     
  4. ckizer

    ckizer Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    129
    Likes Received:
    0
    Trophy Points:
    16
    Why? When will cpanel fix this option and allow me to password protect the root directory from the control panel? I get questions about how to do this from clients all day...
     
  5. damainman

    damainman Well-Known Member

    Joined:
    Nov 13, 2003
    Messages:
    515
    Likes Received:
    0
    Trophy Points:
    16
    You have 3 options:

    1. Post what i posted above into your FAQ for your clients to read
    2. Submit a enhancement request in bugzilla
    3. Do all of the above :)
     
  6. nickn

    nickn Well-Known Member
    PartnerNOC

    Joined:
    Jun 15, 2003
    Messages:
    619
    Likes Received:
    1
    Trophy Points:
    18
    Or, the more popular 4th option...complain on forums.cpanel.net ;)

    If it's that big of a deal, put a enhancement request in, and make people vote on it. The more votes a bug receives, the quicker cPanel looks at it. This is the secret ;)
     
  7. damainman

    damainman Well-Known Member

    Joined:
    Nov 13, 2003
    Messages:
    515
    Likes Received:
    0
    Trophy Points:
    16
    I never knew we could vote on bugs lol.
     
Loading...

Share This Page