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.

No access to protected directory after migration to new host

Discussion in 'General Discussion' started by piratekes, Jun 19, 2016.

  1. piratekes

    piratekes Member

    Joined:
    Jun 19, 2016
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Australia
    cPanel Access Level:
    Website Owner
    Hi, Any words of wisdom would be welcome.
    In the process of migrating to a new host, I have lost access to a password protected directory, which holds an in progress version of my website. When I try to access through browser the login screen comes up, but will not accept my - or any of the other logins and passwords. Any advice appreciated
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Have you tried resetting the password for it?
     
  3. piratekes

    piratekes Member

    Joined:
    Jun 19, 2016
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Australia
    cPanel Access Level:
    Website Owner
    Thanks for the input,
    It was set by a developer who at present is not contactable, do I just have to put new user/password in, or do I have to find where the old ones were set?
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    In your cPanel > Files section > Directory privacy, you should see the directory thats protected listed there. Select it. On next page you should see that user listed at bottom of page.Just above it, it should say this:

    "To change a user’s password, add that user above with the new password."

    So, you'd just add that same username above that, type in a new password, save, and you're off to the races.

    GL!
     
  5. piratekes

    piratekes Member

    Joined:
    Jun 19, 2016
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Australia
    cPanel Access Level:
    Website Owner
    Hi and thank you
    I have however been through the directories, and can find none that are ticked as protected. when I do as described above the screen I get to just shows a list of folders/directories in the public_html directory
    The text on the page reads:

    Set a password to protect certain directories of your account. When you enable this feature, a user that tries to open a protected folder will be prompted to enter a username and password before they can access your content. For more information, read our documentation.

    When I select a folder/directory from that screen,
    the only text on the page is:

    Security Settings

    When a user attempts to access the protected directory through a browser, the site will prompt them to enter a username and password. The name that you choose for the protected directory will also display.
    Cheers PK
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Select the folder where your password protected stage site is and set a new password. Are you able to do that?
     
  7. piratekes

    piratekes Member

    Joined:
    Jun 19, 2016
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Australia
    cPanel Access Level:
    Website Owner
    Hi
    yes i did that but I could still not get access to the new site from a browser.
    Cheers PK
     
  8. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    After you set the new password, does that same directory, show up as being password protected then?
     
  9. piratekes

    piratekes Member

    Joined:
    Jun 19, 2016
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Australia
    cPanel Access Level:
    Website Owner
    Only when I select (open) that directory, there nothing in the directory listing that shows it is protected.
    When I select it - it then shows that user name with the option to delete or change password.
    that attached is the login that comes up through the browser.
     

    Attached Files:

  10. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    There wouldn't be anything actually in the directory noting its password protected.

    There should also be an option at top of page you can uncheck that says:

    "Password protect this directory."

    Which should remove or add the protection to the directory. If you uncheck that and save, can you access the directory properly?
     
  11. piratekes

    piratekes Member

    Joined:
    Jun 19, 2016
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Australia
    cPanel Access Level:
    Website Owner
    Thank you - I have just been through it again using the save button under the directory name (rather than user name) and I am in!
    Thanks for your assistance
     
    Infopro likes this.
Loading...

Share This Page