SOLVED Account suspension is broken in cPanel 66

Jul 13, 2017
14
4
3
The Netherlands
cPanel Access Level
Root Administrator
Greetings,

I've run into another issue with WHM/cPanel v66.0.6.
I've suspended multiple accounts, but only the last suspension remains active.

When i run this code:
Code:
cat /usr/local/apache/conf/includes/account_suspensions.conf
I can see that only the last suspended user is in this file.
Code:
# This include file is automatically generated by
# /usr/local/cpanel/scripts/generate_account_suspension_include
# Any manual edits inside this file will be lost whenever account
# suspensions are updated.

RewriteEngine On

<Directory "/home/$USER">
    AllowOverride none
    RedirectMatch ^/(?!cgi-sys/suspendedpage.cgi).* /cgi-sys/suspendedpage.cgi
</Directory>
How to fix this?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,243
463
Hello @Leslie de Groot,

I've reproduced this issue and will update this thread with an internal case number shortly. For now, here are the commands you can use to populate /usr/local/apache/conf/includes/account_suspensions.conf with the correct entries:

Code:
/usr/local/cpanel/scripts/generate_account_suspension_include --update
/scripts/restartsrv_httpd
Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,243
463
Hello,

Internal case CPANEL-14799 is now open to address an issue where suspending or unsuspending an account via "WHM >> Manage Account Suspension" or with the suspendacct WHM API 1 function wipes entries for previously suspended accounts from the /usr/local/apache/conf/includes/account_suspensions.conf file. The following commands are available as a temporary workaround:

Code:
/usr/local/cpanel/scripts/generate_account_suspension_include --update
/scripts/restartsrv_httpd
I'll monitor the case and update this thread with more information as it becomes available.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,243
463
Hello,

This is fixed in cPanel 66.0.7:

Fixed case CPANEL-14799: Ensure suspending multiple accounts works.

The updated build is now available in the Edge build tier, and should reach the Current tier soon. The full cPanel 66 Change Log is available at:

66 Change Log - Change Logs - cPanel Documentation

Thank you.
 
Jul 13, 2017
14
4
3
The Netherlands
cPanel Access Level
Root Administrator
  • Like
Reactions: cPanelMichael