From ea1bbecb2c25f482aa1441bfd29e564cdd8af3a4 Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Sat, 9 Aug 2025 05:24:04 +0300 Subject: [PATCH] bindfs: add page (#17570) --- pages/linux/bindfs.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/linux/bindfs.md diff --git a/pages/linux/bindfs.md b/pages/linux/bindfs.md new file mode 100644 index 0000000000..c620bb1e79 --- /dev/null +++ b/pages/linux/bindfs.md @@ -0,0 +1,16 @@ +# bindfs + +> Mount a directory elsewhere with different permissions. +> More information: . + +- Mount a directory with same permissions: + +`sudo bindfs {{path/to/directory}} {{path/to/mount_point}}` + +- Map filesystem objects owned by `user1` to be owned by `user2` (also applies in reverse to newly created files): + +`sudo bindfs --map={{user1}}/{{user2}} {{path/to/directory}} {{path/to/mount_point}}` + +- Unmount a directory: + +`sudo umount {{path/to/mount_point}}`