Skip to content

Commit ea1bbec

Browse files
authored
bindfs: add page (#17570)
1 parent 4331653 commit ea1bbec

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

pages/linux/bindfs.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# bindfs
2+
3+
> Mount a directory elsewhere with different permissions.
4+
> More information: <https://bindfs.org/docs/bindfs.1.html>.
5+
6+
- Mount a directory with same permissions:
7+
8+
`sudo bindfs {{path/to/directory}} {{path/to/mount_point}}`
9+
10+
- Map filesystem objects owned by `user1` to be owned by `user2` (also applies in reverse to newly created files):
11+
12+
`sudo bindfs --map={{user1}}/{{user2}} {{path/to/directory}} {{path/to/mount_point}}`
13+
14+
- Unmount a directory:
15+
16+
`sudo umount {{path/to/mount_point}}`

0 commit comments

Comments
 (0)