bindfs
Mount directories with altered ownership and permissions via FUSE
TLDR
Mount a directory to another location
$ sudo bindfs /path/to/source /path/to/mount
Mount with user mapping$ sudo bindfs --map=user1/user2 /path/to/source /path/to/mount
Force all files to appear owned by a specific user and group$ sudo bindfs --force-user=user --force-group=group /path/to/source /path/to/mount
Mount with modified permissions$ sudo bindfs --perms=0755 /path/to/source /path/to/mount
Mount as read-only$ bindfs -o ro /path/to/source /path/to/mount
Unmount$ sudo umount /path/to/mount
SYNOPSIS
bindfs [OPTIONS] source mountpoint
DESCRIPTION
bindfs mounts a directory to another location with different ownership and permissions. It uses FUSE to create a view of a directory tree with modified permissions.
PARAMETERS
--map= user1/user2
Map ownership from user1 to user2.--force-user= user
Force all files to appear owned by user.--force-group= group
Force all files to appear owned by group.--perms= mode
Set permission bits for all files (octal or symbolic).--create-as-user
Change owner/group of new files to the caller's uid/gid.--resolve-symlinks
Resolve symbolic links in the source directory.--enable-ioctl
Forward ioctl calls to the underlying filesystem.-r, -o ro
Mount as read-only.-o options
Pass FUSE mount options.--multithreaded
Run bindfs in multithreaded mode.
CAVEATS
Changes to ownership mapping are bidirectional - newly created files are mapped back. Requires FUSE support. Use umount to unmount the bindfs filesystem.
HISTORY
bindfs is a FUSE filesystem for mounting directories with altered permissions.
SEE ALSO
mount(8), fusermount(1)

