LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I want to set up a Website and chroot the users ftp (https://www.linuxquestions.org/questions/linux-newbie-8/i-want-to-set-up-a-website-and-chroot-the-users-ftp-105036/)

davidsch 10-17-2003 04:47 AM

I want to set up a Website and chroot the users ftp
 
I need help configuring a web server.

I have Redhat 9 and am using vsftpd and apatche.

How do I set up vsftp to chroot a user to lock him into apache's chroot (/home/user/public_html)

I then need to set up a list of users allowed ftp to this directory.

Then I need to set up a quota.

I also need to give anonymous to a pub directory.

Can someone please help? I have managed to set up apache correctly (I think). But vsftp is not working right.

BTY: Is this the right way to do it? Or should I be doing something else?


Thanks,

ds

QtCoder 11-10-2003 11:53 AM

I need help with exactly the same issue. Chrooting (jailing as some call it) has never worked for me.

A step by step guide would be very nice! ;-)

Thanks

trickykid 11-10-2003 11:59 AM

Easiest way is to create the user, set them up with their home directory as the directory you want them chrooted to.

Always good idea to give them a false shell as well if you only want them to have FTP access by changing their shell to something like /bin/false and adding that to /etc/shells

Then simply chroot them to their home directory using the chroot command. Not really that hard and very straightforward.


Read the man pages on these commands for more options/details:

man passwd
man chroot
man usermod


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