where to put mount.sh file?
Henning Larsen
hennlar at start.no
Wed Feb 20 19:25:21 UTC 2008
On Wed, 2008-02-20 at 11:10 -0800, 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?
>
> Thanks for the help!
> Jerry
>
>
I don't think you have to make a script. Just put the mounts
in /etc/fstab
/directory/to/share /var/ftp/whatever none --bind
I'm not an expert, but it did work here
Henning Larsen
More information about the fedora-list
mailing list