{"id":1643,"date":"2011-10-11T11:57:03","date_gmt":"2011-10-11T16:57:03","guid":{"rendered":"http:\/\/icesquare.com\/wordpress\/?p=1643"},"modified":"2012-08-20T13:34:22","modified_gmt":"2012-08-20T18:34:22","slug":"set-up-pure-ftpd-server-with-virtual-user-on-fedora-linux","status":"publish","type":"post","link":"https:\/\/icesquare.com\/wordpress\/set-up-pure-ftpd-server-with-virtual-user-on-fedora-linux\/","title":{"rendered":"How to Set up a Pure-FTPd Server with Virtual User on Fedora"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1645\" data-permalink=\"https:\/\/icesquare.com\/wordpress\/set-up-pure-ftpd-server-with-virtual-user-on-fedora-linux\/pure-ftpd\/#main\" data-orig-file=\"https:\/\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/10\/pure-ftpd.png\" data-orig-size=\"224,64\" data-comments-opened=\"1\" data-image-title=\"Pure-FTPd\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/10\/pure-ftpd.png\" src=\"\/wordpress\/wp-content\/uploads\/2011\/10\/pure-ftpd.png\" alt=\"\" title=\"Pure-FTPd\" width=\"224\" height=\"64\" class=\"alignleft size-full wp-image-1645\" \/><\/p>\n<p>This tutorial is for Fedora Linux. If you are looking for setting up Pure-FTPd on FreeBSD, click <a href=\"\/wordpress\/set-up-pure-ftpd-server-with-virtual-user-on-freebs\/\" target=\"_blank\">here<\/a>.<\/p>\n<p>My client likes to send me a huge data file (More than 10GB after compressed). Since I don&#8217;t care about the security during the transfer, I decide to go with the old school technology: FTP.<\/p>\n<p>Basically, I need to set up a FTP server with virtual user. In the other words, the log in used by the FTP server has nothing to do with my system login, and I can easily disable that at any time.<\/p>\n<p>0.) Make sure port 21 is opened. You can update this setting in the Fedora Firewall settings.<\/p>\n<p>1.) Install Pure-FTPd<\/p>\n<pre>\r\nsudo yum install pure-ftpd -y\r\n<\/pre>\n<p>2.) Create a user for Pure-FTPd, here I simply call it <strong>ftpuser<\/strong>.<\/p>\n<pre>\r\nsudo adduser ftpuser\r\n<\/pre>\n<p>3.) Let say, we want to create a user called guest to access the ftp server. guest is a virtual user, and its virtual home is in \/home\/ftpuser\/guest<\/p>\n<pre>\r\nsudo mkdir \/home\/ftpuser\/guest\r\nsudo chown -R ftpuser:ftpuser  \/home\/ftpuser\/\r\nsudo chmod a+rw -R \/home\/ftpuser\/\r\n<\/pre>\n<p>4.) Edit the Pure-FTPd configuration<\/p>\n<pre>\r\nsudo nano \/etc\/pure-ftpd\/pure-ftpd.conf\r\n<\/pre>\n<p>5.) Uncomment the following:<\/p>\n<pre>\r\nPureDB                        \/etc\/pure-ftpd\/pureftpd.pdb\r\n<\/pre>\n<p>6.) Start the Pure-FTPd<\/p>\n<pre>\r\n\/etc\/init.d\/pure-ftpd start\r\n<\/pre>\n<p>If you want to start Pure-FTPd automatically, include this line in <strong>\/etc\/rc.local<\/strong><\/p>\n<p>7.) Create a user and add it into the Pure-FTPd database:<\/p>\n<pre>\r\nsudo pure-pw useradd guest -u ftpuser -d \/home\/ftpuser\/guest\/\r\n<\/pre>\n<p>You can also set the quota and maximum space:<br \/>\n1000 files, 100MB quota<\/p>\n<pre>\r\npure-pw useradd guest -u ftpuser -d \/home\/ftpuser\/guest\/ -n 1000 -N 100 \r\n<\/pre>\n<p>8.) Set the password in case you forget the enter the password:<\/p>\n<pre>\r\npure-pw passwd guest\r\n<\/pre>\n<p>9.) Update the database:<\/p>\n<pre>\r\npure-pw mkdb\r\n<\/pre>\n<p>That&#8217;s it!<\/p>\n<p>&#8211;Derrick<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial is for Fedora Linux. If you are looking for setting up Pure-FTPd on FreeBSD, click here. My client likes to send me a huge data file (More than <a class=\"more-link\" href=\"https:\/\/icesquare.com\/wordpress\/set-up-pure-ftpd-server-with-virtual-user-on-fedora-linux\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[94,144,6,69],"tags":[49,97,48,128],"class_list":["post-1643","post","type-post","status-publish","format-standard","hentry","category-computer-problems-computer-help-pc-support","category-sever-problem","category-technology","category-troubleshooting-technology","tag-fedora","tag-ftp","tag-linux","tag-pure-ftpd"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p1sqzr-qv","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1651,"url":"https:\/\/icesquare.com\/wordpress\/set-up-pure-ftpd-server-with-virtual-user-on-freebs\/","url_meta":{"origin":1643,"position":0},"title":"How to Set up a Pure-FTPd Server with Virtual User on FreeBSD","author":"Derrick","date":"October 11, 2011","format":false,"excerpt":"This tutorial is for FreeBSD. If you are looking for setting up Pure-FTPd on Linux, click here. My client likes to send me a huge data file (More than 10GB after compressed). Since I don't care about the security during the transfer, I decide to go with the old school\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"\/wordpress\/wp-content\/uploads\/2011\/10\/pure-ftpd.png","width":350,"height":200},"classes":[]},{"id":505,"url":"https:\/\/icesquare.com\/wordpress\/solvedfedora-repository-error-errno-14-pycurl-error-6\/","url_meta":{"origin":1643,"position":1},"title":"[Solved]Fedora Linux Repository Error ([Errno 14] PYCURL ERROR 6)","author":"Derrick","date":"January 4, 2010","format":false,"excerpt":"I was having trouble to update my Fedora Linux system by running sudo yum update. sudo yum update Loaded plugins: presto, refresh-packagekit Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again sometimes I see different sets of error: http:\/\/download.fedoraproject.org\/pu...ta\/repomd.xml: [Errno 14] PYCURL ERROR\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"Fedoraproject.org has downed.","src":"\/wordpress\/wp-content\/uploads\/2010\/01\/Fedora-Down-300x217.png","width":350,"height":200},"classes":[]},{"id":1469,"url":"https:\/\/icesquare.com\/wordpress\/upgrade-fedora-linux-using-command-line\/","url_meta":{"origin":1643,"position":2},"title":"Upgrade Fedora Linux Using Command Line","author":"Derrick","date":"June 28, 2011","format":false,"excerpt":"Recently, I decide to upgrade all of the Fedora Linux servers. As of today, the latest version is Fedora 15. As for my servers, they are in between Fedora 11 and 14. In the other words, I will need to upgrade some machine from 11 all the way to 15.\u2026","rel":"","context":"In &quot;Server Problems&quot;","block_context":{"text":"Server Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/sever-problem\/"},"img":{"alt_text":"","src":"\/wordpress\/wp-content\/uploads\/2011\/08\/fedora-logo-150x150.png","width":350,"height":200},"classes":[]},{"id":1919,"url":"https:\/\/icesquare.com\/wordpress\/fedora-16-etc-rc-local\/","url_meta":{"origin":1643,"position":3},"title":"[Solved]Fedora 16 \/etc\/rc.local is missing","author":"Derrick","date":"November 29, 2011","format":false,"excerpt":"Finally, I got a chance to try the new Fedora 16. The overall experience is pretty good, except that it comes with some troublesomes. I guess it is a bonus feature to test your troubleshooting skills. No problem, those are piece of cake to me. After trying for about 15\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"\/wordpress\/wp-content\/uploads\/2011\/08\/fedora-logo-150x150.png","width":350,"height":200},"classes":[]},{"id":305,"url":"https:\/\/icesquare.com\/wordpress\/installing-xampp-on-fedora-12-64-bit\/","url_meta":{"origin":1643,"position":4},"title":"Installing XAMPP on Fedora 12 64-bit system","author":"Derrick","date":"December 8, 2009","format":false,"excerpt":"I was installing XAMPP on Fedora 11 64-bit today, and I saw this famous message: sudo \/opt\/lampp\/lampp startapache XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system. The message is very clear that XAMPP doesn't like 32-bit system. So, we\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1511,"url":"https:\/\/icesquare.com\/wordpress\/how-to-clean-up-the-dmesg-message\/","url_meta":{"origin":1643,"position":5},"title":"How to clean up the dmesg message","author":"Derrick","date":"August 24, 2011","format":false,"excerpt":"Recently, I found that my dmesg log are filled of junk. Or I should say it contains lots of errors and complains that I already fix. However, I don't want to reboot the machine to get rid of these error messages. How can I do it? The solution is very\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/1643","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1643"}],"version-history":[{"count":10,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/1643\/revisions"}],"predecessor-version":[{"id":2970,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/1643\/revisions\/2970"}],"wp:attachment":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}