mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-15 05:55:57 +02:00
500 B
500 B
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 byuser2
(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}}