aboutsummaryrefslogtreecommitdiff
path: root/sshfs.1
diff options
context:
space:
mode:
authorMike Kelly <mike@pair.com>2011-12-16 14:52:21 -0500
committerBenjamin Fleischer <fleiben@gmail.com>2012-01-22 11:19:29 +0100
commita6b6b5c820228fe2376705db711d486e9ec866a1 (patch)
tree8de5c0ad0c86fb7b74e621ceaed9cca2c27358dd /sshfs.1
parenta306a80b6ea9ca986a444b722acf0ed09beac7bc (diff)
downloadsshfs-a6b6b5c820228fe2376705db711d486e9ec866a1.tar
sshfs-a6b6b5c820228fe2376705db711d486e9ec866a1.tar.gz
sshfs-a6b6b5c820228fe2376705db711d486e9ec866a1.tar.bz2
sshfs-a6b6b5c820228fe2376705db711d486e9ec866a1.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