Results 1 to 1 of 1
Hi, I've mounted a directory with sshfs:
Code:
sshfs -o allow_other user(at)host:/dir /dir
(the (at) is an at-symbol but this forum thinks I'm posting a link which is forbidden...)
I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-28-2010 #1Just Joined!
- Join Date
- Apr 2010
- Posts
- 1
How to modify file timestamps via sshfs
Hi, I've mounted a directory with sshfs:
(the (at) is an at-symbol but this forum thinks I'm posting a link which is forbidden...)Code:sshfs -o allow_other user(at)host:/dir /dir
I have two files in that directory:
file_a was created by the user root on the remote server and file_b was created by myself after mounting the directory. I can now modify the content of both files but I can only "touch" the file_b. If I touch file_a I get:Code:-rw-rw-rw- 1 root root 0 2010-04-28 16:04 file_a -rw-rw-rw- 1 user user 0 2010-04-28 16:08 file_b
If it were a local file everybody would be allowed to touch it because it has the write-right for others. Does anyone know how I could modify the mtime/atime/ctime of a file via sshfs? I don't want to open the file just to set the modification-timestamp.Code:touch: setting times of `file_a': Permission denied


Reply With Quote
