Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-17-2003, 05:47 AM   #1
LQ Newbie
Registered: Oct 2003
Posts: 1

Rep: Reputation: 0
Question 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?


Old 11-10-2003, 12:53 PM   #2
Registered: Aug 2003
Location: USA
Distribution: Slackware 12.0 RC1
Posts: 129

Rep: Reputation: 15
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! ;-)

Old 11-10-2003, 12:59 PM   #3
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 252Reputation: 252Reputation: 252
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i use chroot to set a user account ... Hano Linux - Security 3 11-11-2003 03:21 PM
proftp chroot multiple users waffe Linux - General 2 11-02-2003 12:11 AM
chroot jail sftp users f1uke Linux - Security 1 07-28-2003 11:29 AM
Making openSSH chroot users tunedLow Linux - Networking 5 02-25-2003 05:31 PM
Chroot users thecrab Linux - Security 6 03-03-2002 06:21 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration