From 28b024bfbcf01be4bbc2dfbebeff251c33015955 Mon Sep 17 00:00:00 2001 From: Sergei Shilovsky Date: Wed, 22 Jun 2022 17:21:01 +0300 Subject: --map-passwd-rev and --map-group-rev --- src/bindfs.1 | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) (limited to 'src/bindfs.1') 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\fP, \-o map-passwd=\fI\fP .PD 0 .TP .B \-\-map-group=\fI\fP, \-o map-group=\fI\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\fP or \fI\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\fP, \-o map-passwd-rev=\fI\fP +.PD 0 +.TP +.B \-\-map-group-rev=\fI\fP, \-o map-group-rev=\fI\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\fP or \fI\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. -- cgit v1.2.3