While using internal sftp server, need to access files outside chroot

Ángel González keisial at gmail.com
Sat Jun 9 00:24:56 EST 2012


On 08/06/12 00:15, Ben Lindstrom wrote:
> The major edge case you need to worry about is the perl deamon moving/copying before sftp is done.  A move to the same partition isn't a problem as sftp still has the file descriptor, but a copy or a move to another partition will result in corrupted data.
>
> The easiest solution if clients are disconnected more often than connected is to skip all active inboxes with sftp sessions associated with them.
>
> - Ben
It also depends on how you watch the directory. Some mechanisms, like
inotfy, allow you to perform the action when the file has been closed by
the writing process.



More information about the openssh-unix-dev mailing list