Admin-Ahead Community
Linux => Control Panels => cPanel => Topic started by: aneeshs on April 29, 2017, 07:06:31 pm
-
While trying to access the WHM login page via browser, if you get an error "HTTP error 401. You do not have permission to access this page" and the error log (/usr/local/cpanel/logs/error_log) is showing an error "Dropping connection from (IP) because of tcp_wrappers at cpsrvd.pl line 3552", perform the below modifications to resolve the issue:
- Check /etc/hosts.allow
vi /etc/hosts.allow
- Add the below lines:
cpaneld: ALL
whostmgrd: ALL
webmaild: ALL
- Check /etc/hosts.deny
vi /etc/hosts.deny
- Add # to the below lines:
cpaneld: ALL
whostmgrd: ALL
webmaild: ALL
If you are unable to edit /etc/hosts.allow or /etc/hosts.deny, check the attribute and remove the 'a' and 'i' attributes:
# lsattr /etc/hosts.deny /etc/hosts.allow
----ia-------e- /etc/hosts.deny
----ia-------e- /etc/hosts.allow
# chattr -ia /etc/hosts.deny /etc/hosts.allow
Now you will be able to edit /etc/hosts.allow or /etc/hosts.deny and do the modification.