Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Proftp - Chroot More Than One User

Posted on 2003-10-29
Medium Priority
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 >
DefaultRoot /home/user1

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 >
DefaultRoot /home/user1

<VirtualHost >
DefaultRoot /home/user2

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?

Question by:waffe
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 12

Expert Comment

ID: 9647476
have a look here which will create a user and change root to the only directory you appointed to, and the new user can't access other place.

Accepted Solution

brabard earned 400 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 :
    <Anonymous ~user1>
    <Anonymous ~user2>


Author Comment

ID: 9665029
Thanks brabard,

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

DefaultRoot /home/user1
DefaultRoot /home/user2

Featured Post

More Than Just A Video Library

Train for your certification. Learn the latest DevOps tools. Grow your skillset to do better work.

At Linux Academy, we release new training modules every week so you'll always be up to date on the latest tech.

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

721 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