LinuxCommandLibrary

bindfs

Mount directories with altered ownership and permissions via FUSE

TLDR

Mount directory

$ sudo bindfs /path/to/source /path/to/mount
copy
Mount with user mapping
$ sudo bindfs --map=user1/user2 /path/to/source /path/to/mount
copy
Unmount
$ sudo umount /path/to/mount
copy

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
-o options
Pass FUSE mount options

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)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community