See help instructions here: http://www.linuxquestions.org/questions/linux-networking-3/vsftpd-chroot-problem-387883/
I think you are looking for this snippet of information:
All the users belonging to ftp-users group goes into /home/ftp-docs/ftp_stuff by default when they login. They cannot navigate in other directories and are restricted to this particular directory.
You do this:
Create a directory by issuing the following command as root:
mkdir -p /home/ftp-docs/ftp_stuff
Then do this:
chgrp ftp-users /home/ftp-docs/ftp_stuff
chmod -R 777 /home/ftp-docs/ftp_stuff
In the /etc/vsftpd/vsftpd.conf write this :
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
Put all you ftp-users group userÅ› name in /etc/vsftpd.chroot_list Then in the /etc/passwd file make the home directory of all the users belonging to ftp-users group to /home/ftp-docs/ftp_stuff.
Then do the following:
service vsftpd restart
Then login via any user belonging to ftp-users group you will lend into /home/ftp-docs/ftp_stuff. You cant go to the other higher level directories.
you can create multiple entries in the list for multiple groups. the order in which those groups are in the list file will dictate their highest directory I believe.
Hope that helps. Thomas
Original Source Here.
Subscribe to:
Post Comments (Atom)
Langkah-langkah instalasi XAMPP 1.8.3 pada Windows
XAMPP adalah paket aplikasi yang sudah disatukan dari beberapa aplikasi, seperti apache, mysql, php, phpmyadmin dan bebera...
-
XAMPP adalah paket aplikasi yang sudah disatukan dari beberapa aplikasi, seperti apache, mysql, php, phpmyadmin dan bebera...
-
See help instructions here: http://www.linuxquestions.org/questions/linux-networking-3/vsftpd-chroot-problem-387883/ I think you are looki...
-
I want to install Webmin this morning. So, i can manage the server easily (i don't know, its easy or something that i have to learn more...
No comments:
Post a Comment