<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.r512.com/index.php?action=history&amp;feed=atom&amp;title=VSFTPD_SETUP</id>
	<title>VSFTPD SETUP - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.r512.com/index.php?action=history&amp;feed=atom&amp;title=VSFTPD_SETUP"/>
	<link rel="alternate" type="text/html" href="https://www.r512.com/index.php?title=VSFTPD_SETUP&amp;action=history"/>
	<updated>2026-05-08T15:23:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://www.r512.com/index.php?title=VSFTPD_SETUP&amp;diff=132&amp;oldid=prev</id>
		<title>Bacchas: Created page with &quot;== setting up vsftpd users and groups == &lt;pre&gt; Install vsftpd  apt-get install vsftpd 4) Create a user group and shared directory. In this case, use /home/ftp-users and a user...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.r512.com/index.php?title=VSFTPD_SETUP&amp;diff=132&amp;oldid=prev"/>
		<updated>2016-08-08T20:45:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== setting up vsftpd users and groups == &amp;lt;pre&amp;gt; Install vsftpd  apt-get install vsftpd 4) Create a user group and shared directory. In this case, use /home/ftp-users and a user...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== setting up vsftpd users and groups ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Install vsftpd&lt;br /&gt;
&lt;br /&gt;
apt-get install vsftpd&lt;br /&gt;
4) Create a user group and shared directory. In this case, use /home/ftp-users and a user group name of ftp-users for the remote users&lt;br /&gt;
[root@bigboy tmp]# groupadd ftp-users&lt;br /&gt;
[root@bigboy tmp]# mkdir /home/ftp-docs&lt;br /&gt;
 5) Make the directory accessible to the ftp-users group.&lt;br /&gt;
&lt;br /&gt;
[root@bigboy tmp]# chmod 750 /home/ftp-docs&lt;br /&gt;
[root@bigboy tmp]# chown root:ftp-users /home/ftp-docs&lt;br /&gt;
6) Add users, and make their default directory /home/ftp-docs&lt;br /&gt;
[root@bigboy tmp]# useradd -g ftp-users -d /home/ftp-docs user1&lt;br /&gt;
[root@bigboy tmp]# useradd -g ftp-users -d /home/ftp-docs user2&lt;br /&gt;
[root@bigboy tmp]# useradd -g ftp-users -d /home/ftp-docs user3&lt;br /&gt;
[root@bigboy tmp]# useradd -g ftp-users -d /home/ftp-docs user4&lt;br /&gt;
[root@bigboy tmp]# passwd user1&lt;br /&gt;
[root@bigboy tmp]# passwd user2&lt;br /&gt;
[root@bigboy tmp]# passwd user3&lt;br /&gt;
[root@bigboy tmp]# passwd user4&lt;br /&gt;
 /etc/vsftpd.conf  - configuration file&lt;br /&gt;
&lt;br /&gt;
Local_enable=yes&lt;br /&gt;
write_enable=Yes&lt;br /&gt;
chroot_list_enable=Yes - this jails users on the list to their home dir&lt;br /&gt;
chroot_list_file=/etc/vsftpd.chroot_list&lt;br /&gt;
&lt;br /&gt;
if the vsftpd.chroot_list file does not exist then create it and add the users to that list&lt;br /&gt;
&lt;br /&gt;
To add a user to a specific group&lt;br /&gt;
&lt;br /&gt;
usermod -G name-of-group -a name-of-user&lt;br /&gt;
&lt;br /&gt;
 **/ must be applied otherwise you won&amp;#039;t be able to save to dir&lt;br /&gt;
&lt;br /&gt;
 chgrp -R ftp-users /var/www/site &lt;br /&gt;
change the ownership of this directory to group &amp;#039;ftp-users&amp;#039; and everything inside of it (-R = recursive). The person issuing this command must own all the files or it will fail.&lt;br /&gt;
&lt;br /&gt;
 chmod -R g+rw /var/www/site&lt;br /&gt;
give group read write access to this directory, and everything inside of it (-R = recursive)&lt;br /&gt;
&lt;br /&gt;
listing all groups&lt;br /&gt;
&lt;br /&gt;
cat /etc/group&lt;br /&gt;
&lt;br /&gt;
Listing groups a current user belongs to&lt;br /&gt;
&lt;br /&gt;
groups robert&lt;br /&gt;
&lt;br /&gt;
  *** Restart system or vftpd service after changes otherwise it permissions won&amp;#039;t work&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bacchas</name></author>
	</entry>
</feed>