bindfs

Mount a directory to another location and alter permission bits.

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:

Docs

Downloads and source

bindfs is available through the software repositories of many Linux distributions, as well as MacPorts on OS X. Check there first unless there is a specific new feature that you need.

Download the latest source tarball here: bindfs-1.13.0.tar.gz.

Compile & install: ./configure && make && sudo make install.

There is an extensive HowTo on Ubuntu Forums.

About

bindfs has been tested on Linux with FUSE, Mac OS X with osxfuse and FreeBSD with fuse4bsd.

All FUSE filesystems necessarily incur a performance penalty in CPU time and memory consumption. While bindfs is very flexible, it can be quite slow as Guy Paddock’s analysis and benchmark demonstrates. If all you need is to make a directory read-only then mount --bind -r is more efficient.

bindfs was initially developed in 2006. I consider the program fairly feature-complete but I’ll still gladly fix bugs and add some small features as people suggest them.

Bug reports

Bug reports, pull requests, comments and ideas are very welcome. Developement takes place on GitHub. Please use the issue tracker or e-mail me directly at <martin dot partel at gmail dot com>.

Known issues

Old site

bindfs used to be hosted on Google Code. The old issue tracker has not been migrated (please use the new one).

Google has deprecated downloads on Google Code, so no more downloads will be uploaded there. I will keep the old downloads in Google Code at least until 2014.