Created
August 16, 2012 06:45
-
-
Save laszlomiklosik/3367429 to your computer and use it in GitHub Desktop.
Setting up vsftpd access in ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. sudo apt-get install vsftpd | |
2. nano /etc/vsftpd.conf | |
uncomment: | |
local_enable=YES | |
write_enable=YES | |
comment: | |
#anonymous_enable=YES | |
3. sudo service vsftpd restart | |
4. you should be able to access FTP using your existing system user | |
5. to add new user follow below steps | |
5a. create it on the system: | |
sudo useradd user_name -m -p | |
sudo passwd user_name | |
5b. create file: | |
Create vsftpd.chroot_list in /etc/ | |
and add the user name of the newly created user here | |
5c. add/enable the following in /etc/vsftpd.conf | |
chroot_list_enable=YES | |
chroot_list_file=/etc/vsftpd.chroot_list | |
local_root=/home | |
5d. sudo service vsftpd restart | |
5e. you should be able to use your new user to connect via FTP | |
Inspired by: http://linux-hacks.blogspot.ro/2008/09/adding-new-users-to-vsftpd.html | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment