Welcome to Server Circle. It's a friendly site and all levels of experience are welcome. Be aware that we use cookies for your login.
Server Circle - Ask questions about Servers and get answers from experts.
Beta (0.37 sec)
Automatically setting a user home directory in vsftpd

Can I give users only access to their home directories like this in vsftpd ?

/home/NEWUSERACCOUNT where NEWUSERACCOUNT is the login ?

Thanks - it would lots of set up time and could be used in a script maybe.
Asked by:
holymoly
151 points
 Report Abuse
 Share Page - Category: Linux Servers - Tags: Automatically setting a user home directory in vsftpd
 Enter your response
Please use Pastie.org to paste lengthy code or to fix formatting issues with code
  • Responses in reverse (3)

Actually this is one of the reasons I used vsftpd in the past. Inside vsftpd.conf put this:

chroot_local_user=YES

user_sub_token=$USER

local_root=/var/www/html/$USER/downloads

Response by:
Moocher
625 points
Open vsftpd configuration file - /etc/vsftpd/vsftpd.conf

# vi /etc/vsftpd/vsftpd.conf

Make sure following line exists (and uncommented):

chroot_local_user=YES

Response by:
jalal
3623 points
The following link will help you

http://www.cyberciti.biz/ ...

Response by:
jalal
3623 points


  • Related Questions
About Us : Contact Us : Etiquette : Terms : CDN Failover : ShorterURL : CDN Fallback : © 2013 Server Circle