|
Getting "Permission Denied" when calling SetFileDateTime. What permissions are needed to resolve this error? Using Rebex SFTP for .NET (Version 2.0.3723.0) for .NET 1.1 LogWriter output: |
|
Unfortunately, the answer is entirely server dependent. The server response which caused this exception to be raised doesn't contain any other information in addition to "Permission denied" message and a status code 3, which has identical meaning. Typically, this would be reported if there the logged-on user has no write permissions for the file or doesn't have permissions to change the last write time date. What OS and SSH/SFTP server is used at the server? That might shed some light on this error. The server administration technician sent me this explanation:
(07 Sep '11, 22:27)
BrooklynPark...
So is it actually possible to set both On the other hand, the
(08 Sep '11, 16:08)
Lukas Pokorny ♦♦
I forwarded your message to the server admin to see if it helps him with SFTP server configuration.
(08 Sep '11, 16:53)
BrooklynPark...
It looks like the logged-on user only has SFTP access. No "touch" command in that case, unfortunately.
(08 Sep '11, 17:06)
Lukas Pokorny ♦♦
|
|
Based on your comments, my understanding is that openssh only supports SFTPv3 and SFTPv4 is required for SetFileDateTime. Therefore, SetFileDateTime cannot work with openssh. Thanks for your help with this question. With SFTPv3, SetFileDateTime works but sets both Unfortunately, OpenSSH developers are not interested in implementing SFTPv4, calling all versions above 3 hopelessly bloated and
broken. Bloated because too much new features started creaping in, and broken because some of them were not-so-well-thought - for example, someone seems to think that
(09 Sep '11, 07:52)
Lukas Pokorny ♦♦
|