Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Web server hosts multiple websites. Multiple users update each website.

User home directory

Web directory

Each user uses SFTP to upload files to their home directory.
Each user is chrooted to their home directory.
Each user has the /var/www directory mounted in their home directory.
mount --bind /var/www/ /home/user1/
mount --bind /var/www/ /home/user2/

With 2 users, this isn't a problem but these teams will grow quickly. Each time a search is conducted, a file could appear in multiple places.

SCM using .git would be the preferred method but is not possible for various reasons.

Is this the correct approach (mount --bind) since SFTP needs to be used? Are there other security measures to take?

share|improve this question
what is the question? – Ulrich Dangel Feb 18 '13 at 16:17
Bolded for clarity. Is mount --bind the best approach for multiple users editing multiple sites while restricting access to their home directory? – csi Feb 18 '13 at 16:51

Your Answer


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

Browse other questions tagged or ask your own question.