Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am setting up a chrooted environment for users who request SFTP access, essentially their login directory must be /home/xxxx which is not accessible by public FTP,

Would mounting each /home/xxx directory to /srv/ftp/~xxx, possible for a hundred users in the near future be a bad idea for a server environment? Could it slow anything down?

An example:

mount --bind /srv/ftp/john /home/john/

If you could provide any experience or insight on if I am doing this wrong, feel free to lecture me - I would be very greatful.

share|improve this question
up vote 0 down vote accepted

It is an option if you wish to do so, although it'll be a bit hard to maintain.

Another option which is not so bad is to use limited shells for this SFTP users, this way you'll save the pain and have the same results, check lshell since I think it'll cover exactly what you're looking for.

share|improve this answer
I will consider when I need to, for now I figure just appending new mount commands to a file, and putting it into rc.local on reboot. It only requires a few edits and a single script to admin most of it. – Robert Renu. Jan 20 '11 at 12:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.