{"id":556,"date":"2021-07-23T12:32:49","date_gmt":"2021-07-23T12:32:49","guid":{"rendered":"https:\/\/ssdsunucum.com\/blog\/how-to-edit-ftp-server-configuration-from-the-command-line\/"},"modified":"2021-07-23T12:32:49","modified_gmt":"2021-07-23T12:32:49","slug":"how-to-edit-ftp-server-configuration-from-the-command-line","status":"publish","type":"post","link":"https:\/\/ssdsunucum.com\/blog\/how-to-edit-ftp-server-configuration-from-the-command-line\/","title":{"rendered":"How to Edit FTP Server Configuration from the Command Line"},"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>This document explains how to manually edit the FTP server\u2019s configuration from the command line.<\/p>\n<h2 id=\"determine-your-ftp-server\">Determine your FTP server<\/h2>\n<p>To determine which FTP server your server uses, log in to your server via SSH as the root user and run the following command:<\/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-GO\" data-lang=\"GO\"><span style=\"color:#a6e22e\">grep<\/span> <span style=\"color:#a6e22e\">ftpserver<\/span> <span style=\"color:#f92672\">\/<\/span><span style=\"color:#66d9ef\">var<\/span><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">cpanel<\/span><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">cpanel<\/span>.<span style=\"color:#a6e22e\">config<\/span><\/code><\/pre>\n<\/div>\n<p>You will receive one of the following two results:<\/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-GO\" data-lang=\"GO\"><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><\/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-GO\" data-lang=\"GO\"><span style=\"color:#a6e22e\">ftpserver<\/span>=<span style=\"color:#a6e22e\">proftpd<\/span>\n<span style=\"color:#a6e22e\">ftpserver<\/span>=<span style=\"color:#a6e22e\">pure<\/span><span style=\"color:#f92672\">-<\/span><span style=\"color:#a6e22e\">ftpd<\/span><\/code><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<\/div>\n<p>Follow the instructions below that correspond to your FTP server type.<\/p>\n<h2 id=\"pure-ftp-configuration\">Pure-FTP configuration<\/h2>\n<p>To edit the FTP configuration for Pure-FTP, perform the following steps:<\/p>\n<ol>\n<li>Use your preferred text editor to create or edit the <code>\/var\/cpanel\/conf\/pureftpd\/local<\/code> file.<\/li>\n<li>Enter your changes in the local file. For example, to set the <code>ForcePassiveIP<\/code> setting to the IP address, enter the following in the local file:\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-GO\" data-lang=\"GO\"><span style=\"color:#a6e22e\">ForcePassiveIP<\/span>: <span style=\"color:#ae81ff\">203.0.113.0<\/span><\/code><\/pre>\n<\/div>\n<ul>\n<li>To clear that value, change the local file to use the following setting:\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-GO\" data-lang=\"GO\"><span style=\"color:#a6e22e\">ForcePassiveIP<\/span>: <span style=\"color:#960050;background-color:#1e0010\">~<\/span><\/code><\/pre>\n<\/div>\n<\/li>\n<\/ul>\n<\/li>\n<li>To apply your changes, perform a force update of FTP with the following command:\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-GO\" data-lang=\"GO\"><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">scripts<\/span><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">setupftpserver<\/span> <span style=\"color:#a6e22e\">pure<\/span><span style=\"color:#f92672\">-<\/span><span style=\"color:#a6e22e\">ftpd<\/span> <span style=\"color:#f92672\">--<\/span><span style=\"color:#a6e22e\">force<\/span><\/code><\/pre>\n<\/div>\n<\/li>\n<\/ol>\n<h2 id=\"proftp-configuration\">ProFTP Configuration<\/h2>\n<p>To edit the FTP configuration for ProFTP, perform the following steps:<\/p>\n<ol>\n<li>Use your preferred text editor to create or edit the <code>\/var\/cpanel\/conf\/proftpd\/local<\/code> file.<\/li>\n<li>Enter your changes in the local file.<\/li>\n<li>To apply your changes, perform a force update of FTP with the following command:\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-GO\" data-lang=\"GO\"><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">scripts<\/span><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">setupftpserver<\/span> <span style=\"color:#a6e22e\">proftpd<\/span> <span style=\"color:#f92672\">--<\/span><span style=\"color:#a6e22e\">force<\/span><\/code><\/pre>\n<\/div>\n<\/li>\n<\/ol><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Overview This document explains how to manually edit the FTP server\u2019s configuration from the command line. Determine your FTP server To determine which FTP server your server uses, log in to your server via SSH as the root user and run the following command: grep ftpserver \/var\/cpanel\/cpanel.config You will receive one of the following two &hellip;<\/p>\n","protected":false},"author":1,"featured_media":557,"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\/556"}],"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=556"}],"version-history":[{"count":0,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/556\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media\/557"}],"wp:attachment":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media?parent=556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/categories?post=556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/tags?post=556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}