fstab and automounting permanent symlinks
I'm running a proftpd server (on Ubuntu 8.04 server) with user accounts chrooted to their home directories. I have a share directory that I want all users to access. So in order to get out of chroot jail I need to set up a symlink like so...
Code:
mount --bind /share /home/john/share So the question is how do I automount a symlink? Code:
/dev/hdb1 /home ext2 defaults 1 2 Code:
/share /home/john/share auto rw,auto,user,sync 0 0 All of the examples I have found are for automounting hardware not directories on existing hardware. Thanks! |
I haven't actually tested this but there's no reason why this wouldn't work, just add the bind option there.
Code:
/dir1 /dir2 none bind 0 0 But you could also just mount the real device many times. I usually do things like these on desktop boxes with /tmp and /var/tmp Code:
/dev/sdb9 /tmp ext2 noatime 0 1 |
Awesome!
Everything works now. Thanks for your input! |
All times are GMT -5. The time now is 04:16 AM. |