Lucas Peet wrote:
Hello,
Does autofs / automount have the ability to bind one directory to
another like ‘mount –o bind dir1 dir2’? And if so, can this be handled
by using wildcards in the maps? Here is my situation:
I have a large directory of user’s home directories. These are in a
chroot jail, so making soft links isn’t an option, and hard links won’t
work for directories. I need to bind (mount) a directory that lives
outside the chroot jail to a directory / mount point inside each home
directory. The users will only be accessing this directory for short
periods (to copy a file or two), and I think it would be more practical
to have autofs mount it whenever they needed access to it, and unmount
it when they’re done.
I’m not sure on the exact number of mounted filesystems Linux can handle
(or if a directory mounded via –o bind counts towards that, though I’d
assume it would), but I would think that using automount instead of
putting hundreds of entries into fstab would be more the Linux way of
doing things. Even if I had to put an entry for each user in a map,
that would be a better solution to me than using fstab, since they all
wouldn’t be mounted at the same time, all the time.
Dir to be accessed by all users: /home/stuff/everyone
Mounted to: /home/users/*/everyone
Is this even possible?
To be honest I could not understand 100%.
But still something close to what you are asking is here
http://www.intraperson.com/autodir/.
If something else that you want is missing let me know.
Regards
ramana
--
http://www.intraperson.com
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs