LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   VSFTP....1 ftp root for all (http://www.linuxquestions.org/questions/linux-networking-3/vsftp-1-ftp-root-for-all-108912/)

pmaxhammond 10-27-2003 12:04 AM

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.

Y0jiMb0 10-27-2003 02:15 AM

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 ~
which makes the home directory of every user to be their root directory when they are connected through ftp.
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

andguent 10-30-2003 11:31 AM

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 04:56 AM.