Gerhard Magnus wrote: > I've been experimenting with setting up an ftp server on a home network. > The instructions I've been looking at for getting vsftpd operational > include using "mount --bind" commands for mounting other directories > to /var/ftp (neat trick!) The how-to says: > > Whenever you restart your computer, you have to bind the directories > every time, so that they are shown on the ftp server. To skip binding > every time, write everything (all commands for binding) in a mount.sh > file and run it whenever you restart your computer. > > Confession: This will be my first unix script. A whole new world awaits! > Where do I put it? > How do I guarantee it will be run at boot time? I don't want to keep you from getting starting writing scripts, but I don't see why you'd need to write one to setup a bind mount at boot. Just add an entry to /etc/fstab for the mount point. The syntax would be something like this: /real/path /path/you/are/binding none rw,bind 0 0 See man fstab for more details (though the man page doesn't cover anything specific for bind mounts). -- Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The cynics are right nine times out of ten. -- H. L. Menchen (1880-1956)
Attachment:
pgpsGSCZ3QjLR.pgp
Description: PGP signature
-- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list