Solved

Proftp - Chroot More Than One User

Posted on 2003-10-29
3
365 Views
Last Modified: 2010-03-18
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 that 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
0
Comment
Question by:waffe
3 Comments
 
LVL 12

Expert Comment

by:paullamhkg
ID: 9647476
have a look here http://www.tjw.org/chroot-login-HOWTO/ which will create a user and change root to the only directory you appointed to, and the new user can't access other place.
0
 
LVL 5

Accepted Solution

by:
brabard earned 100 total points
ID: 9662558
Well , I am not so sure what exactly you wanna do , but I think if we have to make different users with different dirs , the config may smth like this :
<VirtualHost nydomain.com>
    <Anonymous ~user1>
    </Anonymous>
    <Anonymous ~user2>
    </Anonymous>
</VirtualHost>

Brabard
0
 

Author Comment

by:waffe
ID: 9665029
Thanks brabard,

your comment gave me this idea that solved the problem...

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

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now