VSFTP....1 ftp root for all
I want to hook all users into one ftp root. VSFTP is configured to allow chroot from home folders but I want to get all usaers out of the home folders to 1 ftp dir.
|
Hi!
I'm using proftp and I have a file called '/etc/proftpd.conf' with the configuration of the server. I have a line which says Code:
DefaultRoot ~ You can change thi line and instead of '~' write the directory you want. I think you have a similar file to config the ftp server, just go to the documentation and look for it. ... I hope I'm answering your question :) Regards |
I assume you already have:
chroot_local_user=YES in /etc/vsftpd.conf (or /etc/vsftpd/vsftpd.conf) From there, what happens if you make user accounts just for ftp access, and set all of the ftp access user names to one home directory? That should lock users into their home directories as listed in /etc/passwd EX: ftpUser-1:x:501:501:ftpUser-1:/var/ftp:/bin/bash ftpUser-2:x:502:502:ftpUser-2:/var/ftp:/bin/bash I am no guru, but I have this sinking feeling that /bin/bash is an unsecure way to access a shell. |
All times are GMT -5. The time now is 03:07 AM. |