- Notifications
You must be signed in to change notification settings - Fork0
Mount a directory elsewhere with changed permissions.
License
codercom/bindfs
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
bindfs -https://bindfs.org/
bindfs is a FUSE filesystem for mirroring a directory to anotherdirectory, similarly tomount --bind
. The permissions of the mirroreddirectory 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 interestinguse-cases needuser_allow_other
to be defined in/etc/fuse.conf
.
Make sure FUSE 2.6.0 or above is installed (https://github.com/libfuse/libfuse).
Download arelease or clone this repository.
Then compile and install as usual:
./configuremakemake install
If you want the mounts made by non-root users to be visible to other users,you may have to add the lineuser_allow_other
to/etc/fuse.conf
.
In Linux-based OSes, you may have to add your user to thefuse
group.
See thebindfs --help
or the man-page for instructions and examples.
The following extra options may be useful under osxfuse:
-o local,allow_other,extended_security,noappledouble
Seehttps://github.com/osxfuse/osxfuse/wiki/Mount-options for details.
Bindfs comes with a (somewhat brittle and messy) test suite.The test suite has two kinds of tests: those that have to be run as root andthose that have to be run as non-root. To run all of the tests, domake check
both as root and as non-root.
The test suite requires Ruby 1.8.7+. If you're usingRVMthen you may need to uservmsudo
instead of plainsudo
to run the roottests.
There is also a set of Vagrant configs for running the test suite on a varietyof systems. Run them withvagrant/test.rb
(add--help
for extra options).
You can destroy all bindfs Vagrant machines (but not the downloaded images)withmake vagrant-clean
.
GNU General Public License version 2 or any later version.See the file COPYING.
About
Mount a directory elsewhere with changed permissions.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Languages
- C64.0%
- Ruby23.4%
- Roff10.0%
- Other2.6%