{"id":211,"date":"2021-07-23T12:19:25","date_gmt":"2021-07-23T12:19:25","guid":{"rendered":"https:\/\/ssdsunucum.com\/blog\/what-happens-when-you-suspend-an-account\/"},"modified":"2021-07-23T12:19:25","modified_gmt":"2021-07-23T12:19:25","slug":"what-happens-when-you-suspend-an-account","status":"publish","type":"post","link":"https:\/\/ssdsunucum.com\/blog\/what-happens-when-you-suspend-an-account\/","title":{"rendered":"What Happens When You Suspend an Account"},"content":{"rendered":"<\/p>\n<div class=\"col-md-9\">\n<div class=\"flex-column flex-md-row article-header\">\n<div id=\"versioned-article-header\">\n<p class=\"valid-version-info\"><em>Valid for versions 94 through the latest version<\/em><\/p>\n<\/div>\n<div id=\"version-select-group\" aria-label=\"select versions\">\n<h4>Version:<\/h4>\n<h4>82<\/h4>\n<h4>94<\/h4>\n<\/div><\/div>\n<hr>\n<h2 id=\"overview\">Overview<\/h2>\n<p>This document describes the actions that the system performs when you suspend an account.<\/p>\n<div class=\"callout callout-warning\">\n<div class=\"callout-heading\">Important:<\/div>\n<div class=\"callout-content\">\n        Suspension and bandwidth limiting are two separate functions. For more information, read our Account Suspension Versus Bandwidth Limiting and Account Termination documentation.\n    <\/div>\n<\/div>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>To suspend or unsuspend an account, use WHM\u2019s <em>Manage Account Suspension<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; Account Functions &gt;&gt; Manage Account Suspension<\/em>).<\/p>\n<\/p><\/div>\n<\/div>\n<h2 id=\"effects-of-suspension\">Effects of suspension<\/h2>\n<p>The following table describes the actions that the system performs when you suspend an account and the limitations that result from these actions:<\/p>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>In the following section, <code>user<\/code> represents the account\u2019s username.<\/p>\n<\/p><\/div>\n<\/div>\n<h2 id=\"adds-suspended-flags\">Adds suspended flags<\/h2>\n<p>The system adds the <code>SUSPENDED=1<\/code> and <code>SUSPENDTIME=epochdate<\/code> flags to the account\u2019s <code>\/var\/cpanel\/users\/cpuser<\/code> file, where <code>epochdate<\/code> represents the Unix time at which you suspended the account.<\/p>\n<p>As a result, the appropriate WHM interfaces sets the account to <code>suspended<\/code> and list the reason for suspension.<\/p>\n<h3 id=\"locks-reseller-control\">Locks reseller control<\/h3>\n<p>If you select the <em>Prevent resellers from unsuspending<\/em> checkbox when you suspend the account, the system touches the <code>\/var\/cpanel\/suspended\/user.lock<\/code> file.<\/p>\n<p>As a result, the appropriate WHM interfaces sets the account to locked. The system does <strong>not<\/strong> allow resellers to unsuspend the account.<\/p>\n<div class=\"callout callout-danger\">\n<div class=\"callout-heading\">Warning:<\/div>\n<div class=\"callout-content\">\n<p>If you select this option when you suspend an account, the system <strong>only<\/strong> allows the <code>root<\/code> user to unsuspend the account.<\/p>\n<\/p><\/div>\n<\/div>\n<h3 id=\"stops-all-user-processes\">Stops all user processes<\/h3>\n<p>The system stops all of the processes that that account owns.<\/p>\n<p>As a result, the system stops any functions that the cPanel account currently performs as the logged-in user. The following list includes some of the effects that this action may cause:<\/p>\n<ul>\n<li>\n<p>The system forcibly logs the user out of a current session.<\/p>\n<\/li>\n<li>\n<p>The system stops the user\u2019s cron jobs.<\/p>\n<\/li>\n<\/ul>\n<h3 id=\"locks-mailing-lists\">Locks mailing lists<\/h3>\n<p>The system creates a <code>suspended.lists<\/code> directory in Mailman and moves the files for each of the account\u2019s mailing lists to this directory.<\/p>\n<p>As a result, the account\u2019s mailing lists no longer function.<\/p>\n<h3 id=\"locks-web-disk\">Locks Web Disk<\/h3>\n<p>The system adds a <code>*LOCKED*<\/code> string to the <code>\/home\/homedir\/etc\/webdav\/shadow<\/code> password files for all account\u2019s Web Desk users. In this example, <code>homedir<\/code> is the cPanel account\u2019s home directory name.<\/p>\n<p>As a result, the account\u2019s Web Disk accounts no longer function.<\/p>\n<h3 id=\"locks-email-passwords\">Locks email passwords<\/h3>\n<p>The system adds a <code>*LOCKED*<\/code> string to the <code>\/home\/homedir\/etc\/domain\/shadow<\/code> password files for all of the account\u2019s email users. In this example, <code>homedir<\/code> is the cPanel account\u2019s home directory name and <code>domain<\/code> is the email users\u2019 domain.<\/p>\n<p>As a result, the account\u2019s email users <strong>cannot<\/strong> download mail.<\/p>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>The system continues to deliver mail to the account.<\/p>\n<\/p><\/div>\n<\/div>\n<h3 id=\"incoming-and-outgoing-email\">Incoming and outgoing email<\/h3>\n<p>The system no longer allows the account\u2019s users to send email through the mail server. Also, the mail server will force all mail currently in the outbound message queue from that account\u2019s users to fail. As a result, the account\u2019s email users <strong>cannot<\/strong> send mail, and any mail they had in the mail server queue <strong>will<\/strong> fail.<\/p>\n<h4 id=\"email-delivery-behavior\">Email Delivery Behavior<\/h4>\n<p>When the server delivers an email message, Exim evaluates and executes code supplied by the cPanel account. If the cPanel account is suspended, you may not want the system to process user-supplied code in filters, forwarders, pipes, and redirection lists. You may choose from several configuration options to determine how the system processes email deliveries for suspended accounts.<\/p>\n<p>You can configure what action EXIM should perform when the server receives an email message for a suspended account in WHM\u2019s <em>Exim Configuration Manager<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; Service Configuration &gt;&gt; Exim Configuration Manager<\/em>). You can use one of the following settings:<\/p>\n<table>\n<thead>\n<tr>\n<th>\n<div style=\"width:270px\">Setting<\/div>\n<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><em>Deliver messages normally<\/em><\/td>\n<td>This setting accepts the email message and delivers it via normal delivery logic. This includes any forwarders, or piped scripts that the account user may have set up. This option is potentially risky, as these handlers could be used by a suspended user to retain access to account resources.<\/td>\n<\/tr>\n<tr>\n<td><em>Accept and discard messages<\/em><\/td>\n<td>This setting accepts the email message, but immediately discards it, and ceases further processing.<\/td>\n<\/tr>\n<tr>\n<td><em>Reject messages at SMTP time<\/em><\/td>\n<td>This setting rejects the email message, and returns a permanent error code to the sending mail server. Compliant mail servers will stop any further attempts to deliver the message. <\/p>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n        This setting\u2019s behavior is the same as setting the <em>Receiving Incoming Mail<\/em> option to <em>Suspend<\/em> for an email address in cPanel\u2019s <em>Manage Email Accounts<\/em> interface (<em>cPanel &gt;&gt; Home &gt;&gt; Email &gt;&gt; Manage Email Accounts<\/em>).\n    <\/div>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td><em>Accept and queue messages<\/em><\/td>\n<td>This setting accepts the email message and places it in the local Exim queue temporarily. Exim will attempt delivery of the message periodically until the account is unsuspended or the message in the queue expires. By default, Exim reattempts delivery for queued messages for four days and eight hours then notifies the original sender that it could not deliver the message. This is the <strong>default<\/strong> setting.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 id=\"updates-the-apache-configuration-files\">Updates the Apache configuration files<\/h3>\n<p>The system updates Apache\u2019s <code>httpd.conf<\/code> file with a Virtual Host include file for the user.<\/p>\n<ul>\n<li>\n<p>The system creates the include file at the following location: <\/p>\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-perl\" data-lang=\"perl\"><span style=\"color:#e6db74\">\/etc\/<\/span>apache2<span style=\"color:#e6db74\">\/conf.d\/i<\/span>ncludes<span style=\"color:#f92672\">\/<\/span>account_suspensions<span style=\"color:#f92672\">.<\/span>conf<\/code><\/pre>\n<\/div>\n<\/li>\n<li>\n<p>This include file contains a <code>RedirectMatch<\/code> rule that redirects website traffic to the default template for suspended accounts. <\/p>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>Apache <code>httpd.conf<\/code> include files originate from the following lines in Apache\u2019s <code>main.default<\/code> file:<\/p>\n<div class=\"highlight\">\n<div style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\">\n<table style=\"border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block;\">\n<tr>\n<td style=\"vertical-align:top;padding:0;margin:0;border:0;\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">1\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">2\n<\/span><span style=\"margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f\">3\n<\/span><\/code><\/pre>\n<\/td>\n<td style=\"vertical-align:top;padding:0;margin:0;border:0;;width:100%\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\"><span style=\"color:#f92672\">[<\/span>% IF file_test<span style=\"color:#f92672\">(<\/span><span style=\"color:#e6db74\">'f'<\/span>, <span style=\"color:#e6db74\">'\/usr\/local\/apache\/conf\/includes\/account_suspensions.conf'<\/span><span style=\"color:#f92672\">)<\/span> -%<span style=\"color:#f92672\">]<\/span>\nInclude <span style=\"color:#e6db74\">\"\/usr\/local\/apache\/conf\/includes\/account_suspensions.conf\"<\/span>\n<span style=\"color:#f92672\">[<\/span>% END -%<span style=\"color:#f92672\">]<\/span><\/code><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/div><\/div>\n<\/div>\n<\/li>\n<\/ul>\n<p>As a result, visitors cannot access the account\u2019s websites. Instead, a message appears that states the account was suspended.<\/p>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>To edit the message that appears for a suspended account\u2019s sites, use WHM\u2019s <em>Web Template Editor<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; Account Functions &gt;&gt; Web Template Editor<\/em>).<\/p>\n<\/p><\/div>\n<\/div>\n<h3 id=\"locks-the-shadow-password\">Locks the shadow password<\/h3>\n<p>The system uses the <code>passwd -l<\/code> command to lock the account\u2019s <code>\/etc\/shadow<\/code> password file. This command prepends the account\u2019s passwords with two exclamation marks (<code>!!<\/code>).<\/p>\n<p>The following list includes some of the effects that this action causes:<\/p>\n<ul>\n<li>\n<p>The user <strong>cannot<\/strong> log in to their cPanel account.<\/p>\n<\/li>\n<li>\n<p>The account\u2019s database users <strong>cannot<\/strong> log in to their databases.<\/p>\n<\/li>\n<li>\n<p>The suspended account\u2019s password <strong>cannot<\/strong> change.<\/p>\n<\/li>\n<\/ul>\n<h3 id=\"modifies-permissions-of-ftp-directory\">Modifies permissions of ftp directory<\/h3>\n<p>The system modifies the permissions of the user\u2019s <code>public_ftp<\/code> directory to <code>0000<\/code>.<\/p>\n<p>The system then creates the <code>\/etc\/proftpd\/user.suspended<\/code> file and locks the account\u2019s FTP passwords in the <code>\/etc\/proftpd\/passwd.vhosts<\/code> and <code>\/etc\/proftpd\/user<\/code> password files. Finally, the system prepends the account\u2019s FTP passwords with two exclamation marks ( <code>!!<\/code> ).<\/p>\n<p>As a result, The account\u2019s FTP users <strong>cannot<\/strong> log in to the FTP server.<\/p>\n<p>Also, the system <strong>cannot<\/strong> back up the user\u2019s <code>public_ftp<\/code> directory because of the restrictive file permissions.<\/p>\n<h3 id=\"changes-mysql-user-passwords\">Changes MySQL user passwords<\/h3>\n<p>The system changes all of the MySQL users\u2019 passwords. As a result, MySQL users cannot access their databases.<\/p>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>When you suspend a cPanel account, the system will <strong>not<\/strong> suspend any of the account\u2019s Amazon RDS\u2122 remote databases.<\/p>\n<\/p><\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Valid for versions 94 through the latest version Version: 82 94 Overview This document describes the actions that the system performs when you suspend an account. Important: Suspension and bandwidth limiting are two separate functions. For more information, read our Account Suspension Versus Bandwidth Limiting and Account Termination documentation. Note: To suspend or unsuspend an &hellip;<\/p>\n","protected":false},"author":1,"featured_media":212,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/211"}],"collection":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/comments?post=211"}],"version-history":[{"count":0,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/211\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media\/212"}],"wp:attachment":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media?parent=211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/categories?post=211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/tags?post=211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}