From b751cc9c5d9448c56fffef56eadfc6371cbbdbd3 Mon Sep 17 00:00:00 2001 From: Roland Tapken Date: Fri, 8 May 2020 09:53:21 +0200 Subject: Added man page entry --- src/bindfs.1 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src') diff --git a/src/bindfs.1 b/src/bindfs.1 index 90b3d8c..c5dea30 100644 --- a/src/bindfs.1 +++ b/src/bindfs.1 @@ -67,6 +67,22 @@ the corresponding behavior of this option. Requires mounting as root. +.TP +.B \-\-map-passwd=\fI\fP, \-o map-passwd=... +.PD 0 +.TP +.B \-\-map-group=\fI\fP, \-o map-group=... +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. + +Example usage: + +bindfs --map-passwd=/mnt/orig/etc/passwd \\ --map-passwd=/mnt/orig/etc/group + /mnt/orig /mnt/mapped\fP + +Requires mounting as root. + .TP .B \-\-uid\-offset=..., \-o uid\-offset=... Works like \-\-map, but adds the given number to all file owner user IDs. -- cgit v1.2.3