[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: automounted home directories in chroot

On Thu, Jul 07, 2005 at 09:22:55PM +0000, Sven Krahn wrote:
> On 7/7/05, Rik Theys <Rik.Theys@scarlet.be> wrote:
> > 
> > But on my production system, the home directories are automounted under /home.
> > Simply bind mounting /home in the chroot does not work: the home directories
> > are not available in the chroot :(.
> > 
> > Is there any way to fix this? Would it be possible to bind mount each home
> > directory into the chroot? For a few users this would be OK, but I have about
> > 300 users...
> > 
> This will certainly work, see also
> http://lists.debian.org/debian-amd64/2005/06/msg00361.html
> If you really need to bind mount your home directories one by one you
> could consider a small shell script in /etc/init.d/ which loops
> through the user names and mounts all their home directories (without
> putting them into /etc/fstab... maybe there are smarter approaches.

Using rbind rather than bind then.

Len Sorensen

Reply to: