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!

cPanel login redirect loop

Discussion in 'General Discussion' started by Justin Emmons, Jun 21, 2016.

  1. Justin Emmons

    Justin Emmons Registered

    Joined:
    Jun 21, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Santa Ana
    cPanel Access Level:
    Root Administrator
    I am unable to login on my CPanel. I get a successful login message, and then it loops back to the login page each time. Everything was fine before I rebuilt to Apache 2.4.

    https://www.(domain).com:2083
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Do you notice any error messages in /usr/local/cpanel/logs/error_log or /usr/local/cpanel/logs/login_log when this happens?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Justin Emmons

    Justin Emmons Registered

    Joined:
    Jun 21, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Santa Ana
    cPanel Access Level:
    Root Administrator
    /usr/local/cpanel/logs/login_log shows the following:

    "POST /login/?login_only=1 HTTP/1.1" FAILED LOGIN whostmgrd: login attempt to whm by a non-reseller/root
    DEFERRED LOGIN cpaneld: switchuser: uid or gid passed user switch is less than 99
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    The error message suggests the UID or GID for one of your users is possibly below "99". Could you search the /etc/passwd and /etc/shadow files to see if the user you are logging in as, or any user for that matter, utilizes a low numbered UID/GID? Here's the commands to use:

    Code:
    grep $username /etc/passwd
    grep $username /etc/shadow
    Or, view the full /etc/passwd and /etc/shadow files with the "cat" command to find the offending account.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Justin Emmons

    Justin Emmons Registered

    Joined:
    Jun 21, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Santa Ana
    cPanel Access Level:
    Root Administrator
    $username:x:501:48::/home/$username:/bin/bash

    The GID needs to be above 99? Does that mean it would have access to anything set to or below 99?
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    The "48" GID alone does not grant root privileges to a user. You can review the following FAQ entry for additional information about how cPanel assigns UID and GID numbers:

    Which UID and GID values are assigned to accounts

    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