You are not logged in.
I'm having problems getting SftpMan to apply uid and gid mappings to sshfs mounts.
If I directly use the sshfs command to mount a remote directory with the following command all works well and my uid/gid maps are applied:
Command
sshfs -o idmap=file,uidfile=/home/mike/uid,gidfile=/home/mike/gid,nomap=ignore mike@ip.add.re.ss:/path/to/remote/files /local/mountpointResult
drwxr-xr-x 1 mike users 4.0K Mar 5 12:33 drupal
drwxrwxr-x 1 root users 4.0K Mar 5 12:38 drush
lrwxrwxrwx 1 root root 6 Feb 6 14:12 httpdocs -> drupal
drwxr-xr-x 1 root root 4.0K Dec 20 2011 logs
drwxrwsr-x 1 root users 4.0K Jan 30 17:29 mockup
drwxrwsr-x 1 root users 4.0K Feb 5 16:24 staticHowever, when I translate the above command into what I think SftpMan expects, the remote directory is mounted but no mapping occurs (my uid happens to be the same on my local machine and the remote machine in this example which is why you see 'mike' in the user column of the results):
Command
sftpman setup --id "test" --host "ip.add.re.ss" --user "mike" --mount_point "/path/to/remote/files" --auth_method=publickey --ssh_key "/home/mike/.ssh/id_rsa" --mount_opt="idmap=file,uidfile=/home/mike/uid,gidfile=/home/mike/gid,nomap=ignore"
Configuration created.
You can try mounting now: `sftpman mount test`Result
drwxr-xr-x 1 mike 1001 4.0K Mar 5 12:33 drupal
drwxrwxr-x 1 root 1001 4.0K Mar 5 12:38 drush
lrwxrwxrwx 1 root root 6 Feb 6 14:12 httpdocs -> drupal
drwxr-xr-x 1 root root 4.0K Dec 20 2011 logs
drwxrwsr-x 1 root 1001 4.0K Jan 30 17:29 mockup
drwxrwsr-x 1 root 1001 4.0K Feb 5 16:24 staticI've also tried separating the mount options into individual arguments but it doesn't change the results:
sftpman setup --id "test" --host "ip.add.re.ss" --user "mike" --mount_point "/path/to/remote/files" --auth_method=publickey --ssh_key "/home/mike/.ssh/id_rsa" --mount_opt="idmap=file" --mount_opt="uidfile=/home/mike/uid" --mount_opt="gidfile=/home/mike/gid" --mount_opt="nomap=ignore"I'm not sure why the user and group mappings are not being applied. Any help would be appreciated. Thanks.
Offline