You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by Will Glass-Husain <wg...@gmail.com> on 2010/11/24 23:20:38 UTC
problems connecting to sftp (directory permission)
Hi,
I'm using the sftpsubsystem of sshd from Mina. (as an aside, remarkably
fast to set up and use-- thanks very much!)
I am are having two problems.
(1) When using sshfs (a fuse based file system on Linux) to mount the sftp
directory as a filesystem, I can't cd into the directories. The reason for
this is that the directories do not have the "executable" permission set.
Any suggestions how we can set this for all directories in our system?
(2) For some clients, specifically Transmit (a Mac) client, when I try to
download a folder full of files, it downloads most of the files, but then
the client hangs and does not complete the download.
Any suggestions as to how I might proceed?
(I've looked at the docs, reviewed the source code, and searched the mailing
list but am still unable to figure this out).
Thanks in advance!
WILL
Re: problems connecting to sftp (directory permission)
Posted by Will Glass-Husain <wg...@gmail.com>.
Thanks!
I can submit a patch for adding the execute flag for all directories. That
would make this a bit more useful. I'll make a Jira issue and attach it.
regards,
WILL
On Wed, Nov 24, 2010 at 2:43 PM, Guillaume Nodet <gn...@gmail.com> wrote:
> On Wed, Nov 24, 2010 at 23:20, Will Glass-Husain <wg...@gmail.com>
> wrote:
> > Hi,
> >
> > I'm using the sftpsubsystem of sshd from Mina. (as an aside, remarkably
> > fast to set up and use-- thanks very much!)
> >
> > I am are having two problems.
> >
> > (1) When using sshfs (a fuse based file system on Linux) to mount the
> sftp
> > directory as a filesystem, I can't cd into the directories. The reason
> for
> > this is that the directories do not have the "executable" permission set.
> > Any suggestions how we can set this for all directories in our system?
>
> If you look at the code for the SftpSubsystem, the writeAttrs() has
> two blocks of commented code which look like what you're looking for.
> I'm not sure we should blindly uncomment those, but in the case of
> folders, it would make sense I guess.
>
> >
> > (2) For some clients, specifically Transmit (a Mac) client, when I try to
> > download a folder full of files, it downloads most of the files, but then
> > the client hangs and does not complete the download.
>
> That one might be a bit harder. I suppose you have tried with the
> latest version ? (if not give it a try).
> Also, make sure you use the latest mina version in case it has any effect.
> Can you try to raise the log level and see if there is anything in the log
> ?
>
>
> > Any suggestions as to how I might proceed?
> >
> > (I've looked at the docs, reviewed the source code, and searched the
> mailing
> > list but am still unable to figure this out).
> >
> > Thanks in advance!
> >
> > WILL
> >
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>
Re: problems connecting to sftp (directory permission)
Posted by Guillaume Nodet <gn...@gmail.com>.
On Wed, Nov 24, 2010 at 23:20, Will Glass-Husain <wg...@gmail.com> wrote:
> Hi,
>
> I'm using the sftpsubsystem of sshd from Mina. (as an aside, remarkably
> fast to set up and use-- thanks very much!)
>
> I am are having two problems.
>
> (1) When using sshfs (a fuse based file system on Linux) to mount the sftp
> directory as a filesystem, I can't cd into the directories. The reason for
> this is that the directories do not have the "executable" permission set.
> Any suggestions how we can set this for all directories in our system?
If you look at the code for the SftpSubsystem, the writeAttrs() has
two blocks of commented code which look like what you're looking for.
I'm not sure we should blindly uncomment those, but in the case of
folders, it would make sense I guess.
>
> (2) For some clients, specifically Transmit (a Mac) client, when I try to
> download a folder full of files, it downloads most of the files, but then
> the client hangs and does not complete the download.
That one might be a bit harder. I suppose you have tried with the
latest version ? (if not give it a try).
Also, make sure you use the latest mina version in case it has any effect.
Can you try to raise the log level and see if there is anything in the log ?
> Any suggestions as to how I might proceed?
>
> (I've looked at the docs, reviewed the source code, and searched the mailing
> list but am still unable to figure this out).
>
> Thanks in advance!
>
> WILL
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com