1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-13 21:15:48 +02:00

bindfs: add page (#17570)

This commit is contained in:
Managor 2025-08-09 05:24:04 +03:00 committed by GitHub
parent 4331653307
commit ea1bbecb2c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

16
pages/linux/bindfs.md Normal file
View file

@ -0,0 +1,16 @@
# bindfs
> Mount a directory elsewhere with different permissions.
> More information: <https://bindfs.org/docs/bindfs.1.html>.
- 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}}`