Overview
bindfs is a FUSE filesystem for mounting a directory to another location, similarly to mount --bind. The permissions inside the mountpoint can be altered using various rules.
Examples
Here are some examples of what bindfs can do for you:
- Make a directory read-only.
- Share a directory with some other users without modifying /etc/group.
- Make your website available to the webserver process read-only.
- Make all new files uploaded to an FTP share owned by you and seen by everyone.
bindfs --perms=a-w somedir somedir
bindfs --mirror-only=joe,bob,@wheel ~/some/dir shared
bindfs --owner=www --perms=0000:u=rD ~/stuff/website ~/public_html
bindfs --create-for-user=me --create-with-perms=u+rw,a+rD /var/ftp/uploads /var/ftp/uploads
Manual
Support
bindfs has been tested on Linux 2.4/2.6 with fuse 2.5.3+ as well as Mac OS X 10.5 with MacFUSE. Please tell me if you have tried it on another platform, such as FreeBSD.
Basic installation instructions are available.
All bug reports, comments and ideas are very welcome at <martin dot partel at gmail dot com> or the issue tracker.