[ 
https://issues.apache.org/jira/browse/SSHD-344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14136859#comment-14136859
 ] 

Guillaume Nodet commented on SSHD-344:
--------------------------------------

This should work with Java 7.  With Java 6, only Size and LastModificationTime 
are supported.
I suppose NativeSshFile#setAttributes could be enhanced to support some 
modifications of the permissions by calling 
File#setReadable/setWriteable/setExecutable.

Patch welcome !

> File and Posix attributes always seems to be default settings
> -------------------------------------------------------------
>
>                 Key: SSHD-344
>                 URL: https://issues.apache.org/jira/browse/SSHD-344
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 0.12.0
>         Environment: Tested against OpenSSH on Linux and Cygwin on Windows
>            Reporter: Jonathan Chien
>
> When using ChannelExec to do a "cp -p" or a "mv", the Posix permissions of 
> the destination file always appear to be 644 instead of whatever the Posix 
> permissions of the parent file were.
> When using DefaultSftpClient.setstat, it also doesn't appear to change 
> neither any BasicFileAttributes (such as last modified time) nor Posix 
> permissions, and just doesn't seem to work at all.
> As such, there's no good way to change the attributes of files right now.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to