Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

WHM Access- Error 401

Discussion in 'General Discussion' started by Adegboye, Mar 28, 2015.

  1. Adegboye

    Adegboye Registered

    Joined:
    Mar 28, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Nigeria
    cPanel Access Level:
    Website Owner
    Hi,

    I mistakenly locked myself out of my whm. I have been trying to edit the /etc/hosts.allow but I seems to have been unlucky so far.

    I was able to call up the /etc/hosts.allow using vim .
    but immediately i edited the column for the IP, i find that it is diffcult for me to save it.

    I have tried this about three times.

    Any one with idea how to resolve this?
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,664
    Likes Received:
    68
    Trophy Points:
    203
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    using VIM
    vi /etc/hosts.allow
    option i (edit the line)
    esc
    shift zz

    using nano
    nano /etc/hosts.allow
    edit the line
    cntrl x y
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    LostNerd likes this.
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,617
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Were you able to update the /etc/hosts.allow file using the instructions in the previous post? Note that you can search for a term such as "how to use vi" on a search engine and it should yield several helpful results.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice