B
B
bloster2015-12-05 01:21:18
FTP
bloster, 2015-12-05 01:21:18

How do I create an ftp server on Ubuntu and lock the user in the site folder?

Hello!
I want to use vsftpd to create an ftpadmin user with the qqq password, which, when entered into filezilla ip and its login, will fall into the /var/www/wordpress folder and will be able to do whatever it wants in it, without having the right to go higher.
vsftpd installed, set these settings

listen=YES 
anonymous_enable=NO 
local_enable=YES 
write_enable=YES 
local_umask=022 
dirmessage_enable=YES 
use_localtime=YES 
connect_from_port_20=YES 
secure_chroot_dir=/var/run/vsftpd/empty 
virtual_use_local_privs=YES 
guest_enable=YES 
user_sub_token=$USER 
chroot_local_user=YES 
hide_ids=YES

I spent the whole evening delving into the instructions, but they all give out one continuous error (
Nothing connects, nothing works, my hands have already dropped, I deleted all the files and reinstalled vsftpd.
I beg you to help me and tell me step by step how to solve this after all problem
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
bloster, 2015-12-05
@bloster

Thanks for the answer. But it didn't help me.
Apparently, I had some kind of problem with vsftpd on the server.
I did everything with a clean head in the morning using proftpd. This guide
helped

M
Max, 2015-12-05
@MaxDukov

here is the instruction for your case. You either need to change the home directory for your ftpadmin or go the user_sub_token path. The first way is preferable, in my opinion.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question