引言
vsftpd在配置文件中只能为一个用户设置一个共享目录,这时候我们使用mount命令来把未共享的其他目录挂载到共享的目录中。
开始
我们首先来看mount的说明
The bind mounts.
Since Linux 2.4.0 it is possible to remount part of the file hierarchy somewhere else. The call is
mount --bind olddir newdir
or shortoption
mount -B olddir newdir
or fstab entry is:
/olddir /newdir none bind
After this call the same contents is accessible in two places. One can also remount a single file
(on a single file). It's also possible to use the bind mount to create a mountpoint from a regular
directory, for example:
mount --bind foo foo
The bind mount call attaches only (part of) a single filesystem, not possible submounts. The entire
file hierarchy including submounts is attached a secon