LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 10-17-2003, 04:47 AM   #1
davidsch
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?


Thanks,

ds
 
Old 11-10-2003, 11:53 AM   #2
QtCoder
Member
 
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! ;-)

Thanks
 
Old 11-10-2003, 11:59 AM   #3
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

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


Reply


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 02:21 PM
proftp chroot multiple users waffe Linux - General 2 11-01-2003 11:11 PM
chroot jail sftp users f1uke Linux - Security 1 07-28-2003 10:29 AM
Making openSSH chroot users tunedLow Linux - Networking 5 02-25-2003 04:31 PM
Chroot users thecrab Linux - Security 6 03-03-2002 05:21 PM


All times are GMT -5. The time now is 03:19 PM.

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