"Attempting to drop privileges to root" Error when click on cPanel icon in the "Account Information > List Accounts"

NabiKAZ

Active Member
Jun 18, 2007
31
1
58
I have no problem logging into WHM and cPanel.

But when I click on the cPanel icon through the "Account Information > List Accounts" menu in WHM to enter the user panel. I get the following error:
Code:
Internal Server Error
500

Error ID 12335656f958b
cpsrvd Server at x.x.x.x
I leave the log file and other information below.

Code:
```
# tail -f /usr/local/cpanel/logs/error_log
[2022-08-31 01:27:32 +0430] die [whostmgrd] Attempting to drop privileges to root. at /usr/local/cpanel/Cpanel/AccessIds/ReducedPrivileges.pm line 135.
        Cpanel::AccessIds::ReducedPrivileges::_prevent_dropping_to_root(0, 0) called at /usr/local/cpanel/Cpanel/AccessIds/ReducedPrivileges.pm line 73
        Cpanel::AccessIds::ReducedPrivileges::call_as_user(CODE(0x2a9f550), "root") called at /usr/local/cpanel/Cpanel/Server.pm line 1604
        Cpanel::Server::update_lastlogin(Cpanel::Server=HASH(0x28322a0), "root") called at /usr/local/cpanel/Cpanel/Server.pm line 1565
        Cpanel::Server::newsession(Cpanel::Server=HASH(0x28322a0), __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, HASH(0x2a928d0), __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, ...) called at cpsrvd.pl line 4397
        cpanel::cpsrvd::handle_auth_transfer(HASH(0x164a120)) called at cpsrvd.pl line 1806
        cpanel::cpsrvd::handle_one_connection(6) called at cpsrvd.pl line 1137
        cpanel::cpsrvd::script() called at cpsrvd.pl line 436
cpsrvd 12335656f958b: exit level [die] [pid=434965] (Attempting to drop privileges to root.)

[2022-08-31 01:27:32 +0430] info [whostmgrd] Internal Server Error: "POST /xfercpanel HTTP/1.1" 500 Error ID 12335656f958b
```
Code:
# stat /usr/local/cpanel/Cpanel/AccessIds/ReducedPrivileges.pm
  File: ‘/usr/local/cpanel/Cpanel/AccessIds/ReducedPrivileges.pm’
  Size: 5062            Blocks: 16         IO Block: 4096   regular file
Device: 802h/2050d      Inode: 4208526     Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2022-08-31 01:21:19.069937025 +0430
Modify: 2022-04-11 04:13:25.675455991 +0430
Change: 2022-08-31 01:20:49.035181766 +0430
Birth: -
Code:
# stat /usr/local/cpanel/Cpanel/Server.pm
stat: cannot stat ‘/usr/local/cpanel/Cpanel/Server.pm’: No such file or directory
Code:
# df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        7.8G     0  7.8G   0% /dev
tmpfs           7.8G     0  7.8G   0% /dev/shm
tmpfs           7.8G   26M  7.8G   1% /run
tmpfs           7.8G     0  7.8G   0% /sys/fs/cgroup
/dev/sda2       191G  173G  8.1G  96% /
none            7.8G  6.5M  7.8G   1% /var/lve/dbgovernor-shm
/dev/sda3       2.0G   40M  1.8G   3% /tmp
/dev/sda1       190M  141M   35M  81% /boot
tmpfs           1.6G     0  1.6G   0% /run/user/0
Code:
# df -i
Filesystem       Inodes   IUsed   IFree IUse% Mounted on
devtmpfs        2030524     445 2030079    1% /dev
tmpfs           2033195       1 2033194    1% /dev/shm
tmpfs           2033195     768 2032427    1% /run
tmpfs           2033195      18 2033177    1% /sys/fs/cgroup
/dev/sda2      12705792 2950092 9755700   24% /
none            2033195       2 2033193    1% /var/lve/dbgovernor-shm
/dev/sda3        131072    5871  125201    5% /tmp
/dev/sda1         51200     343   50857    1% /boot
tmpfs           2033195       1 2033194    1% /run/user/0
Code:
# cat /etc/redhat-release
CloudLinux release 7.9 (Boris Yegorov)
Code:
# uname -ra
Linux ...  3.10.0-962.3.2.lve1.5.70.el7.x86_64 #1 SMP Mon May 30 08:45:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Code:
# /usr/local/cpanel/cpanel -V
104.0 (build 10)
And also I tried update with this but don't effective:

Code:
/scripts/upcp --force
 
Last edited by a moderator:

NabiKAZ

Active Member
Jun 18, 2007
31
1
58
@NabiKAZ - usually when this happens, there is some type of permission or ownership conflict on the account. Could you open a ticket with our team so we could investigate this directly?
This problem is not related to a specific account. There is this problem on all accounts and there is no access to the user's CPanel through WHM.