Using sshfs with autofs on Ubuntu, I cannot set timestamps on remote files:

$ touch /sshfs/server/some/file
touch: setting times of `/sshfs/sshfs/server/some/file': Permission denied

I do have write access to the file. The problem surfaced because files copied to the remote don't get the original's timestamp, but the time of when the copy was done.

If I ssh to the server, I can also change the timestamp without trouble. It only fails through sshfs.

$ cat /etc/auto.sshfs 

afserver -fstype=fuse,sshfs_debug,rw,nodev,nonempty,noatime,allow_other,max_read=65536   :sshfs\#my_username@server.domain.lan:/

$ stat  /sshfs/server/some/file
...
Access: (0664/-rw-rw-r--)  Uid: ( 1003/ UNKNOWN)   Gid: (  100/   users)
link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.