LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Setting up ftp only users in non std directories (https://www.linuxquestions.org/questions/linux-newbie-8/setting-up-ftp-only-users-in-non-std-directories-394111/)

dwynter 12-18-2005 04:51 AM

Setting up ftp only users in non std directories
 
Hi,

I want to setup on a Linux server (Centos 4.1) accounts for folk that will only be allowed ftp and not in the standard /home/username directory. I have an application that will produce files for users in their own home directories and a few sub directories. The directory that the application uses as a base is /var/ftp under which each user has there own directories, e.g. user with login name bibi would have /var/ftp/bibi. I don't want that user to be able to navigate (do 'cd ..' for example or 'ls ../' outside that directory or its sub direcotries.

I am not sure how to go about this, so advice on which man pages might need to be read and general approach are most welcome.

Thanks,

David

Mara 12-19-2005 05:03 PM

Which ftp server would you use? Ther are ones (like pure-ftpd) that have virtual users and options to set pretty strict policy.

Quote:

I don't want that user to be able to navigate (do 'cd ..' for example or 'ls ../' outside that directory or its sub direcotries.
It's called 'chrooting'. Doable, but in different ways, depending on the FTP server software.


All times are GMT -5. The time now is 05:43 PM.