Create user + FTP CHROOT - vsftp

#1 - CREATE UNIX USER

useradd -m -d /path/to/home/user username

#2 - CHROOT VSFTP

emacs /etc/vsftpd/vsftpd.conf

# You may specify an explicit list of local users to chroot() to their home                                       
# directory. If chroot_local_user is YES, then this list becomes a list of                                        
# users to NOT chroot().                                                                                          
chroot_local_user=YES
chroot_list_enable=YES
# (default follows)                                                                                               
chroot_list_file=/etc/vsftpd/chroot_list
 

#3 - Double check in /etc/passwd

toto:x:501:502::/var/www/totot:/bin/bash

Latest Post

Popular Post

Our Skills

Author

Project Director Information Architect Database Administrator Unix Administrator Senior Developer Project Manager Product Manager Web Marketer Cloud Engineer

Contact Us

For any questions or project ideas please contact me at the following.

I'm here