LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-29-2003, 03:20 AM   #1
waffe
Member
 
Registered: Sep 2003
Distribution: Debian
Posts: 69

Rep: Reputation: 15
proftp chroot multiple users


I thought this would be easy but I am having troubles making it happen. I had a single user chrooted like this:

<VirtualHost mydomian.com >
DefaultRoot /home/user1
</VirtualHost>

I now need to add a second user to the server tht is also chrootred. I assumed you would just add another VirtualHost Like:

<VirtualHost mydomian.com >
DefaultRoot /home/user1
</VirtualHost>

<VirtualHost mydomian.com >
DefaultRoot /home/user2
</VirtualHost>

This does not work right. If I ftp in as the first user I am taken to the first users chrooted folder. Now If I ftp in as the second user I am taken the first users folder. I have tried many combos of the above script but nothings works as I need it to. Does someone know how this is done?

Thanks
 
Old 11-01-2003, 07:30 PM   #2
Mrcdm
Member
 
Registered: Apr 2003
Location: Australia
Distribution: Debian 3, 31r0, 4, slackware, DSL, RH8.0/7, MDK9/10, et al. Vista is cute but not Linux - I tried
Posts: 70

Rep: Reputation: 15
waffe,

There's some lines in the /etc/proftpd.conf file as below
# Default root can be used to put users in a chroot environment.
# As an example if you have a user foo and you want to put foo in /home/foo
# chroot environment you would do this:
#
# DefaultRoot /home/foo foo
DefaultRoot ~

I have all users default root to their home directory but haven't tried for individual ones. I assume looking at above that each user can be configured for a different one, ie:
Defaultroot /home/jack jack
would change jacks root to /home/jack. You would just need to include another line for another user etc etc.

Can anyone confirm this is not what it indicates? Please let me know if I'm wrong.
 
Old 11-01-2003, 11:11 PM   #3
waffe
Member
 
Registered: Sep 2003
Distribution: Debian
Posts: 69

Original Poster
Rep: Reputation: 15
This is how it is done, I was close...

<VirtualHost mydomian.com>
DefaultRoot /home/user1
DefaultRoot /home/user2
</VirtualHost>
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chroot using proftp carlp Linux - Software 1 06-22-2005 06:36 AM
ProFTP users issue reynacho_au Linux - Software 4 12-20-2004 08:46 PM
Proftp 1.2.9 setup help with users parasbshah Linux - Networking 0 06-01-2004 02:52 AM
proftp sharing multiple drives Wolf_Assassin Linux - Software 0 05-09-2004 10:51 AM
proftp chroot problem dazk Linux - Networking 1 12-19-2002 06:18 AM


All times are GMT -5. The time now is 02:45 AM.

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