aboutsummaryrefslogtreecommitdiff
path: root/sshfs.1
diff options
context:
space:
mode:
authorMike Kelly <mike@pair.com>2011-12-16 14:52:21 -0500
committerMiklos Szeredi <mszeredi@suse.cz>2011-12-20 15:33:58 +0100
commit301cc5218b36cb6f15602191eb2394877cdc930c (patch)
tree00a95aaf6fbcf146edcc1d31d45206eab4261206 /sshfs.1
parentd666318c7adae3c9a773844a74ec9cec3fba79b8 (diff)
downloadsshfs-301cc5218b36cb6f15602191eb2394877cdc930c.tar
sshfs-301cc5218b36cb6f15602191eb2394877cdc930c.tar.gz
sshfs-301cc5218b36cb6f15602191eb2394877cdc930c.tar.bz2
sshfs-301cc5218b36cb6f15602191eb2394877cdc930c.zip
Add -o idmap=file, -o uidmap=FILE, -o gidmap=FILE
These options allow you to create a pair of local files, with username:uid/groupname:gid pairs, one per line. Alternatively, files can be in standard /etc/passwd / /etc/group format. The uid/gids are for the remote server, their local counterparts are looked up with a local getpwnam/getgrnam call. Any stat() calls will show with the remapped local uid/gid, and any chown() calls will be remapped back to the remote uid/gid.
Diffstat (limited to 'sshfs.1')
-rw-r--r--sshfs.112
1 files changed, 12 insertions, 0 deletions
diff --git a/sshfs.1 b/sshfs.1
index d103ad3..9dcd8aa 100644
--- a/sshfs.1
+++ b/sshfs.1
@@ -102,6 +102,18 @@ no translation of the ID space (default)
.TP
user
only translate UID of connecting user
+.TP
+file
+translate UIDs/GIDs based upon the contents of \fBuidfile \fR and
+\fBgidfile\fR
+.RE
+.TP
+\fB\-o\fR uidfile=FILE
+file containing username:uid mappings for \fBidmap=file\fR
+.RE
+.TP
+\fB\-o\fR gidfile=FILE
+file containing groupname:gid mappings for \fBidmap=file\fR
.RE
.TP
\fB\-o\fR ssh_command=CMD