0611.html 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Install FTP Server on Linux (Debian/Ubuntu)</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="How To,Tutorial,i12bretro,FTP,ProFTPD,Linux,Debian,Ubuntu,Server,File Transfer Protocol">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Install FTP Server on Linux (Debian/Ubuntu)">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  12. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  13. <script type="text/javascript" src="includes/js/steps.js"></script>
  14. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  15. </head>
  16. <body>
  17. <div id="gridContainer">
  18. <div class="topMargin"></div>
  19. <div id="listName" class="topMargin">
  20. <h1>Install FTP Server on Linux (Debian/Ubuntu)</h1>
  21. </div>
  22. <div></div>
  23. <div id="content">
  24. <h2>Installing the FTP Server</h2>
  25. <ol>
  26. <li>Log into the Linux device</li>
  27. <li>Run the following commands in terminal
  28. <div class="codeBlock"># update software repositories<br />
  29. sudo apt update<br />
  30. # install available software updates<br />
  31. sudo apt upgrade<br />
  32. # install proftpd<br />
  33. sudo apt install proftpd -y<br />
  34. # start proftpd service<br />
  35. sudo systemctl enable proftpd --now</div>
  36. </li>
  37. </ol>
  38. <h2>Configuring the FTP Server</h2>
  39. <p>In this example we will be allowing FTP to the /var/www directory to alter web server files</p>
  40. <ol>
  41. <li>Continue with the following commands
  42. <div class="codeBlock"># add current user to www-data group<br />
  43. sudo usermod -aG www-data $USER<br />
  44. # re-authenticate the user for the new group to take effect<br />
  45. su $USER<br />
  46. # list the users groups<br />
  47. # www-data should be listed<br />
  48. id<br />
  49. # change owner of /var/www to the www-data group<br />
  50. sudo chown -R www-data:www-data /var/www<br />
  51. # change permissions recursively<br />
  52. sudo chmod -R ug+rw /var/www</div>
  53. </li>
  54. </ol>
  55. <h2>Testing the FTP Server</h2>
  56. <ol>
  57. <li>Download a FTP client, in this tutorial we&#39;ll be using FileZilla FTP Client <a href="https://filezilla-project.org/download.php" target="_blank">Download</a></li>
  58. <li>Install FileZilla FTP Client</li>
  59. <li>Input the Linux devices IP address or DNS name and the Linux user&#39;s username and password &gt; Click Quickconnect</li>
  60. <li>Click the / at the top of the right file tree to get to the rootfs</li>
  61. <li>Navigate to /var/www</li>
  62. <li>Create a test file or folder</li>
  63. <li>You now have FTP access to your Linux server using your standard Linux credentials</li>
  64. </ol>
  65. <p>Documentation for ProFTPD: <a href="http://www.proftpd.org/docs/" target="_blank">http://www.proftpd.org/docs/</a></p>
  66. </div>
  67. </div>
  68. </body>
  69. </html>