mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-06 15:56:51 +00:00
Update cheatsheets
This commit is contained in:
21
tldr/linux/bindfs
Normal file
21
tldr/linux/bindfs
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user