diff options
author | Sergei Shilovsky <sshilovsky@gmail.com> | 2022-06-22 17:21:01 +0300 |
---|---|---|
committer | Sergei Shilovsky <sshilovsky@gmail.com> | 2022-06-22 18:20:05 +0300 |
commit | 28b024bfbcf01be4bbc2dfbebeff251c33015955 (patch) | |
tree | 790f995b304f0eeca2cb93378b217c715bcfdabc /src/bindfs.1 | |
parent | 5f0721a9746d5fb6a04f05ec16f6b4e77213aa05 (diff) | |
download | bindfs-28b024bfbcf01be4bbc2dfbebeff251c33015955.tar.gz |
--map-passwd-rev and --map-group-rev
Diffstat (limited to 'src/bindfs.1')
-rw-r--r-- | src/bindfs.1 | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/src/bindfs.1 b/src/bindfs.1 index c71f988..1663cd1 100644 --- a/src/bindfs.1 +++ b/src/bindfs.1 @@ -64,21 +64,44 @@ Currently, the options \fB--force-user\fP, \fB--force-group\fP, \fB--mirror\fP, the corresponding behavior of this option. Requires mounting as root. + .TP .B \-\-map-passwd=\fI<passwdfile>\fP, \-o map-passwd=\fI<passwdfile>\fP .PD 0 .TP .B \-\-map-group=\fI<groupfile>\fP, \-o map-group=\fI<groupfile>\fP Like \fB--map=...\fP, but reads the UID/GID mapping from passwd and group -files (like \fI/etc/passwd\fP and \fI/etc/group\fP). Helpful to restore -system backups where UIDs/GIDs differ. +files (like \fI/etc/passwd\fP and \fI/etc/group\fP). Maps UID/GID provided in +the \fI<passwdfile>\fP or \fI<groupfile>\fP to its corresponding user/group +name. Helpful to restore system backups where UIDs/GIDs differ. Example usage: \& bindfs --map-passwd=/mnt/orig/etc/passwd \\ .br \& \--map-group=/mnt/orig/etc/group \\ -.br +.br +\& /mnt/orig /mnt/mapped + +Requires mounting as root. + +.TP +.B \-\-map-passwd-rev=\fI<passwdfile>\fP, \-o map-passwd-rev=\fI<passwdfile>\fP +.PD 0 +.TP +.B \-\-map-group-rev=\fI<groupfile>\fP, \-o map-group-rev=\fI<groupfile>\fP +Reversed variant of \fB--map-passwd\fP and \fB--map-group\fP. Like +\fB--map=...\fP, but reads the UID/GID mapping from passwd and group files +(like \fI/etc/passwd\fP and \fI/etc/group\fP). Maps user/group name provided in +the \fI<passwdfile>\fP or \fI<groupfile>\fP to its corresponding UID/GID. +Helpful to create compatible chroot environments where UIDs/GIDs differ. + +Example usage: + +\& bindfs --map-passwd-rev=/mnt/mapped/etc/passwd \\ +.br +\& \--map-group-rev=/mnt/mapped/etc/group \\ +.br \& /mnt/orig /mnt/mapped Requires mounting as root. |