||1 month ago|
|releasescript||2 months ago|
|src||1 month ago|
|tests||2 months ago|
|vagrant||2 months ago|
|.gitignore||2 years ago|
|.travis.yml||3 years ago|
|COPYING||11 years ago|
|ChangeLog||1 month ago|
|Makefile.am||6 years ago|
|README.md||1 month ago|
|TODO||11 years ago|
|autogen.sh||6 years ago|
|configure.ac||1 month ago|
|test-all.sh||8 months ago|
bindfs - https://bindfs.org/
bindfs is a FUSE filesystem for mirroring a directory to another
directory, similarly to
mount --bind. The permissions of the mirrored
directory can be altered in various ways.
Some things bindfs can be used for:
- Making a directory read-only.
- Making all executables non-executable.
- Sharing a directory with a list of users (or groups).
- Modifying permission bits using rules with chmod-like syntax.
- Changing the permissions with which files are created.
Non-root users can use almost all features, but most interesting
user_allow_other to be defined in
Download a release or clone this repository.
Then compile and install as usual:
./autogen.sh # Only needed if you cloned the repo. ./configure make make install
If you want the mounts made by non-root users to be visible to other users,
you may have to add the line
On some systems, you may have to add your user to the
bindfs --help or the man-page for instructions and examples.
The following extra options may be useful under osxfuse:
See https://github.com/osxfuse/osxfuse/wiki/Mount-options for details.
Bindfs comes with a (somewhat brittle and messy) test suite. Some tests must be run as root, and some tests only work as non-root.
You can run run the tests with
It requires Ruby and
sudo, and it uses
valgrind if installed.
Vagrant test runner
There is also a set of Vagrant configs for running the test suite on a variety
of systems. Run them with
--help for extra options).
You can destroy all bindfs Vagrant machines (but not the downloaded images)
GNU General Public License version 2 or any later version. See the file COPYING.