LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   how to make users jailed in some directory using vsftpd (https://www.linuxquestions.org/questions/linux-server-73/how-to-make-users-jailed-in-some-directory-using-vsftpd-788754/)

m_kaleia 02-12-2010 02:55 PM

how to make users jailed in some directory using vsftpd
 
Hello all
I made ftp server usgin vsftpd , and there is a choice to restrict local users to their home directories by type : chroot_local_user=YES .
But, I want to force all users to login to another directory like /home/ftp , and jail them in it ..
how can I make this ?
Tthanks .

bathory 02-12-2010 04:39 PM

Hi,

Add:
Code:

local_root=/home/ftp
in vsftp.conf. Also make sure that the directory is writable by users:
Code:

chgrp users /home/ftp
chmod -R 775 /home/ftp

Regards

m_kaleia 02-13-2010 02:43 PM

Thanks , that's work and my problem solved .
:hattip:


All times are GMT -5. The time now is 10:10 AM.