Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am starting to use Amazon EC2.

A couple of days ago I managed to setup vsftpd and created some users, each of who was linked to a folder with its name... eg: /home/user1, /home/user2

It works great, but now I want my users name not linked to a folder with its name.

E.g. for user1 I link to /var/www/stuff

The problem is that my vsftpd.conf is like this:

passwd_chroot_enable=yes
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
nopriv_user=vsftpd
virtual_use_local_privs=YES
guest_enable=YES
user_sub_token=$USER
local_root=/path/to/$USER
chroot_local_user=YES
allow_writeable_chroot=YES
hide_ids=YES
guest_username=vsftpd
pasv_max_port=41000
pasv_min_port=40000
port_enable=YES
pasv_enable=YES
pasv_address=XX.XX.XX.XX

local_root is set according to the user_sub_token, which is its user name.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.