<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>vsftpd Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/vsftpd/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Sat, 08 Feb 2020 14:34:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to set up vsftpd on FreeBSD 12?</title>
		<link>https://www.osradar.com/how-to-set-up-vsftpd-on-freebsd-12/</link>
					<comments>https://www.osradar.com/how-to-set-up-vsftpd-on-freebsd-12/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 13 Feb 2020 00:11:00 +0000</pubDate>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[freebsd 12]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[ftp server]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[vsftpd]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=18092</guid>

					<description><![CDATA[<p>An FTP server, although for many it can be a bit old-fashioned, is quite useful. Especially in computer networks where you need to share files internally. Or even if we are in a house with several computers, it would also be useful. Best of all, it is still easy to set up one and more [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-set-up-vsftpd-on-freebsd-12/">How to set up vsftpd on FreeBSD 12?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>An FTP server, although for many it can be a bit old-fashioned, is quite useful. Especially in computer networks where you need to share files internally. Or even if we are in a house with several computers, it would also be useful. Best of all, it is still easy to set up one and more on FreeBSD 12.<strong> So in this post, you will learn how to set up <a href="https://security.appspot.com/vsftpd.html" target="_blank" rel="noopener noreferrer">vsftpd</a> on FreeBSD 12.</strong></p>
<h2>Set up vsftpd on FreeBSD 12</h2>
<p>Before starting with this installation, it is convenient to have sudo enabled for your regular user. It is not mandatory, but this will avoid working directly with the root user.</p>
<p>So, read our post about it:</p>
<p><a href="https://www.osradar.com/enable-sudo-on-freebsd-12/" target="_blank" rel="noopener noreferrer">How to enable sudo on FreeBSD 12?</a></p>
<p>We will also have to install the nano text editor to make file editing easier:</p>
<pre>:~$ sudo pkg install nano</pre>
<p>With this, we&#8217;ll be able to work quietly.</p>
<h3>1.- Install vsftpd on FreeBSD 12</h3>
<p>First, you need to install vvsftpd on FreeBSD 12.</p>
<p>So, open the terminal and navigate to the folder where the port is.</p>
<pre>:~$ cd /usr/ports/ftp/vsftp</pre>
<p>Then, install it with the following command:</p>
<pre>:~$ sudo make install clean</pre>
<figure id="attachment_18106" aria-describedby="caption-attachment-18106" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18106" src="https://www.osradar.com/wp-content/uploads/2020/02/1-5.png" alt="1.- Installing vsftpd on FreeBSD 12" width="1365" height="654" srcset="https://www.osradar.com/wp-content/uploads/2020/02/1-5.png 1365w, https://www.osradar.com/wp-content/uploads/2020/02/1-5-300x144.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/1-5-1024x491.png 1024w, https://www.osradar.com/wp-content/uploads/2020/02/1-5-768x368.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/1-5-696x333.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/1-5-1068x512.png 1068w, https://www.osradar.com/wp-content/uploads/2020/02/1-5-877x420.png 877w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-18106" class="wp-caption-text">1.- Installing vsftpd on FreeBSD 12</figcaption></figure>
<p>During the installation process, you will see a screen as in the image above. You can leave everything as it is.</p>
<p>At the end of the installation, you will see an image similar to this:</p>
<figure id="attachment_18107" aria-describedby="caption-attachment-18107" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18107" src="https://www.osradar.com/wp-content/uploads/2020/02/2-5.png" alt="2.- vsftpd installed" width="1365" height="711" srcset="https://www.osradar.com/wp-content/uploads/2020/02/2-5.png 1365w, https://www.osradar.com/wp-content/uploads/2020/02/2-5-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/2-5-1024x533.png 1024w, https://www.osradar.com/wp-content/uploads/2020/02/2-5-768x400.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/2-5-696x363.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/2-5-1068x556.png 1068w, https://www.osradar.com/wp-content/uploads/2020/02/2-5-806x420.png 806w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-18107" class="wp-caption-text">2.- vsftpd installed</figcaption></figure>
<p>Now install another port to increase the security of vsftpd.</p>
<pre>:~$ cd /usr/ports/security/pam_pwdfile<br />:~$ sudo make install clean<br />===&gt;  Staging for pam_pwdfile-1.0<br />===&gt;   Generating temporary packing list<br />install  -s -o root -g wheel -m 444   -S  pam_pwdfile.so /usr/ports/security/pam_pwdfile/work/stage/usr/local/lib/<br />====&gt; Compressing man pages (compress-man)<br />===&gt;  Installing for pam_pwdfile-1.0<br />===&gt;  Checking if pam_pwdfile is already installed<br />===&gt;   Registering installation for pam_pwdfile-1.0<br />Installing pam_pwdfile-1.0...<br />===&gt;  Cleaning for pam_pwdfile-1.0<br /><br /></pre>
<p>As in the vsftpd installation, you will see an image where you can add a feature or not. Just keep it as it is.</p>
<figure id="attachment_18108" aria-describedby="caption-attachment-18108" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18108" src="https://www.osradar.com/wp-content/uploads/2020/02/3-5.png" alt="3.- Installing pam port" width="1365" height="670" srcset="https://www.osradar.com/wp-content/uploads/2020/02/3-5.png 1365w, https://www.osradar.com/wp-content/uploads/2020/02/3-5-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/3-5-1024x503.png 1024w, https://www.osradar.com/wp-content/uploads/2020/02/3-5-768x377.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/3-5-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2020/02/3-5-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2020/02/3-5-696x342.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/3-5-1068x524.png 1068w, https://www.osradar.com/wp-content/uploads/2020/02/3-5-856x420.png 856w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-18108" class="wp-caption-text">3.- Installing pam port</figcaption></figure>
<p>To authenticate vsftpd users correctly, we have to add some lines to a pam.d configuration file</p>
<pre>:~$ sudo nano /etc/pam.d/vsftpd<br />auth required /usr/local/lib/pam_pwdfile.so pwdfile /usr/local/etc/vsftpd_login.db<br />account required /usr/lib/pam_permit.so</pre>
<figure id="attachment_18109" aria-describedby="caption-attachment-18109" style="width: 986px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18109" src="https://www.osradar.com/wp-content/uploads/2020/02/4-4.png" alt="4.- Configuring pam to work with vsftpd" width="986" height="323" srcset="https://www.osradar.com/wp-content/uploads/2020/02/4-4.png 986w, https://www.osradar.com/wp-content/uploads/2020/02/4-4-300x98.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/4-4-768x252.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/4-4-696x228.png 696w" sizes="(max-width: 986px) 100vw, 986px" /><figcaption id="caption-attachment-18109" class="wp-caption-text">4.- Configuring pam to work with vsftpd</figcaption></figure>
<p>Save the changes and close the file.</p>
<h3>2.- Configuring vsftpd to work properly</h3>
<p>Once vsftpd is installed, you have to make settings so you can start and work properly.</p>
<p>First of all, you have to create a new user on the system so you can use the server.</p>
<pre>:~$ sudo adduser -v</pre>
<p>And then, complete the information with the values you want.</p>
<pre>Username: angeloftp<br />Full name: angelo<br />Uid (Leave empty for default): <br />Login group [angeloftp]: <br />Login group is angeloftp. Invite angeloftp into other groups? []: <br />Login class [default]: <br />Shell (sh csh tcsh nologin) [sh]: nologin<br />Home directory [/home/angeloftp]: <br />Home directory permissions (Leave empty for default): <br />Use password-based authentication? [yes]: <br />Use an empty password? (yes/no) [no]: <br />Use a random password? (yes/no) [no]: <br />Enter password: <br />Enter password again: <br />Lock out the account after creation? [no]: <br />Username   : angeloftp<br />Password   : *****<br />Full Name  : angelo<br />Uid        : 1003<br />Class      : <br />Groups     : angeloftp <br />Home       : /home/angeloftp<br />Home Mode  : <br />Shell      : /usr/sbin/nologin<br />Locked     : no<br />OK? (yes/no): yes<br />adduser: INFO: Successfully added (angeloftp) to the user database.<br />Add another user? (yes/no): no<br />Goodbye!</pre>
<figure id="attachment_18110" aria-describedby="caption-attachment-18110" style="width: 817px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-18110 size-full" src="https://www.osradar.com/wp-content/uploads/2020/02/5-5.png" alt="5.- Creating a new user for vsftpd on freebsd 12" width="817" height="547" srcset="https://www.osradar.com/wp-content/uploads/2020/02/5-5.png 817w, https://www.osradar.com/wp-content/uploads/2020/02/5-5-300x201.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/5-5-768x514.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/5-5-696x466.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/5-5-627x420.png 627w" sizes="(max-width: 817px) 100vw, 817px" /><figcaption id="caption-attachment-18110" class="wp-caption-text">5.- Creating a new user for vsftpd on freebsd 12</figcaption></figure>
<p>So, you can modify the user and password parameters. The rest you can keep the same.</p>
<p>Now, let&#8217;s modify the vsftpd configuration file. In this file are all the settings we can have. Before modifying it, let&#8217;s make a backup of it:</p>
<pre>:~$ sudo mv /usr/local/etc/vsftpd.conf /usr/local/etc/vsftpd.conf.bak</pre>
<p>And now, yes, you proceed to modify it:</p>
<pre>:~$ sudo nano /usr/local/etc/vsftpd.conf</pre>
<p>In my case, the configuration that works for me without problems is the following:</p>
<pre>anonymous_enable=NO<br />anon_upload_enable=NO<br />anon_mkdir_write_enable=NO<br />local_enable=YES<br />write_enable=YES<br />listen_port=21<br />dirmessage_enable=YES<br />xferlog_enable=YES<br />connect_from_port_20=YES<br />xferlog_file=/var/log/vsftpd.log<br />xferlog_std_format=YES<br />secure_chroot_dir=/usr/local/share/vsftpd/empty<br />max_clients=200<br />max_per_ip=100<br />chroot_local_user=YES<br />text_userdb_names=YES<br />force_dot_files=NO<br />anon_root=/home/ftp<br />async_abor_enable=YES<br />use_localtime=YES<br />listen=YES<br />background=YES<br />allow_writeable_chroot=YES</pre>
<figure id="attachment_18111" aria-describedby="caption-attachment-18111" style="width: 931px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18111" src="https://www.osradar.com/wp-content/uploads/2020/02/6-2.png" alt="6.- Configuring vsftp on FreeBSD 12" width="931" height="451" srcset="https://www.osradar.com/wp-content/uploads/2020/02/6-2.png 931w, https://www.osradar.com/wp-content/uploads/2020/02/6-2-300x145.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/6-2-768x372.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/6-2-696x337.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/6-2-867x420.png 867w" sizes="(max-width: 931px) 100vw, 931px" /><figcaption id="caption-attachment-18111" class="wp-caption-text">6.- Configuring vsftp on FreeBSD 12</figcaption></figure>
<p>Of course, this is an example. You can always explore other options and for that we refer you to the <a href="https://security.appspot.com/vsftpd/vsftpd_conf.html" target="_blank" rel="noopener noreferrer">vsftp official documentation</a>.</p>
<p>Again, save the changes and close the file.</p>
<p>Now you have to add users to vsftpd, but first you have to create the file where the users and their passwords will be. To do this, we&#8217;ll use a tool called <strong>htpasswd</strong>. And use this command:</p>
<pre>:~$ sudo htpasswd -c -b /usr/local/etc/vsftpd_login.db [username] [password]</pre>
<p>Changes the permissions of the created file:</p>
<pre>:~$ sudo chmod 0600 /usr/local/etc/vsftpd_login.db</pre>
<p>In username and password replace it with the user we created earlier.</p>
<p>In case htpasswd is not available, you can get it by installing the apache web server.</p>
<pre>:~$ sudo pkg install apache24<br />Updating FreeBSD repository catalogue...<br />FreeBSD repository is up to date.<br />All repositories are up to date.<br />The following 8 package(s) will be affected (of 0 checked):<br /><br />New packages to be INSTALLED:<br />	apache24: 2.4.41<br />	libnghttp2: 1.40.0<br />	libxml2: 2.9.10<br />	expat: 2.2.8<br />	pcre: 8.43_2<br />	apr: 1.7.0.1.6.1<br />	gdbm: 1.18.1_1<br />	db5: 5.3.28_7<br /><br />Number of packages to be installed: 8<br /><br />The process will require 92 MiB more space.<br />20 MiB to be downloaded.<br /><br />Proceed with this action? [y/N]:</pre>
<p>If you want to add new users, you can do it with the following command:</p>
<pre>:~$ sudo htpasswd -b /usr/local/etc/vsftpd_login.db USERNAME PASSWORD</pre>
<p>Configure vsftpd to start with the system by editing the following file</p>
<pre>:~$ sudo nano /etc/rc.conf</pre>
<p>And in it he adds the following:</p>
<pre>vsftpd_enable="YES"</pre>
<p>Finally, the vsftpd service starts.</p>
<pre>:~$ sudo /usr/local/etc/rc.d/vsftpd start</pre>
<p>Now the creature is alive.</p>
<h3>Access to the FTP server</h3>
<p>Now that the service is working, we have to test it. Open your favorite web browser and go to <em>ftp://server-ip.</em></p>
<p>First you will need to enter your username and password and then you will see the following:</p>
<figure id="attachment_18113" aria-describedby="caption-attachment-18113" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18113" src="https://www.osradar.com/wp-content/uploads/2020/02/8-1.png" alt="8.- FTP server running" width="1366" height="669" srcset="https://www.osradar.com/wp-content/uploads/2020/02/8-1.png 1366w, https://www.osradar.com/wp-content/uploads/2020/02/8-1-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/8-1-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2020/02/8-1-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/8-1-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2020/02/8-1-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2020/02/8-1-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/8-1-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2020/02/8-1-858x420.png 858w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-18113" class="wp-caption-text">8.- FTP server running</figcaption></figure>
<p>You can also use a graphic client on your computer like <a href="https://filezilla-project.org/" target="_blank" rel="noopener noreferrer">Filezilla</a>.</p>
<p>Add a new connection and type in your credentials:</p>
<figure id="attachment_18114" aria-describedby="caption-attachment-18114" style="width: 1196px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18114" src="https://www.osradar.com/wp-content/uploads/2020/02/9-1.png" alt="9.- Filezilla" width="1196" height="713" srcset="https://www.osradar.com/wp-content/uploads/2020/02/9-1.png 1196w, https://www.osradar.com/wp-content/uploads/2020/02/9-1-300x179.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/9-1-1024x610.png 1024w, https://www.osradar.com/wp-content/uploads/2020/02/9-1-768x458.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/9-1-696x415.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/9-1-1068x637.png 1068w, https://www.osradar.com/wp-content/uploads/2020/02/9-1-705x420.png 705w" sizes="(max-width: 1196px) 100vw, 1196px" /><figcaption id="caption-attachment-18114" class="wp-caption-text">9.- Filezilla</figcaption></figure>
<p>After accepting the connection and entering the password, it will connect. And as you can see, everything has been successful:</p>
<figure id="attachment_18115" aria-describedby="caption-attachment-18115" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18115" src="https://www.osradar.com/wp-content/uploads/2020/02/10-1.png" alt="10.- vsftpd working properly" width="1366" height="767" srcset="https://www.osradar.com/wp-content/uploads/2020/02/10-1.png 1366w, https://www.osradar.com/wp-content/uploads/2020/02/10-1-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/10-1-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2020/02/10-1-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/10-1-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/10-1-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2020/02/10-1-748x420.png 748w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-18115" class="wp-caption-text">10.- vsftpd working properly</figcaption></figure>
<p>So, everything&#8217;s in order.</p>
<h2>Conclusion</h2>
<p>An FTP server on FreeBSD can be a secure alternative for sharing files on a network. It is as easy to set up as you have seen it today.</p>
<p>Please share this post and join <a href="https://t.me/osradar" target="_blank" rel="noopener noreferrer">our Telegram channel</a>.</p>


<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-set-up-vsftpd-on-freebsd-12/">How to set up vsftpd on FreeBSD 12?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-set-up-vsftpd-on-freebsd-12/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>How to configure a FTP server on OpenSUSE 15.1?</title>
		<link>https://www.osradar.com/how-to-configure-a-ftp-server-on-opensuse-15-1/</link>
					<comments>https://www.osradar.com/how-to-configure-a-ftp-server-on-opensuse-15-1/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 10 Jun 2019 23:01:38 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Leap]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[vsftpd]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=12346</guid>

					<description><![CDATA[<p>An FTP server is something basic when you set up a server. It is necessary because it allows us to transfer files to our server from our computer. As you can see it is very useful but requires a few small steps to achieve it. Therefore, today I will teach you how to configure a [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-configure-a-ftp-server-on-opensuse-15-1/">How to configure a FTP server on OpenSUSE 15.1?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>An FTP server is something basic when you set up a server. It is necessary because it allows us to transfer files to our server from our computer. As you can see it is very useful but requires a few small steps to achieve it. Therefore, today I will teach you how to configure a FTP server on OpenSUSE 15.1.</p>
<h2>Configure a FTP server with vsftpd</h2>
<p><a href="http://vsftpd.beasts.org/" target="_blank" rel="noopener noreferrer">vsftpd</a> is a daemon that allows you to install and configure an FTP server. It is quite used for being very flexible in its configuration and secure. For example, it is the default in <a href="https://www.osradar.com/tag/opensuse/" target="_blank" rel="noopener noreferrer">OpenSUSE</a> and <a href="https://www.osradar.com/tag/centos/" target="_blank" rel="noopener noreferrer">CentOS</a> 7 but can be used in almost any Linux distribution.</p>
<p>Its configuration files are quite easy to understand because they are well documented. So this makes it the main option for our purpose.</p>
<p>So let us start.</p>
<h2>Install and configure vsftpd on OpenSUSE 15.1</h2>
<p>First, we must install it. The big advantage is that vsftpd is in the OpenSUSE repositories so we can install it using zypper.</p>
<pre>:~$ sudo zypper in vsftpd</pre>
<p><figure id="attachment_12372" aria-describedby="caption-attachment-12372" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12372" src="https://www.osradar.com/wp-content/uploads/2019/06/1-4.png" alt="1.- install vsftpd" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2019/06/1-4.png 1366w, https://www.osradar.com/wp-content/uploads/2019/06/1-4-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/06/1-4-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/06/1-4-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/06/1-4-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/06/1-4-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/06/1-4-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12372" class="wp-caption-text">1.- install vsftpd</figcaption></figure></p>
<p>Now comes the configuration for everything to work properly.</p>
<p>The configuration file is this /etc/vsftpd.conf. If you open it you will see that it is very extensive, but it is because it has many commented lines. It is very well documented.</p>
<p>Before we edit it, let&#8217;s create a backup.</p>
<pre>:~$ sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.bak</pre>
<p>There are several things we need to edit.</p>
<pre>:~$ sudo nano /etc/vsftpd.conf</pre>
<p>Firstly, we must make the service &#8220;listen&#8221;. IPV4 and disable IPV6.</p>
<pre>listen=YES
#listen_ipv6=NO</pre>
<p>Then, allow writing.</p>
<pre>write_enable=YES</pre>
<p>There is a clause that defines port 20 as the default. I have commented on it and used the listen_port clause to define another port. For example, port 21. It can be the one you want.</p>
<pre>#connect_from_port_20=YES
listen_port=21</pre>
<p>It is very likely that if you work with FTP you will need to create users. To do this, it is necessary to cage them before creating them. That is to say, that each user cannot upload or download files from other users and even less from the system. In other words, they are isolated to their folder. To do this, add the following lines.</p>
<pre>chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list</pre>
<p>Then, create the file specified in chroot_list_file and add our system user there</p>
<pre>:~$ sudo nano /etc/vsftpd.chroot_list
angelo</pre>
<p>The pasv_min_port and pasv_max_port clauses define which ports FTP can use to be in passive mode. You have to work in the Firewall with them.</p>
<p>We can use the grep and cat commands to make the file more readable. With them I will show all the lines except the ones that start with a #.</p>
<pre>:~$ sudo cat /etc/vsftpd.conf | grep -v "^#"</pre>
<p>At this point, the configuration file would look more or less like this.</p>
<p><figure id="attachment_12373" aria-describedby="caption-attachment-12373" style="width: 546px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12373" src="https://www.osradar.com/wp-content/uploads/2019/06/333.png" alt="3.- The vfstpd config file" width="546" height="469" srcset="https://www.osradar.com/wp-content/uploads/2019/06/333.png 546w, https://www.osradar.com/wp-content/uploads/2019/06/333-300x258.png 300w, https://www.osradar.com/wp-content/uploads/2019/06/333-489x420.png 489w" sizes="(max-width: 546px) 100vw, 546px" /><figcaption id="caption-attachment-12373" class="wp-caption-text">3.- The vfstpd config file</figcaption></figure></p>
<p>Now you have to open the necessary ports for vsftpd to work.</p>
<pre>:~$ sudo firewall-cmd --add-port=21/tcp --permanent
Success
:~$ sudo firewall-cmd --add-port=30000-30100/tcp --permanent
Success
:~$ sudo firewall-cmd --reload
Success</pre>
<p>Now let&#8217;s create the test user service.</p>
<pre>:~$ sudo useradd -d /home/user1 -m -s /bin/bash user1
:~$ sudo passwd</pre>
<p>Finally, you start the service and check its status.</p>
<pre>:~$ sudo systemctl start vsftpd
:~$ sudo systemctl status vsftpd
● vsftpd.service - Vsftpd ftp daemon
   Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled; vendor preset: disabled)
   Active: active (running) since Wed 2019-06-05 10:44:50 -04; 32min ago
 Main PID: 2888 (vsftpd)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/vsftpd.service
           └─2888 /usr/sbin/vsftpd /etc/vsftpd.conf</pre>
<p>The anonymous user is enabled by default. Its folder is /srv/ftp/ you can create alli files for download. You can even access it from your web browser. ftp://your-server/</p>
<p><figure id="attachment_12374" aria-describedby="caption-attachment-12374" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12374" src="https://www.osradar.com/wp-content/uploads/2019/06/44.png" alt="4.- Access to the FTP server using the web browser" width="1366" height="668" srcset="https://www.osradar.com/wp-content/uploads/2019/06/44.png 1366w, https://www.osradar.com/wp-content/uploads/2019/06/44-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2019/06/44-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2019/06/44-1024x501.png 1024w, https://www.osradar.com/wp-content/uploads/2019/06/44-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/06/44-696x340.png 696w, https://www.osradar.com/wp-content/uploads/2019/06/44-1068x522.png 1068w, https://www.osradar.com/wp-content/uploads/2019/06/44-859x420.png 859w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-12374" class="wp-caption-text">4.- Access to the FTP server using the web browser</figcaption></figure></p>
<p>Now, it&#8217;s time to install an FTP client. In this case I will use Filezilla.</p>
<h2>Using Filezilla as the FTP client on OpenSUSE</h2>
<p>First you have to install it.</p>
<pre>:~$ sudo zypper in filezilla</pre>
<p>Then you have to create the connection. To do this, go to the File menu and click on the Site Manager option. In the window that appears, configure your connection. I&#8217;ve done it this way.</p>
<p><figure id="attachment_12375" aria-describedby="caption-attachment-12375" style="width: 849px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-12375 size-full" src="https://www.osradar.com/wp-content/uploads/2019/06/3-2.png" alt="5.- Creating a new FTP connection" width="849" height="751" srcset="https://www.osradar.com/wp-content/uploads/2019/06/3-2.png 849w, https://www.osradar.com/wp-content/uploads/2019/06/3-2-300x265.png 300w, https://www.osradar.com/wp-content/uploads/2019/06/3-2-768x679.png 768w, https://www.osradar.com/wp-content/uploads/2019/06/3-2-696x616.png 696w, https://www.osradar.com/wp-content/uploads/2019/06/3-2-475x420.png 475w" sizes="(max-width: 849px) 100vw, 849px" /><figcaption id="caption-attachment-12375" class="wp-caption-text">5.- Creating a new FTP connection</figcaption></figure></p>
<p>And this is it. Now you can start enjoying the FTP server. Note that I&#8217;ve already uploaded a test file.</p>
<p><figure id="attachment_12376" aria-describedby="caption-attachment-12376" style="width: 1352px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-12376" src="https://www.osradar.com/wp-content/uploads/2019/06/4-1.png" alt="6.- Using FTP" width="1352" height="871" srcset="https://www.osradar.com/wp-content/uploads/2019/06/4-1.png 1352w, https://www.osradar.com/wp-content/uploads/2019/06/4-1-300x193.png 300w, https://www.osradar.com/wp-content/uploads/2019/06/4-1-768x495.png 768w, https://www.osradar.com/wp-content/uploads/2019/06/4-1-1024x660.png 1024w, https://www.osradar.com/wp-content/uploads/2019/06/4-1-696x448.png 696w, https://www.osradar.com/wp-content/uploads/2019/06/4-1-1068x688.png 1068w, https://www.osradar.com/wp-content/uploads/2019/06/4-1-652x420.png 652w" sizes="(max-width: 1352px) 100vw, 1352px" /><figcaption id="caption-attachment-12376" class="wp-caption-text">6.- Using FTP</figcaption></figure></p>
<p>Enjoy it.</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-configure-a-ftp-server-on-opensuse-15-1/">How to configure a FTP server on OpenSUSE 15.1?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-configure-a-ftp-server-on-opensuse-15-1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
