{"id":554,"date":"2021-07-23T12:32:46","date_gmt":"2021-07-23T12:32:46","guid":{"rendered":"https:\/\/ssdsunucum.com\/blog\/how-to-deny-ftp-access\/"},"modified":"2021-07-23T12:32:46","modified_gmt":"2021-07-23T12:32:46","slug":"how-to-deny-ftp-access","status":"publish","type":"post","link":"https:\/\/ssdsunucum.com\/blog\/how-to-deny-ftp-access\/","title":{"rendered":"How to Deny FTP Access"},"content":{"rendered":"<\/p>\n<div class=\"col-md-9\">\n<div class=\"flex-column flex-md-row article-header\"><\/div>\n<hr>\n<h2 id=\"overview\">Overview<\/h2>\n<p>If the <code>\/etc\/ftpusers<\/code> file exists on your server, cPanel &#038; WHM denies FTP access to all of the cPanel users in that file.<\/p>\n<div class=\"callout callout-warning\">\n<div class=\"callout-heading\">Important:<\/div>\n<div class=\"callout-content\">\n<p>If the <code>\/etc\/ftpusers<\/code> file does <strong>not<\/strong> exist on your server, you <strong>must<\/strong> create it before you can use it to block FTP access.<\/p>\n<\/p><\/div>\n<\/div>\n<h2 id=\"the-etc-ftpusers-file\">The \/etc\/ftpusers file<\/h2>\n<p>The <code>\/etc\/ftpusers<\/code> file lists of all of the cPanel users for whom to deny FTP access. To deny FTP access to a user, add the username to the file, with one username per line.<br \/>\nFor example, an <code>\/etc\/ftpusers<\/code> file that blocks access to the <code>user1<\/code>, <code>user2<\/code>, and <code>user3<\/code> users would appear similar to the following example:<\/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\">user1\nuser2\nuser3<\/code><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/div>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<ul>\n<li>Do <strong>not<\/strong> include additional information in the usernames (for example, the domain name).<\/li>\n<li>To deny FTP access to an FTP user, block the cPanel account that owns that FTP user.<\/li>\n<\/ul><\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Overview If the \/etc\/ftpusers file exists on your server, cPanel &#038; WHM denies FTP access to all of the cPanel users in that file. Important: If the \/etc\/ftpusers file does not exist on your server, you must create it before you can use it to block FTP access. The \/etc\/ftpusers file The \/etc\/ftpusers file lists &hellip;<\/p>\n","protected":false},"author":1,"featured_media":555,"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\/554"}],"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=554"}],"version-history":[{"count":0,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/554\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media\/555"}],"wp:attachment":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media?parent=554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/categories?post=554"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/tags?post=554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}