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

Re: automounted home directories in chroot

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

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.
Best regards / Mit den besten Grüssen
Sven Krahn

Reply to: